omniauth 1.3.2 → 1.4.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,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTMwM2I1Y2EyNDQ0YTgwZTk5NmI0Mjk4YmExMjVmM2UwYWVhYjIyYg==
5
- data.tar.gz: !binary |-
6
- NjY4NjQ5MjJlMzIzY2Q0ZTRhNmNhNDc5ODdiN2Y0ZDM2NDdiZTNjMQ==
2
+ SHA1:
3
+ metadata.gz: 721d90a379e37dd235c0b9ec26a9593b5b38a2a6
4
+ data.tar.gz: 3a7ebde818d04504244c29f04f5171750d9204c0
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZTYxZjYyZmI1OTEzZDYzMjM2ZDdjNWQ3ODdhMTM1MDdiOWEyZjMyYTJmMzUz
10
- NDY2MmJjMDJlNGQwNjg5ZmQ5OTIxYjlmMDZjMjI5YzgzZDRlZjQzOGFmMDcz
11
- MmFmNGRlOTU3Mzg5ZmUyNWE2ZDlhZTA0MWNiMzUyYjhjNTg4ZDM=
12
- data.tar.gz: !binary |-
13
- MWU5OGY4Mzc0NmVmMTJiNmNhNjg1N2U0NTU3MTgyY2JmZmViZTUyOGQ3NzAy
14
- M2ZjZGJhYjFmNmEzZjNkMDlmOGY3MDc0ZDFkY2U0OTVmYzY2YWQxMDg2MDM3
15
- NTg3MzY2NzQyNWJmMTI4NGIxZjdiZmZiZGNhZmZlNjE2YTFkMzM=
6
+ metadata.gz: f22ecf09b2ab458e490a23b416e6859f7df2848a799c6e25352779c37ce67a715ad7a670ae03143605f08c31b22ee5717012b473e270fabae0d65d50443bca90
7
+ data.tar.gz: 26f940d2cefc95964046609c1b27145ad38932813d9ba2bb46acf5dbdaa77ee4859f0e36e8da124e29fa80aeb9db7d7d0fef5bc44534ecacbe44788a221eba4b
@@ -8,7 +8,6 @@ language: ruby
8
8
  rvm:
9
9
  - jruby-19mode
10
10
  - jruby-9000
11
- - 1.8.7
12
11
  - 1.9.3
13
12
  - 2.0.0
14
13
  - 2.1.10
data/Gemfile CHANGED
@@ -10,16 +10,16 @@ group :development do
10
10
  end
11
11
 
12
12
  group :test do
13
- gem 'hashie', '~> 2.0.5', :platforms => [:jruby_18, :ruby_18]
14
- gem 'json', '~> 1.8', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19]
15
- gem 'mime-types', '~> 1.25', :platforms => [:jruby_18, :ruby_18]
16
- gem 'rack', '~> 1.0', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19, :ruby_20, :ruby_21]
13
+ gem 'hashie', '~> 2.0.5', :platforms => [:jruby_18]
14
+ gem 'json', '~> 1.8', :platforms => [:jruby_18, :jruby_19, :ruby_19]
15
+ gem 'mime-types', '~> 1.25', :platforms => [:jruby_18]
16
+ gem 'rack', '~> 1.0', :platforms => [:jruby_18, :jruby_19, :ruby_19, :ruby_20, :ruby_21]
17
17
  gem 'rack-test'
18
- gem 'rest-client', '~> 1.6.0', :platforms => [:jruby_18, :ruby_18]
18
+ gem 'rest-client', '~> 1.6.0', :platforms => [:jruby_18]
19
19
  gem 'rspec', '~> 3.0'
20
20
  gem 'rubocop', '>= 0.25', :platforms => [:ruby_20, :ruby_21, :ruby_22, :ruby_23, :ruby_24]
21
21
  gem 'simplecov', '>= 0.9'
22
- gem 'tins', '~> 1.6.0', :platforms => [:jruby_18, :jruby_19, :ruby_18, :ruby_19]
22
+ gem 'tins', '~> 1.6.0', :platforms => [:jruby_18, :jruby_19, :ruby_19]
23
23
  end
24
24
 
25
25
  gemspec
data/LICENSE.md CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2013 Michael Bleigh and Intridea, Inc.
1
+ Copyright (c) 2010-2017 Michael Bleigh and Intridea, Inc.
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -143,7 +143,7 @@ your first stop if you are wondering about a more in-depth look at
143
143
  OmniAuth, how it works, and how to use it.
144
144
 
145
145
  ## Supported Ruby Versions
146
- OmniAuth is tested under 1.8.7, 1.9.3, 2.0.0, 2.1.10, 2.2.5, 2.3.1, and JRuby.
146
+ OmniAuth is tested under 1.9.3, 2.0.0, 2.1.10, 2.2.5, 2.3.1, and JRuby.
147
147
 
148
148
  ## Versioning
149
149
  This library aims to adhere to [Semantic Versioning 2.0.0][semver]. Violations
@@ -161,7 +161,7 @@ Constraint][pvc] with two digits of precision. For example:
161
161
  [pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
162
162
 
163
163
  ## License
164
- Copyright (c) 2010-2013 Michael Bleigh and Intridea, Inc. See [LICENSE][] for
164
+ Copyright (c) 2010-2017 Michael Bleigh and Intridea, Inc. See [LICENSE][] for
165
165
  details.
166
166
 
167
167
  [license]: LICENSE.md
@@ -1,11 +1,11 @@
1
- require 'hashie/mash'
1
+ require 'omniauth/key_store'
2
2
 
3
3
  module OmniAuth
4
4
  # The AuthHash is a normalized schema returned by all OmniAuth
5
5
  # strategies. It maps as much user information as the provider
6
6
  # is able to provide into the InfoHash (stored as the `'info'`
7
7
  # key).
8
- class AuthHash < Hashie::Mash
8
+ class AuthHash < OmniAuth::KeyStore
9
9
  def self.subkey_class
10
10
  Hashie::Mash
11
11
  end
@@ -26,7 +26,7 @@ module OmniAuth
26
26
  super
27
27
  end
28
28
 
29
- class InfoHash < Hashie::Mash
29
+ class InfoHash < OmniAuth::KeyStore
30
30
  def self.subkey_class
31
31
  Hashie::Mash
32
32
  end
@@ -56,7 +56,7 @@ input {
56
56
  }
57
57
 
58
58
  input#identifier, input#openid_url {
59
- background: url(http://openid.net/login-bg.gif) no-repeat;
59
+ background: url(https://openid.net/images/login-bg.gif) no-repeat;
60
60
  background-position: 0 50%;
61
61
  padding-left: 18px;
62
62
  }
@@ -0,0 +1,22 @@
1
+ require 'hashie/mash'
2
+
3
+ module OmniAuth
4
+ # Generic helper hash that allows method access on deeply nested keys.
5
+ class KeyStore < ::Hashie::Mash
6
+ # Disables warnings on Hashie 3.5.0+ for overwritten keys
7
+ def self.override_logging
8
+ require 'hashie/version'
9
+ return unless Gem::Version.new(Hashie::VERSION) >= Gem::Version.new('3.5.0')
10
+
11
+ if respond_to?(:disable_warnings)
12
+ disable_warnings
13
+ else
14
+ define_method(:log_built_in_message) { |*| }
15
+ private :log_built_in_message
16
+ end
17
+ end
18
+
19
+ # Disable on loading of the class
20
+ override_logging
21
+ end
22
+ end
@@ -1,4 +1,4 @@
1
- require 'hashie/mash'
1
+ require 'omniauth/key_store'
2
2
 
3
3
  module OmniAuth
4
4
  class NoSessionError < StandardError; end
@@ -480,7 +480,7 @@ module OmniAuth
480
480
  end
481
481
  end
482
482
 
483
- class Options < Hashie::Mash; end
483
+ class Options < OmniAuth::KeyStore; end
484
484
 
485
485
  protected
486
486
 
@@ -1,3 +1,3 @@
1
1
  module OmniAuth
2
- VERSION = '1.3.2'.freeze
2
+ VERSION = '1.4.0'.freeze
3
3
  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.3.2
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bleigh
@@ -10,78 +10,76 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-01-17 00:00:00.000000000 Z
13
+ date: 2017-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: hashie
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ! '>='
19
+ - - ">="
20
20
  - !ruby/object:Gem::Version
21
21
  version: '1.2'
22
- - - <
22
+ - - "<"
23
23
  - !ruby/object:Gem::Version
24
24
  version: '4'
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: !ruby/object:Gem::Requirement
28
28
  requirements:
29
- - - ! '>='
29
+ - - ">="
30
30
  - !ruby/object:Gem::Version
31
31
  version: '1.2'
32
- - - <
32
+ - - "<"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '4'
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: rack
37
37
  requirement: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ! '>='
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
41
  version: '1.0'
42
- - - <
42
+ - - "<"
43
43
  - !ruby/object:Gem::Version
44
44
  version: '3'
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - ! '>='
49
+ - - ">="
50
50
  - !ruby/object:Gem::Version
51
51
  version: '1.0'
52
- - - <
52
+ - - "<"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: !binary |-
76
- MTAuNQ==
75
+ version: '10.5'
77
76
  type: :development
78
77
  prerelease: false
79
78
  version_requirements: !ruby/object:Gem::Requirement
80
79
  requirements:
81
- - - ! '>='
80
+ - - ">="
82
81
  - !ruby/object:Gem::Version
83
- version: !binary |-
84
- MTAuNQ==
82
+ version: '10.5'
85
83
  description: A generalized Rack framework for multiple-provider authentication.
86
84
  email:
87
85
  - michael@intridea.com
@@ -91,11 +89,11 @@ executables: []
91
89
  extensions: []
92
90
  extra_rdoc_files: []
93
91
  files:
94
- - .gitignore
95
- - .rspec
96
- - .rubocop.yml
97
- - .travis.yml
98
- - .yardopts
92
+ - ".gitignore"
93
+ - ".rspec"
94
+ - ".rubocop.yml"
95
+ - ".travis.yml"
96
+ - ".yardopts"
99
97
  - Gemfile
100
98
  - LICENSE.md
101
99
  - README.md
@@ -106,6 +104,7 @@ files:
106
104
  - lib/omniauth/failure_endpoint.rb
107
105
  - lib/omniauth/form.css
108
106
  - lib/omniauth/form.rb
107
+ - lib/omniauth/key_store.rb
109
108
  - lib/omniauth/strategies/developer.rb
110
109
  - lib/omniauth/strategy.rb
111
110
  - lib/omniauth/test.rb
@@ -124,17 +123,17 @@ require_paths:
124
123
  - lib
125
124
  required_ruby_version: !ruby/object:Gem::Requirement
126
125
  requirements:
127
- - - ! '>='
126
+ - - ">="
128
127
  - !ruby/object:Gem::Version
129
128
  version: '0'
130
129
  required_rubygems_version: !ruby/object:Gem::Requirement
131
130
  requirements:
132
- - - ! '>='
131
+ - - ">="
133
132
  - !ruby/object:Gem::Version
134
133
  version: 1.3.5
135
134
  requirements: []
136
135
  rubyforge_project:
137
- rubygems_version: 2.5.1
136
+ rubygems_version: 2.6.4
138
137
  signing_key:
139
138
  specification_version: 4
140
139
  summary: A generalized Rack framework for multiple-provider authentication.