mirror of
https://github.com/discourse/discourse.git
synced 2025-02-15 13:03:10 +08:00
![Sam Saffron](/assets/img/avatar_default.png)
This change both speeds up specs (less strings to allocate) and helps catch cases where methods in Discourse are mutating inputs. Overall we will be migrating everything to use #frozen_string_literal: true it will take a while, but this is the first and safest move in this direction
17 lines
574 B
Ruby
17 lines
574 B
Ruby
# frozen_string_literal: true
|
|
|
|
# name: plugin-name
|
|
# about: about: my plugin
|
|
# version: 0.1
|
|
# authors: Frank Zappa
|
|
|
|
auth_provider title: 'with Ubuntu',
|
|
authenticator: Auth::OpenIdAuthenticator.new('ubuntu', 'https://login.ubuntu.com', 'ubuntu_login_enabled', trusted: true),
|
|
message: 'Authenticating with Ubuntu (make sure pop up blockers are not enbaled)',
|
|
frame_width: 1000, # the frame size used for the pop up window, overrides default
|
|
frame_height: 800
|
|
|
|
register_javascript <<JS
|
|
console.log("Hello world")
|
|
JS
|