omniauth-walletone 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f18096e636c16330da9b65adfca8a64c0261f24
4
- data.tar.gz: f8442eebf66658db8ac0039cc22d821ce5379df3
3
+ metadata.gz: 13880151a31374ba8a2327db7723cad010186842
4
+ data.tar.gz: 2f0648cc01ca996ee6b4b81104eb7c361edfd31f
5
5
  SHA512:
6
- metadata.gz: e0358928b11b0f173335f7ffca4caa025c3388a298767f8ec2a8cf90d002f6c3b9756a8eef62ed0ea08f24539722c15b96e7f174029a49bd73497cd496dda517
7
- data.tar.gz: c897d8231e3a46fdaea18dfbec2ef312762bac8db9800b7cb990200996cb834f6b3878bc797368f58d334540eafe430b28e0669c624623baf7aef471375e25d6
6
+ metadata.gz: 6a1096476653752f349d9f4a788fd41dc6cc7a258e5ed274319b6366db4f2ebbacd9f084ef37e48e930bd4bc0628e8f4b70067ba438630babb2d769f8008b560
7
+ data.tar.gz: 9a10c064470459c41d358678ab6e25e982f4cad49950eeb7460d7771b537839d02a7b96c85260232ede3f388559a2debda5bd1eb44873de58f8d927df6621e1f
@@ -50,6 +50,10 @@ module OmniAuth
50
50
  }
51
51
  end
52
52
 
53
+ extra do
54
+ skip_info? ? {} : { :raw_info => raw_info }
55
+ end
56
+
53
57
  def credentials
54
58
  creds = super
55
59
  creds['expires'] = raw_info['ExpireDate']
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module WalletOne
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Andrey Sidorov"]
10
10
  spec.email = ["vozdelaluz@gmail.com"]
11
11
  spec.summary = %q{OmniAuth strategy for WalletOne}
12
- spec.homepage = ""
12
+ spec.homepage = "https://github.com/heretge/omniauth-walletone"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
@@ -30,6 +30,16 @@ describe OmniAuth::Strategies::WalletOne do
30
30
  end
31
31
  end
32
32
 
33
+ describe 'skip_info option' do
34
+ context 'when skip info option is enabled' do
35
+ it 'should not include raw_info in extras hash' do
36
+ @options = { :skip_info => true }
37
+ allow(subject).to receive(:raw_info).and_return({:foo => 'bar'})
38
+ expect(subject.extra[:raw_info]).to eq(nil)
39
+ end
40
+ end
41
+ end
42
+
33
43
  describe 'expires field is not set by default, then it' do
34
44
  it 'should be taken from session raw_info' do
35
45
  allow(OmniAuth::Strategies::OAuth2).to receive(:credentials_stack).and_return([{'token' => 'token', 'expires' => nil}])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-walletone
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sidorov
@@ -112,7 +112,7 @@ files:
112
112
  - omniauth-walletone.gemspec
113
113
  - spec/omniauth/strategies/walletone_spec.rb
114
114
  - spec/spec_helper.rb
115
- homepage: ''
115
+ homepage: https://github.com/heretge/omniauth-walletone
116
116
  licenses:
117
117
  - MIT
118
118
  metadata: {}