omniauth-identity 3.0.4 → 3.0.9

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-identity
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Boling
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-02-14 00:00:00.000000000 Z
13
+ date: 2021-06-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bcrypt
@@ -40,54 +40,6 @@ dependencies:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
- - !ruby/object:Gem::Dependency
44
- name: anonymous_active_record
45
- requirement: !ruby/object:Gem::Requirement
46
- requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: '1.0'
50
- - - ">="
51
- - !ruby/object:Gem::Version
52
- version: 1.0.8
53
- type: :development
54
- prerelease: false
55
- version_requirements: !ruby/object:Gem::Requirement
56
- requirements:
57
- - - "~>"
58
- - !ruby/object:Gem::Version
59
- version: '1.0'
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: 1.0.8
63
- - !ruby/object:Gem::Dependency
64
- name: mongoid
65
- requirement: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - "~>"
68
- - !ruby/object:Gem::Version
69
- version: '7'
70
- type: :development
71
- prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - "~>"
75
- - !ruby/object:Gem::Version
76
- version: '7'
77
- - !ruby/object:Gem::Dependency
78
- name: nobrainer
79
- requirement: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - "~>"
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- type: :development
85
- prerelease: false
86
- version_requirements: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - "~>"
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
43
  - !ruby/object:Gem::Dependency
92
44
  name: rack-test
93
45
  requirement: !ruby/object:Gem::Requirement
@@ -131,19 +83,19 @@ dependencies:
131
83
  - !ruby/object:Gem::Version
132
84
  version: '3'
133
85
  - !ruby/object:Gem::Dependency
134
- name: sequel
86
+ name: rspec-block_is_expected
135
87
  requirement: !ruby/object:Gem::Requirement
136
88
  requirements:
137
89
  - - "~>"
138
90
  - !ruby/object:Gem::Version
139
- version: '5'
91
+ version: '1.0'
140
92
  type: :development
141
93
  prerelease: false
142
94
  version_requirements: !ruby/object:Gem::Requirement
143
95
  requirements:
144
96
  - - "~>"
145
97
  - !ruby/object:Gem::Version
146
- version: '5'
98
+ version: '1.0'
147
99
  - !ruby/object:Gem::Dependency
148
100
  name: sqlite3
149
101
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +110,7 @@ dependencies:
158
110
  - - "~>"
159
111
  - !ruby/object:Gem::Version
160
112
  version: '1.4'
161
- description: Internal authentication handlers for OmniAuth.
113
+ description: Traditional username/password based authentication system for OmniAuth
162
114
  email:
163
115
  executables: []
164
116
  extensions: []
@@ -175,19 +127,19 @@ files:
175
127
  - lib/omniauth/identity/models/active_record.rb
176
128
  - lib/omniauth/identity/models/couch_potato.rb
177
129
  - lib/omniauth/identity/models/mongoid.rb
178
- - lib/omniauth/identity/models/no_brainer.rb
130
+ - lib/omniauth/identity/models/nobrainer.rb
179
131
  - lib/omniauth/identity/models/sequel.rb
180
132
  - lib/omniauth/identity/secure_password.rb
181
133
  - lib/omniauth/strategies/identity.rb
182
134
  - spec/omniauth/identity/model_spec.rb
183
135
  - spec/omniauth/identity/models/active_record_spec.rb
184
- - spec/omniauth/identity/models/couch_potato_spec.rb
185
- - spec/omniauth/identity/models/mongoid_spec.rb
186
- - spec/omniauth/identity/models/no_brainer_spec.rb
187
136
  - spec/omniauth/identity/models/sequel_spec.rb
188
137
  - spec/omniauth/identity/secure_password_spec.rb
189
138
  - spec/omniauth/strategies/identity_spec.rb
190
139
  - spec/spec_helper.rb
140
+ - spec/support/shared_contexts/instance_with_instance_methods.rb
141
+ - spec/support/shared_contexts/model_with_class_methods.rb
142
+ - spec/support/shared_contexts/persistable_model.rb
191
143
  homepage: http://github.com/omniauth/omniauth-identity
192
144
  licenses:
193
145
  - MIT
@@ -208,17 +160,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
208
160
  - !ruby/object:Gem::Version
209
161
  version: 1.3.6
210
162
  requirements: []
211
- rubygems_version: 3.2.3
163
+ rubygems_version: 3.2.17
212
164
  signing_key:
213
165
  specification_version: 4
214
- summary: Internal authentication handlers for OmniAuth.
166
+ summary: Traditional username/password based authentication system for OmniAuth
215
167
  test_files:
216
- - spec/omniauth/identity/model_spec.rb
168
+ - spec/spec_helper.rb
169
+ - spec/support/shared_contexts/persistable_model.rb
170
+ - spec/support/shared_contexts/model_with_class_methods.rb
171
+ - spec/support/shared_contexts/instance_with_instance_methods.rb
217
172
  - spec/omniauth/identity/models/active_record_spec.rb
218
- - spec/omniauth/identity/models/couch_potato_spec.rb
219
- - spec/omniauth/identity/models/mongoid_spec.rb
220
- - spec/omniauth/identity/models/no_brainer_spec.rb
221
173
  - spec/omniauth/identity/models/sequel_spec.rb
222
174
  - spec/omniauth/identity/secure_password_spec.rb
175
+ - spec/omniauth/identity/model_spec.rb
223
176
  - spec/omniauth/strategies/identity_spec.rb
224
- - spec/spec_helper.rb
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'couch_potato'
4
-
5
- class CouchPotatoTestIdentity
6
- include CouchPotato::Persistence
7
- include OmniAuth::Identity::Models::CouchPotatoModule
8
- auth_key :ham_sandwich
9
- end
10
-
11
- RSpec.describe(OmniAuth::Identity::Models::CouchPotatoModule, db: true) do
12
- describe 'model', type: :model do
13
- subject { CouchPotatoTestIdentity }
14
-
15
- it 'delegates locate to the where query method' do
16
- allow(subject).to receive(:where).with('ham_sandwich' => 'open faced',
17
- 'category' => 'sandwiches').and_return(['wakka'])
18
- expect(subject.locate('ham_sandwich' => 'open faced', 'category' => 'sandwiches')).to eq('wakka')
19
- end
20
- end
21
- end
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'mongoid'
4
-
5
- class MongoidTestIdentity
6
- include Mongoid::Document
7
- include OmniAuth::Identity::Models::Mongoid
8
- auth_key :ham_sandwich
9
- store_in database: 'db1', collection: 'mongoid_test_identities', client: 'secondary'
10
- end
11
-
12
- RSpec.describe(OmniAuth::Identity::Models::Mongoid, db: true) do
13
- describe 'model', type: :model do
14
- subject { MongoidTestIdentity }
15
-
16
- it { is_expected.to be_mongoid_document }
17
-
18
- it 'does not munge collection name' do
19
- expect(subject).to be_stored_in(database: 'db1', collection: 'mongoid_test_identities', client: 'secondary')
20
- end
21
-
22
- it 'delegates locate to the where query method' do
23
- allow(subject).to receive(:where).with('ham_sandwich' => 'open faced',
24
- 'category' => 'sandwiches').and_return(['wakka'])
25
- expect(subject.locate('ham_sandwich' => 'open faced', 'category' => 'sandwiches')).to eq('wakka')
26
- end
27
- end
28
- end
@@ -1,17 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'nobrainer'
4
-
5
- class NobrainerTestIdentity
6
- include NoBrainer::Document
7
- include OmniAuth::Identity::Models::NoBrainer
8
- auth_key :ham_sandwich
9
- end
10
-
11
- RSpec.describe(OmniAuth::Identity::Models::NoBrainer, db: true) do
12
- it 'delegates locate to the where query method' do
13
- allow(NobrainerTestIdentity).to receive(:where).with('ham_sandwich' => 'open faced',
14
- 'category' => 'sandwiches').and_return(['wakka'])
15
- expect(NobrainerTestIdentity.locate('ham_sandwich' => 'open faced', 'category' => 'sandwiches')).to eq('wakka')
16
- end
17
- end