omniauth-identity 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -1,14 +1,13 @@
1
- require 'rubygems'
2
- require 'bundler'
3
- Bundler.setup :default, :development, :test
1
+ # frozen_string_literal: true
4
2
 
5
- # Third party gems to help with testing
6
- require 'simplecov'
7
- SimpleCov.start
3
+ ruby_version = Gem::Version.new(RUBY_VERSION)
4
+ require 'simplecov' if ruby_version >= Gem::Version.new('2.7') && RUBY_ENGINE == 'ruby'
8
5
 
9
6
  require 'rack/test'
10
7
  require 'mongoid-rspec'
11
- require 'byebug'
8
+ require 'sqlite3'
9
+ require 'anonymous_active_record'
10
+ require 'byebug' if RUBY_ENGINE == 'ruby'
12
11
 
13
12
  # This gem
14
13
  require 'omniauth/identity'
@@ -16,5 +15,14 @@ require 'omniauth/identity'
16
15
  RSpec.configure do |config|
17
16
  config.include Rack::Test::Methods
18
17
  config.include Mongoid::Matchers, type: :model
19
- end
20
18
 
19
+ # Enable flags like --only-failures and --next-failure
20
+ config.example_status_persistence_file_path = '.rspec_status'
21
+
22
+ # Disable RSpec exposing methods globally on `Module` and `main`
23
+ config.disable_monkey_patching!
24
+
25
+ config.expect_with :rspec do |c|
26
+ c.syntax = :expect
27
+ end
28
+ end
metadata CHANGED
@@ -1,18 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
+ - Peter Boling
7
8
  - Andrew Roberts
8
9
  - Michael Bleigh
9
- autorequire:
10
- bindir: bin
10
+ autorequire:
11
+ bindir: exe
11
12
  cert_chain: []
12
- date: 2020-09-01 00:00:00.000000000 Z
13
+ date: 2021-02-13 00:00:00.000000000 Z
13
14
  dependencies:
14
15
  - !ruby/object:Gem::Dependency
15
- name: omniauth
16
+ name: bcrypt
16
17
  requirement: !ruby/object:Gem::Requirement
17
18
  requirements:
18
19
  - - ">="
@@ -26,7 +27,7 @@ dependencies:
26
27
  - !ruby/object:Gem::Version
27
28
  version: '0'
28
29
  - !ruby/object:Gem::Dependency
29
- name: bcrypt
30
+ name: omniauth
30
31
  requirement: !ruby/object:Gem::Requirement
31
32
  requirements:
32
33
  - - ">="
@@ -40,61 +41,89 @@ dependencies:
40
41
  - !ruby/object:Gem::Version
41
42
  version: '0'
42
43
  - !ruby/object:Gem::Dependency
43
- name: maruku
44
+ name: activerecord
44
45
  requirement: !ruby/object:Gem::Requirement
45
46
  requirements:
46
- - - ">="
47
+ - - "~>"
47
48
  - !ruby/object:Gem::Version
48
- version: '0'
49
+ version: '5'
49
50
  type: :development
50
51
  prerelease: false
51
52
  version_requirements: !ruby/object:Gem::Requirement
52
53
  requirements:
53
- - - ">="
54
+ - - "~>"
54
55
  - !ruby/object:Gem::Version
55
- version: '0'
56
+ version: '5'
56
57
  - !ruby/object:Gem::Dependency
57
- name: simplecov
58
+ name: anonymous_active_record
58
59
  requirement: !ruby/object:Gem::Requirement
59
60
  requirements:
60
61
  - - ">="
61
62
  - !ruby/object:Gem::Version
62
- version: '0'
63
+ version: 1.0.5
63
64
  type: :development
64
65
  prerelease: false
65
66
  version_requirements: !ruby/object:Gem::Requirement
66
67
  requirements:
67
68
  - - ">="
68
69
  - !ruby/object:Gem::Version
69
- version: '0'
70
+ version: 1.0.5
71
+ - !ruby/object:Gem::Dependency
72
+ name: byebug
73
+ requirement: !ruby/object:Gem::Requirement
74
+ requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '11'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - "~>"
83
+ - !ruby/object:Gem::Version
84
+ version: '11'
85
+ - !ruby/object:Gem::Dependency
86
+ name: mongoid
87
+ requirement: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '6'
92
+ type: :development
93
+ prerelease: false
94
+ version_requirements: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - "~>"
97
+ - !ruby/object:Gem::Version
98
+ version: '6'
70
99
  - !ruby/object:Gem::Dependency
71
100
  name: rack-test
72
101
  requirement: !ruby/object:Gem::Requirement
73
102
  requirements:
74
- - - ">="
103
+ - - "~>"
75
104
  - !ruby/object:Gem::Version
76
- version: '0'
105
+ version: '1'
77
106
  type: :development
78
107
  prerelease: false
79
108
  version_requirements: !ruby/object:Gem::Requirement
80
109
  requirements:
81
- - - ">="
110
+ - - "~>"
82
111
  - !ruby/object:Gem::Version
83
- version: '0'
112
+ version: '1'
84
113
  - !ruby/object:Gem::Dependency
85
114
  name: rake
86
115
  requirement: !ruby/object:Gem::Requirement
87
116
  requirements:
88
- - - ">="
117
+ - - "~>"
89
118
  - !ruby/object:Gem::Version
90
- version: '0'
119
+ version: '13'
91
120
  type: :development
92
121
  prerelease: false
93
122
  version_requirements: !ruby/object:Gem::Requirement
94
123
  requirements:
95
- - - ">="
124
+ - - "~>"
96
125
  - !ruby/object:Gem::Version
97
- version: '0'
126
+ version: '13'
98
127
  - !ruby/object:Gem::Dependency
99
128
  name: rspec
100
129
  requirement: !ruby/object:Gem::Requirement
@@ -110,7 +139,21 @@ dependencies:
110
139
  - !ruby/object:Gem::Version
111
140
  version: '3'
112
141
  - !ruby/object:Gem::Dependency
113
- name: activerecord
142
+ name: rubocop
143
+ requirement: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - "~>"
146
+ - !ruby/object:Gem::Version
147
+ version: '1.9'
148
+ type: :development
149
+ prerelease: false
150
+ version_requirements: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - "~>"
153
+ - !ruby/object:Gem::Version
154
+ version: '1.9'
155
+ - !ruby/object:Gem::Dependency
156
+ name: rubocop-md
114
157
  requirement: !ruby/object:Gem::Requirement
115
158
  requirements:
116
159
  - - ">="
@@ -124,7 +167,7 @@ dependencies:
124
167
  - !ruby/object:Gem::Version
125
168
  version: '0'
126
169
  - !ruby/object:Gem::Dependency
127
- name: mongoid
170
+ name: rubocop-minitest
128
171
  requirement: !ruby/object:Gem::Requirement
129
172
  requirements:
130
173
  - - ">="
@@ -138,7 +181,7 @@ dependencies:
138
181
  - !ruby/object:Gem::Version
139
182
  version: '0'
140
183
  - !ruby/object:Gem::Dependency
141
- name: datamapper
184
+ name: rubocop-packaging
142
185
  requirement: !ruby/object:Gem::Requirement
143
186
  requirements:
144
187
  - - ">="
@@ -152,7 +195,7 @@ dependencies:
152
195
  - !ruby/object:Gem::Version
153
196
  version: '0'
154
197
  - !ruby/object:Gem::Dependency
155
- name: bson_ext
198
+ name: rubocop-performance
156
199
  requirement: !ruby/object:Gem::Requirement
157
200
  requirements:
158
201
  - - ">="
@@ -166,7 +209,7 @@ dependencies:
166
209
  - !ruby/object:Gem::Version
167
210
  version: '0'
168
211
  - !ruby/object:Gem::Dependency
169
- name: byebug
212
+ name: rubocop-rake
170
213
  requirement: !ruby/object:Gem::Requirement
171
214
  requirements:
172
215
  - - ">="
@@ -180,7 +223,35 @@ dependencies:
180
223
  - !ruby/object:Gem::Version
181
224
  version: '0'
182
225
  - !ruby/object:Gem::Dependency
183
- name: couch_potato
226
+ name: rubocop-rspec
227
+ requirement: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - ">="
230
+ - !ruby/object:Gem::Version
231
+ version: '0'
232
+ type: :development
233
+ prerelease: false
234
+ version_requirements: !ruby/object:Gem::Requirement
235
+ requirements:
236
+ - - ">="
237
+ - !ruby/object:Gem::Version
238
+ version: '0'
239
+ - !ruby/object:Gem::Dependency
240
+ name: simplecov
241
+ requirement: !ruby/object:Gem::Requirement
242
+ requirements:
243
+ - - "~>"
244
+ - !ruby/object:Gem::Version
245
+ version: '0.21'
246
+ type: :development
247
+ prerelease: false
248
+ version_requirements: !ruby/object:Gem::Requirement
249
+ requirements:
250
+ - - "~>"
251
+ - !ruby/object:Gem::Version
252
+ version: '0.21'
253
+ - !ruby/object:Gem::Dependency
254
+ name: sqlite3
184
255
  requirement: !ruby/object:Gem::Requirement
185
256
  requirements:
186
257
  - - ">="
@@ -194,34 +265,27 @@ dependencies:
194
265
  - !ruby/object:Gem::Version
195
266
  version: '0'
196
267
  description: Internal authentication handlers for OmniAuth.
197
- email:
268
+ email:
198
269
  executables: []
199
270
  extensions: []
200
271
  extra_rdoc_files: []
201
272
  files:
202
- - ".gitignore"
203
- - ".rspec"
204
273
  - CHANGELOG.md
205
- - Gemfile
206
- - Guardfile
274
+ - CODE_OF_CONDUCT.md
207
275
  - LICENSE
208
- - README.markdown
209
- - Rakefile
276
+ - README.md
210
277
  - lib/omniauth-identity.rb
211
278
  - lib/omniauth-identity/version.rb
212
279
  - lib/omniauth/identity.rb
213
280
  - lib/omniauth/identity/model.rb
214
281
  - lib/omniauth/identity/models/active_record.rb
215
282
  - lib/omniauth/identity/models/couch_potato.rb
216
- - lib/omniauth/identity/models/data_mapper.rb
217
283
  - lib/omniauth/identity/models/mongoid.rb
218
284
  - lib/omniauth/identity/secure_password.rb
219
285
  - lib/omniauth/strategies/identity.rb
220
- - omniauth-identity.gemspec
221
286
  - spec/omniauth/identity/model_spec.rb
222
287
  - spec/omniauth/identity/models/active_record_spec.rb
223
288
  - spec/omniauth/identity/models/couch_potato_spec.rb
224
- - spec/omniauth/identity/models/data_mapper_spec.rb
225
289
  - spec/omniauth/identity/models/mongoid_spec.rb
226
290
  - spec/omniauth/identity/secure_password_spec.rb
227
291
  - spec/omniauth/strategies/identity_spec.rb
@@ -230,32 +294,31 @@ homepage: http://github.com/omniauth/omniauth-identity
230
294
  licenses:
231
295
  - MIT
232
296
  metadata: {}
233
- post_install_message:
234
- rdoc_options: []
297
+ post_install_message:
298
+ rdoc_options:
299
+ - "--charset=UTF-8"
235
300
  require_paths:
236
301
  - lib
237
302
  required_ruby_version: !ruby/object:Gem::Requirement
238
303
  requirements:
239
304
  - - ">="
240
305
  - !ruby/object:Gem::Version
241
- version: '0'
306
+ version: '2.4'
242
307
  required_rubygems_version: !ruby/object:Gem::Requirement
243
308
  requirements:
244
309
  - - ">="
245
310
  - !ruby/object:Gem::Version
246
311
  version: 1.3.6
247
312
  requirements: []
248
- rubyforge_project:
249
- rubygems_version: 2.7.10
250
- signing_key:
313
+ rubygems_version: 3.2.9
314
+ signing_key:
251
315
  specification_version: 4
252
316
  summary: Internal authentication handlers for OmniAuth.
253
317
  test_files:
254
- - spec/omniauth/identity/model_spec.rb
318
+ - spec/spec_helper.rb
319
+ - spec/omniauth/identity/models/mongoid_spec.rb
255
320
  - spec/omniauth/identity/models/active_record_spec.rb
256
321
  - spec/omniauth/identity/models/couch_potato_spec.rb
257
- - spec/omniauth/identity/models/data_mapper_spec.rb
258
- - spec/omniauth/identity/models/mongoid_spec.rb
259
322
  - spec/omniauth/identity/secure_password_spec.rb
323
+ - spec/omniauth/identity/model_spec.rb
260
324
  - spec/omniauth/strategies/identity_spec.rb
261
- - spec/spec_helper.rb
data/.gitignore DELETED
@@ -1,6 +0,0 @@
1
- /coverage
2
- /pkg
3
- /doc
4
- Gemfile.lock
5
- /.ruby-version
6
- /.ruby-gemset
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --require spec_helper
2
- --format=documentation
3
- --colour
data/Gemfile DELETED
@@ -1,13 +0,0 @@
1
- source "http://rubygems.org"
2
- git_source(:github) { |repo| "https://github.com/#{repo}.git" }
3
-
4
- gemspec
5
-
6
- group :development, :test do
7
- gem 'mongoid-rspec', github: 'mongoid/mongoid-rspec'
8
- gem 'guard'
9
- gem 'guard-rspec'
10
- gem 'guard-bundler'
11
- gem 'growl'
12
- gem 'rb-fsevent'
13
- end
data/Guardfile DELETED
@@ -1,10 +0,0 @@
1
- guard 'rspec', :version => 2 do
2
- watch(%r{^spec/.+_spec\.rb$})
3
- watch(%r{^lib/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
4
- watch('spec/spec_helper.rb') { "spec" }
5
- end
6
-
7
- guard 'bundler' do
8
- watch('Gemfile')
9
- watch(/^.+\.gemspec/)
10
- end
data/Rakefile DELETED
@@ -1,9 +0,0 @@
1
- require 'bundler'
2
- Bundler::GemHelper.install_tasks
3
-
4
- require 'rspec/core/rake_task'
5
- desc "Run specs."
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- task :default => :spec
9
- task :test => :spec
@@ -1,32 +0,0 @@
1
- require 'dm-core'
2
- require 'dm-validations'
3
-
4
- module OmniAuth
5
- module Identity
6
- module Models
7
- module DataMapper
8
- def self.included(base)
9
- base.class_eval do
10
- include OmniAuth::Identity::Model
11
- include OmniAuth::Identity::SecurePassword
12
-
13
- # http://api.rubyonrails.org/classes/ActiveRecord/Persistence.html#method-i-persisted-3F
14
- # http://rubydoc.info/github/mongoid/mongoid/master/Mongoid/State#persisted%3F-instance_method
15
- alias persisted? valid?
16
-
17
- has_secure_password
18
-
19
- def self.auth_key=(key)
20
- super
21
- validates_uniqueness_of :key
22
- end
23
-
24
- def self.locate(search_hash)
25
- all(search_hash).first
26
- end
27
- end
28
- end
29
- end # DataMapper
30
- end
31
- end
32
- end
@@ -1,32 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- require File.dirname(__FILE__) + '/lib/omniauth-identity/version'
3
-
4
- Gem::Specification.new do |gem|
5
- gem.add_runtime_dependency 'omniauth'
6
- gem.add_runtime_dependency 'bcrypt'
7
-
8
- gem.add_development_dependency 'maruku'
9
- gem.add_development_dependency 'simplecov'
10
- gem.add_development_dependency 'rack-test'
11
- gem.add_development_dependency 'rake'
12
- gem.add_development_dependency 'rspec', '~> 3'
13
- gem.add_development_dependency 'activerecord'
14
- gem.add_development_dependency 'mongoid'
15
- gem.add_development_dependency 'datamapper'
16
- gem.add_development_dependency 'bson_ext'
17
- gem.add_development_dependency 'byebug'
18
- gem.add_development_dependency 'couch_potato'
19
-
20
- gem.name = 'omniauth-identity'
21
- gem.version = OmniAuth::Identity::VERSION
22
- gem.description = %q{Internal authentication handlers for OmniAuth.}
23
- gem.summary = gem.description
24
- gem.homepage = 'http://github.com/omniauth/omniauth-identity'
25
- gem.authors = ['Andrew Roberts', 'Michael Bleigh']
26
- gem.license = 'MIT'
27
- gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
28
- gem.files = `git ls-files`.split("\n")
29
- gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
30
- gem.require_paths = ['lib']
31
- gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6') if gem.respond_to? :required_rubygems_version=
32
- end