omniauth-linkedin-oauth2 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: e198fe921bc4621e180fbfb542da271a2bbe71f7
4
+ data.tar.gz: 408178ddfe9aed178033cdd992e43a5c589b714e
5
+ SHA512:
6
+ metadata.gz: 9fab83d99157fa89a19446ae5d6bc71f8d1097cbd26fea850b8da293b3f9a2c389cfaa06870fb503f0724ba5fade7634586e9d606d062a9738edcdacd35ecb76
7
+ data.tar.gz: 7ccf2cc673c91ca9eb94db651114d7cf991f169ca5373ca442e7e8e4e966edb22634c40cabc61c41c56b22bac64961b5573cc350567ca765da300d8c5b5d66d3
data/.travis.yml ADDED
@@ -0,0 +1,3 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.0.0
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # OmniAuth LinkedIn OAuth2 Strategy
2
2
 
3
+ [![Build Status](https://travis-ci.org/decioferreira/omniauth-linkedin-oauth2.png?branch=master)](https://travis-ci.org/decioferreira/omniauth-linkedin-oauth2)
4
+
3
5
  A LinkedIn OAuth2 strategy for OmniAuth.
4
6
 
5
7
  For more details, read the LinkedIn documentation: https://developer.linkedin.com/documents/authentication
@@ -1,5 +1,5 @@
1
1
  module OmniAuth
2
2
  module LinkedInOAuth2
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -9,9 +9,9 @@ module OmniAuth
9
9
  # This is where you pass the options you would pass when
10
10
  # initializing your consumer from the OAuth gem.
11
11
  option :client_options, {
12
- :site => 'https://www.linkedin.com',
13
- :authorize_url => '/uas/oauth2/authorization?response_type=code',
14
- :token_url => '/uas/oauth2/accessToken'
12
+ :site => 'https://api.linkedin.com',
13
+ :authorize_url => 'https://www.linkedin.com/uas/oauth2/authorization?response_type=code',
14
+ :token_url => 'https://www.linkedin.com/uas/oauth2/accessToken'
15
15
  }
16
16
 
17
17
  option :scope, 'r_basicprofile r_emailaddress'
@@ -20,6 +20,9 @@ Gem::Specification.new do |gem|
20
20
  gem.add_runtime_dependency 'omniauth', '~> 1.0'
21
21
  gem.add_runtime_dependency 'omniauth-oauth2'
22
22
 
23
+ gem.add_development_dependency 'bundler', '~> 1.3'
24
+ gem.add_development_dependency 'rake'
25
+
23
26
  gem.add_development_dependency 'rspec', '~> 2.13.0'
24
27
  gem.add_development_dependency 'simplecov'
25
28
  end
@@ -10,15 +10,15 @@ describe OmniAuth::Strategies::LinkedInOAuth2 do
10
10
 
11
11
  describe '#client' do
12
12
  it 'has correct LinkedIn site' do
13
- subject.client.site.should eq('https://www.linkedin.com')
13
+ subject.client.site.should eq('https://api.linkedin.com')
14
14
  end
15
15
 
16
16
  it 'has correct authorize url' do
17
- subject.client.options[:authorize_url].should eq('/uas/oauth2/authorization?response_type=code')
17
+ subject.client.options[:authorize_url].should eq('https://www.linkedin.com/uas/oauth2/authorization?response_type=code')
18
18
  end
19
19
 
20
20
  it 'has correct token url' do
21
- subject.client.options[:token_url].should eq('/uas/oauth2/accessToken')
21
+ subject.client.options[:token_url].should eq('https://www.linkedin.com/uas/oauth2/accessToken')
22
22
  end
23
23
  end
24
24
 
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-linkedin-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Décio Ferreira
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-03-25 00:00:00.000000000 Z
11
+ date: 2013-07-31 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: omniauth
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,23 +27,48 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: omniauth-oauth2
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
44
67
  - !ruby/object:Gem::Version
45
68
  version: '0'
46
69
  - !ruby/object:Gem::Dependency
47
70
  name: rspec
48
71
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
72
  requirements:
51
73
  - - ~>
52
74
  - !ruby/object:Gem::Version
@@ -54,7 +76,6 @@ dependencies:
54
76
  type: :development
55
77
  prerelease: false
56
78
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
79
  requirements:
59
80
  - - ~>
60
81
  - !ruby/object:Gem::Version
@@ -62,17 +83,15 @@ dependencies:
62
83
  - !ruby/object:Gem::Dependency
63
84
  name: simplecov
64
85
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
86
  requirements:
67
- - - ! '>='
87
+ - - '>='
68
88
  - !ruby/object:Gem::Version
69
89
  version: '0'
70
90
  type: :development
71
91
  prerelease: false
72
92
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
93
  requirements:
75
- - - ! '>='
94
+ - - '>='
76
95
  - !ruby/object:Gem::Version
77
96
  version: '0'
78
97
  description: A LinkedIn OAuth2 strategy for OmniAuth.
@@ -84,6 +103,7 @@ extra_rdoc_files: []
84
103
  files:
85
104
  - .gitignore
86
105
  - .rspec
106
+ - .travis.yml
87
107
  - Gemfile
88
108
  - LICENSE.txt
89
109
  - README.md
@@ -98,27 +118,26 @@ files:
98
118
  - spec/spec_helper.rb
99
119
  homepage: https://github.com/decioferreira/omniauth-linkedin-oauth2
100
120
  licenses: []
121
+ metadata: {}
101
122
  post_install_message:
102
123
  rdoc_options: []
103
124
  require_paths:
104
125
  - lib
105
126
  required_ruby_version: !ruby/object:Gem::Requirement
106
- none: false
107
127
  requirements:
108
- - - ! '>='
128
+ - - '>='
109
129
  - !ruby/object:Gem::Version
110
130
  version: '0'
111
131
  required_rubygems_version: !ruby/object:Gem::Requirement
112
- none: false
113
132
  requirements:
114
- - - ! '>='
133
+ - - '>='
115
134
  - !ruby/object:Gem::Version
116
135
  version: '0'
117
136
  requirements: []
118
137
  rubyforge_project:
119
- rubygems_version: 1.8.25
138
+ rubygems_version: 2.0.3
120
139
  signing_key:
121
- specification_version: 3
140
+ specification_version: 4
122
141
  summary: A LinkedIn OAuth2 strategy for OmniAuth.
123
142
  test_files:
124
143
  - spec/omniauth/strategies/linkedin_oauth2_spec.rb