omniauth 1.8.1 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of omniauth might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d44b113518272f233522832707ca3d6212dca359
4
- data.tar.gz: 558b3aad56d54629e5ae18ca72944008ca4d4a1e
3
+ metadata.gz: 14d58248b0e3ba4fa2a473a41eb741165f3a5845
4
+ data.tar.gz: 8e0bf6159783ad5389739779cd857042758e1cd6
5
5
  SHA512:
6
- metadata.gz: fc2cdd4f9decc4537dd2fdda21b9a18d005a29cff9e18f6db923571bde2c9f85d68483230c395a82983438bd16cec2754576625ed2ecb599dce3d1b752832523
7
- data.tar.gz: 0beb474c0fea700dfb8032a71fdf6062d952466a31ddb496433b4935405902cf0cd2cd0b18888700ccc838e0577822bdb300a97ff3d22385deb605c252d57946
6
+ metadata.gz: 2d92df2609fbc42f208c36016e7a5ee9751ff3afb7995a1005e630cb1a616dca17396b785814a46b093f5f19c71cf7e5d33fedc64a9bd4ba7a02aa1c155f2b6a
7
+ data.tar.gz: '01491bfb6bf5978b4cb93bf03ed22c287b726d8aeaf2d6b6b1fa417c5e9d7be35a09feeda639133823e6ee7870466a22a92c8c8ddeba9bb5fa19181c620dbd3f'
@@ -1,6 +1,12 @@
1
+ AllCops:
2
+ TargetRubyVersion: 2.2
3
+
1
4
  Layout/AccessModifierIndentation:
2
5
  EnforcedStyle: outdent
3
6
 
7
+ Layout/AlignHash:
8
+ Enabled: false
9
+
4
10
  Layout/DotPosition:
5
11
  EnforcedStyle: trailing
6
12
 
@@ -50,6 +56,9 @@ Style/EachWithObject:
50
56
  Style/Encoding:
51
57
  Enabled: false
52
58
 
59
+ Style/ExpandPathArguments:
60
+ Enabled: false
61
+
53
62
  Style/HashSyntax:
54
63
  EnforcedStyle: hash_rockets
55
64
 
@@ -9,11 +9,10 @@ env:
9
9
  language: ruby
10
10
  rvm:
11
11
  - jruby-9000
12
- - 2.1.10 # EOL Soon
13
- - 2.2.6
14
- - 2.3.3
15
- - 2.4.0
16
- - 2.5.0
12
+ - 2.2.9
13
+ - 2.3.5
14
+ - 2.4.4
15
+ - 2.5.3
17
16
  - jruby-head
18
17
  - ruby-head
19
18
  matrix:
data/Gemfile CHANGED
@@ -13,14 +13,14 @@ end
13
13
 
14
14
  group :test do
15
15
  gem 'coveralls', :require => false
16
- gem 'hashie', '>= 3.4.6', '< 3.6.0', :platforms => [:jruby_18]
16
+ gem 'hashie', '>= 3.4.6', '< 3.7.0', :platforms => [:jruby_18]
17
17
  gem 'json', '~> 2.0.3', :platforms => %i[jruby_18 jruby_19 ruby_19]
18
18
  gem 'mime-types', '~> 3.1', :platforms => [:jruby_18]
19
- gem 'rack', '>= 1.6.2', :platforms => %i[jruby_18 jruby_19 ruby_19 ruby_20 ruby_21]
19
+ gem 'rack', '>= 2.0.6', :platforms => %i[jruby_18 jruby_19 ruby_19 ruby_20 ruby_21]
20
20
  gem 'rack-test'
21
21
  gem 'rest-client', '~> 2.0.0', :platforms => [:jruby_18]
22
22
  gem 'rspec', '~> 3.5.0'
23
- gem 'rubocop', '>= 0.47', :platforms => %i[ruby_20 ruby_21 ruby_22 ruby_23 ruby_24]
23
+ gem 'rubocop', '>= 0.58.2', :platforms => %i[ruby_20 ruby_21 ruby_22 ruby_23 ruby_24]
24
24
  gem 'tins', '~> 1.13.0', :platforms => %i[jruby_18 jruby_19 ruby_19]
25
25
  end
26
26
 
data/Rakefile CHANGED
@@ -30,6 +30,7 @@ namespace :perf do
30
30
  def call_app(path = ENV['GET_PATH'] || '/')
31
31
  result = @app.get(path)
32
32
  raise "Did not succeed #{result.body}" unless result.status == 200
33
+
33
34
  result
34
35
  end
35
36
  end
@@ -20,9 +20,7 @@ module OmniAuth
20
20
  end
21
21
 
22
22
  def regular_writer(key, value)
23
- if key.to_s == 'info' && value.is_a?(::Hash) && !value.is_a?(InfoHash)
24
- value = InfoHash.new(value)
25
- end
23
+ value = InfoHash.new(value) if key.to_s == 'info' && value.is_a?(::Hash) && !value.is_a?(InfoHash)
26
24
  super
27
25
  end
28
26
 
@@ -36,6 +34,7 @@ module OmniAuth
36
34
  return "#{first_name} #{last_name}".strip if first_name? || last_name?
37
35
  return nickname if nickname?
38
36
  return email if email?
37
+
39
38
  nil
40
39
  end
41
40
 
@@ -41,6 +41,7 @@ module OmniAuth
41
41
 
42
42
  def options(options = false)
43
43
  return @options || {} if options == false
44
+
44
45
  @options = options
45
46
  end
46
47
 
@@ -33,11 +33,13 @@ module OmniAuth
33
33
 
34
34
  def strategy_name_query_param
35
35
  return '' unless env['omniauth.error.strategy']
36
+
36
37
  "&strategy=#{env['omniauth.error.strategy'].name}"
37
38
  end
38
39
 
39
40
  def origin_query_param
40
41
  return '' unless env['omniauth.origin']
42
+
41
43
  "&origin=#{Rack::Utils.escape(env['omniauth.origin'])}"
42
44
  end
43
45
  end
@@ -82,6 +82,7 @@ module OmniAuth
82
82
 
83
83
  def footer
84
84
  return self if @footer
85
+
85
86
  @html << "\n<button type='submit'>Connect</button>" unless @with_custom_button
86
87
  @html << <<-HTML
87
88
  </form>
@@ -140,6 +140,7 @@ module OmniAuth
140
140
 
141
141
  self.class.args.each do |arg|
142
142
  break if args.empty?
143
+
143
144
  options[arg] = args.shift
144
145
  end
145
146
 
@@ -187,6 +188,7 @@ module OmniAuth
187
188
  return request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
188
189
  return callback_call if on_callback_path?
189
190
  return other_phase if respond_to?(:other_phase)
191
+
190
192
  @app.call(env)
191
193
  end
192
194
 
@@ -268,6 +270,7 @@ module OmniAuth
268
270
  def mock_call!(*)
269
271
  return mock_request_call if on_request_path? && OmniAuth.config.allowed_request_methods.include?(request.request_method.downcase.to_sym)
270
272
  return mock_callback_call if on_callback_path?
273
+
271
274
  call_app!
272
275
  end
273
276
 
@@ -361,6 +364,7 @@ module OmniAuth
361
364
  def skip_info?
362
365
  return false unless options.skip_info?
363
366
  return true unless options.skip_info.respond_to?(:call)
367
+
364
368
  options.skip_info.call(uid)
365
369
  end
366
370
 
@@ -377,6 +381,7 @@ module OmniAuth
377
381
  if options[kind].respond_to?(:call)
378
382
  result = options[kind].call(env)
379
383
  return nil unless result.is_a?(String)
384
+
380
385
  result
381
386
  else
382
387
  options[kind]
@@ -401,7 +406,7 @@ module OmniAuth
401
406
  options[:setup_path] || "#{path_prefix}/#{name}/setup"
402
407
  end
403
408
 
404
- CURRENT_PATH_REGEX = %r{/$}
409
+ CURRENT_PATH_REGEX = %r{/$}.freeze
405
410
  EMPTY_STRING = ''.freeze
406
411
  def current_path
407
412
  @current_path ||= request.path_info.downcase.sub(CURRENT_PATH_REGEX, EMPTY_STRING)
@@ -1,3 +1,3 @@
1
1
  module OmniAuth
2
- VERSION = '1.8.1'.freeze
2
+ VERSION = '1.9.0'.freeze
3
3
  end
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
  require 'omniauth/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.add_dependency 'hashie', ['>= 3.4.6', '< 3.6.0']
8
+ spec.add_dependency 'hashie', ['>= 3.4.6', '< 3.7.0']
9
9
  spec.add_dependency 'rack', ['>= 1.6.2', '< 3']
10
10
  spec.add_development_dependency 'bundler', '~> 1.14'
11
11
  spec.add_development_dependency 'rake', '~> 12.0'
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
18
18
  spec.name = 'omniauth'
19
19
  spec.require_paths = %w[lib]
20
20
  spec.required_rubygems_version = '>= 1.3.5'
21
- spec.required_ruby_version = '>= 2.1.9'
21
+ spec.required_ruby_version = '>= 2.2'
22
22
  spec.summary = spec.description
23
23
  spec.version = OmniAuth::VERSION
24
24
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-12-28 00:00:00.000000000 Z
13
+ date: 2018-12-14 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hashie
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: 3.4.6
22
22
  - - "<"
23
23
  - !ruby/object:Gem::Version
24
- version: 3.6.0
24
+ version: 3.7.0
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
@@ -31,7 +31,7 @@ dependencies:
31
31
  version: 3.4.6
32
32
  - - "<"
33
33
  - !ruby/object:Gem::Version
34
- version: 3.6.0
34
+ version: 3.7.0
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rack
37
37
  requirement: !ruby/object:Gem::Requirement
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
126
126
  requirements:
127
127
  - - ">="
128
128
  - !ruby/object:Gem::Version
129
- version: 2.1.9
129
+ version: '2.2'
130
130
  required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  requirements:
132
132
  - - ">="