omniauth-linkedin-oauth2 0.1.4 → 0.1.5

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: edc91d23ffc1df089457cf3c24973c98ef3643a6
4
- data.tar.gz: 01fd4f3f7050b1dfa199c046bb4c93ffcd0034c0
3
+ metadata.gz: 3c1ea4a52194f6a78191049881d96bf753e48037
4
+ data.tar.gz: fd5aeb28503ef56bba18876b5784b755585cbbb6
5
5
  SHA512:
6
- metadata.gz: 13b6bc6dc344479d5e82578c514729a4de9ed11bafcb730ce24d62888573b0a6d0ae6cb3fcbe8f533a785d482b588f6805790bec40343aa45f5eb6a98b57ee6e
7
- data.tar.gz: d0638389f17f9bf15f76c527119e91a61c4ca42f186d862d701857b976951a83b87038829bcaf935278d854e24d60f01cddb30caa052838b24e5e43ce4789e53
6
+ metadata.gz: c703d367e0f9922e72d5bc2f73e10c8f926d4038a2abb77897f4a3e070445076d1557ddd04eeb8724207e981838c5ddd72792a95062a5ce0bc1ba3c4e1394245
7
+ data.tar.gz: 76cccbed6fac06e22be7e027056a3099c3b4870cc2c6b6cbaa7fe4895bd835bf19cf9b14a6888b057bb160cc74c56fcd149714f2f0ead1d294496a85434f1cb9
data/README.md CHANGED
@@ -63,7 +63,7 @@ When specifying which permissions you want to users to grant to your application
63
63
  ['id', 'email-address', 'first-name', 'last-name', 'headline', 'location', 'industry', 'picture-url', 'public-profile-url']
64
64
  ```
65
65
 
66
- Here's an example of a possible configuration where the the fields returned from the API are: id, email-address, first-name and last-name.
66
+ Here's an example of a possible configuration where the fields returned from the API are: id, email-address, first-name and last-name.
67
67
 
68
68
  ```ruby
69
69
  provider :linkedin, ENV['LINKEDIN_KEY'], ENV['LINKEDIN_SECRET'], :fields => ['id', 'email-address', 'first-name', 'last-name']
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module LinkedInOAuth2
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -49,7 +49,9 @@ module OmniAuth
49
49
  def access_token
50
50
  ::OAuth2::AccessToken.new(client, oauth2_access_token.token, {
51
51
  :mode => :query,
52
- :param_name => 'oauth2_access_token'
52
+ :param_name => 'oauth2_access_token',
53
+ :expires_in => oauth2_access_token.expires_in,
54
+ :expires_at => oauth2_access_token.expires_at
53
55
  })
54
56
  end
55
57
 
@@ -64,6 +64,15 @@ describe OmniAuth::Strategies::LinkedIn do
64
64
  it { subject.extra['raw_info'].should eq({ :foo => 'bar' }) }
65
65
  end
66
66
 
67
+ describe '#access_token' do
68
+ before :each do
69
+ subject.stub(:oauth2_access_token) { double('oauth2 access token', :expires_in => 3600, :expires_at => 946688400).as_null_object }
70
+ end
71
+
72
+ it { subject.access_token.expires_in.should eq(3600) }
73
+ it { subject.access_token.expires_at.should eq(946688400) }
74
+ end
75
+
67
76
  describe '#raw_info' do
68
77
  before :each do
69
78
  response = double('response', :parsed => { :foo => 'bar' })
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-linkedin-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Décio Ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-22 00:00:00.000000000 Z
11
+ date: 2013-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: omniauth
@@ -136,7 +136,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
136
136
  version: '0'
137
137
  requirements: []
138
138
  rubyforge_project:
139
- rubygems_version: 2.1.8
139
+ rubygems_version: 2.1.9
140
140
  signing_key:
141
141
  specification_version: 4
142
142
  summary: A LinkedIn OAuth2 strategy for OmniAuth.