omniauth-identity 2.0.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -1
- data/CODE_OF_CONDUCT.md +133 -0
- data/{README.markdown → README.md} +62 -29
- data/lib/omniauth-identity/version.rb +1 -1
- data/lib/omniauth/identity.rb +0 -1
- data/lib/omniauth/identity/model.rb +9 -9
- data/lib/omniauth/identity/models/active_record.rb +2 -1
- data/lib/omniauth/identity/models/couch_potato.rb +1 -4
- data/lib/omniauth/identity/models/mongoid.rb +1 -7
- data/lib/omniauth/identity/secure_password.rb +2 -4
- data/lib/omniauth/strategies/identity.rb +39 -22
- data/spec/omniauth/identity/model_spec.rb +34 -33
- data/spec/omniauth/identity/models/active_record_spec.rb +22 -10
- data/spec/omniauth/identity/models/couch_potato_spec.rb +4 -3
- data/spec/omniauth/identity/models/mongoid_spec.rb +6 -5
- data/spec/omniauth/identity/secure_password_spec.rb +7 -7
- data/spec/omniauth/strategies/identity_spec.rb +173 -59
- data/spec/spec_helper.rb +16 -8
- metadata +111 -48
- data/.gitignore +0 -6
- data/.rspec +0 -3
- data/Gemfile +0 -13
- data/Guardfile +0 -10
- data/Rakefile +0 -9
- data/lib/omniauth/identity/models/data_mapper.rb +0 -32
- data/omniauth-identity.gemspec +0 -32
- data/spec/omniauth/identity/models/data_mapper_spec.rb +0 -24
@@ -1,24 +0,0 @@
|
|
1
|
-
describe(OmniAuth::Identity::Models::DataMapper, :db => true) do
|
2
|
-
class DataMapperTestIdentity
|
3
|
-
include DataMapper::Resource
|
4
|
-
include OmniAuth::Identity::Models::DataMapper
|
5
|
-
|
6
|
-
property :id, Serial
|
7
|
-
auth_key :ham_sandwich
|
8
|
-
end
|
9
|
-
|
10
|
-
|
11
|
-
before :all do
|
12
|
-
DataMapper.finalize
|
13
|
-
@resource = DataMapperTestIdentity.new
|
14
|
-
end
|
15
|
-
|
16
|
-
describe 'model', type: :model do
|
17
|
-
subject { DataMapperTestIdentity }
|
18
|
-
|
19
|
-
it 'should delegate locate to the all query method' do
|
20
|
-
allow(subject).to receive(:all).with('ham_sandwich' => 'open faced', 'category' => 'sandwiches').and_return(['wakka'])
|
21
|
-
expect(subject.locate('ham_sandwich' => 'open faced', 'category' => 'sandwiches')).to eq('wakka')
|
22
|
-
end
|
23
|
-
end
|
24
|
-
end
|