diff --git a/.rubocop.yml b/.rubocop.yml index 3c5aeb3..028c34c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -55,6 +55,3 @@ Style/RaiseArgs: Style/SpaceInsideHashLiteralBraces: EnforcedStyle: no_space - -Style/TrailingComma: - EnforcedStyleForMultiline: 'comma' diff --git a/lib/omniauth.rb b/lib/omniauth.rb index 2f11c9f..0c2aa06 100644 --- a/lib/omniauth.rb +++ b/lib/omniauth.rb @@ -42,7 +42,7 @@ module OmniAuth :test_mode => false, :logger => default_logger, :allowed_request_methods => [:get, :post], - :mock_auth => {:default => AuthHash.new('provider' => 'default', 'uid' => '1234', 'info' => {'name' => 'Example User'})}, + :mock_auth => {:default => AuthHash.new('provider' => 'default', 'uid' => '1234', 'info' => {'name' => 'Example User'})} } end diff --git a/spec/omniauth/auth_hash_spec.rb b/spec/omniauth/auth_hash_spec.rb index 094e28f..e57d1ea 100644 --- a/spec/omniauth/auth_hash_spec.rb +++ b/spec/omniauth/auth_hash_spec.rb @@ -38,7 +38,7 @@ describe OmniAuth::AuthHash do :first_name => 'Phillip', :last_name => 'Fry', :nickname => 'meatbag', - :email => 'fry@planetexpress.com', + :email => 'fry@planetexpress.com' }) end diff --git a/spec/omniauth/strategy_spec.rb b/spec/omniauth/strategy_spec.rb index 605a796..cd6071c 100644 --- a/spec/omniauth/strategy_spec.rb +++ b/spec/omniauth/strategy_spec.rb @@ -5,7 +5,7 @@ def make_env(path = '/auth/test', props = {}) 'REQUEST_METHOD' => 'GET', 'PATH_INFO' => path, 'rack.session' => {}, - 'rack.input' => StringIO.new('test=true'), + 'rack.input' => StringIO.new('test=true') }.merge(props) end @@ -331,7 +331,7 @@ describe OmniAuth::Strategy do it 'is turned into an env variable on the callback phase, containing full path' do env = { 'rack.session' => {'omniauth.origin' => 'http://example.com/sub_uri/origin'}, - 'SCRIPT_NAME' => '/sub_uri', + 'SCRIPT_NAME' => '/sub_uri' } expect { strategy.call(make_env('/auth/test/callback', env)) }.to raise_error('Callback Phase') diff --git a/spec/omniauth_spec.rb b/spec/omniauth_spec.rb index 6c6b61a..e65255d 100644 --- a/spec/omniauth_spec.rb +++ b/spec/omniauth_spec.rb @@ -140,7 +140,7 @@ describe OmniAuth do 'some_word' => 'SomeWord', 'AnotherWord' => 'AnotherWord', 'one' => 'One', - 'three_words_now' => 'ThreeWordsNow', + 'three_words_now' => 'ThreeWordsNow' }.each_pair { |k, v| expect(OmniAuth::Utils.camelize(k)).to eq(v) } end