linkedin-oauth2 0.1.1 → 1.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.
Files changed (95) hide show
  1. checksums.yaml +9 -9
  2. data/.gitignore +24 -39
  3. data/.travis.yml +4 -4
  4. data/.yardopts +2 -0
  5. data/CHANGELOG.md +10 -0
  6. data/CONTRIBUTING.md +1 -0
  7. data/Gemfile +6 -5
  8. data/LICENSE +19 -17
  9. data/README.md +399 -0
  10. data/Rakefile +15 -22
  11. data/lib/linked_in/access_token.rb +24 -0
  12. data/lib/linked_in/api.rb +96 -3
  13. data/lib/linked_in/api_resource.rb +165 -0
  14. data/lib/linked_in/communications.rb +40 -0
  15. data/lib/linked_in/companies.rb +146 -0
  16. data/lib/linked_in/configuration.rb +41 -0
  17. data/lib/linked_in/connection.rb +31 -0
  18. data/lib/linked_in/errors.rb +33 -13
  19. data/lib/linked_in/groups.rb +116 -0
  20. data/lib/linked_in/jobs.rb +68 -0
  21. data/lib/linked_in/mash.rb +34 -34
  22. data/lib/linked_in/oauth2.rb +223 -0
  23. data/lib/linked_in/people.rb +141 -0
  24. data/lib/linked_in/search.rb +58 -43
  25. data/lib/linked_in/share_and_social_stream.rb +128 -0
  26. data/lib/linked_in/version.rb +1 -9
  27. data/lib/linkedin-oauth2.rb +43 -25
  28. data/linkedin-oauth2.gemspec +35 -21
  29. data/spec/linked_in/api/api_spec.rb +41 -0
  30. data/spec/linked_in/api/communications_spec.rb +13 -0
  31. data/spec/linked_in/api/companies_spec.rb +59 -0
  32. data/spec/linked_in/api/groups_spec.rb +55 -0
  33. data/spec/linked_in/api/jobs_spec.rb +33 -0
  34. data/spec/linked_in/api/people_spec.rb +181 -0
  35. data/spec/linked_in/api/search_spec.rb +71 -0
  36. data/spec/linked_in/api/share_and_social_stream_spec.rb +60 -0
  37. data/spec/linked_in/configuration_spec.rb +46 -0
  38. data/spec/linked_in/connection_spec.rb +10 -0
  39. data/spec/linked_in/module_loading_spec.rb +23 -0
  40. data/spec/linked_in/oauth/access_token_spec.rb +27 -0
  41. data/spec/linked_in/oauth/auth_code_spec.rb +86 -0
  42. data/spec/linked_in/oauth/credentials_spec.rb +96 -0
  43. data/spec/linked_in/oauth/get_access_token_spec.rb +108 -0
  44. data/spec/spec_helper.rb +15 -0
  45. data/spec/vcr_cassettes/access_token_success.yml +84 -0
  46. data/spec/vcr_cassettes/bad_code.yml +78 -0
  47. data/spec/vcr_cassettes/companies_data.yml +44 -0
  48. data/spec/vcr_cassettes/invalid_access_token.yml +60 -0
  49. data/spec/vcr_cassettes/not_found.yml +64 -0
  50. data/spec/vcr_cassettes/people_picture_urls.yml +54 -0
  51. data/spec/vcr_cassettes/people_profile_connections_fields.yml +73 -0
  52. data/spec/vcr_cassettes/people_profile_connections_other.yml +78 -0
  53. data/spec/vcr_cassettes/people_profile_connections_self.yml +78 -0
  54. data/spec/vcr_cassettes/people_profile_fields_complex.yml +70 -0
  55. data/spec/vcr_cassettes/people_profile_fields_simple.yml +57 -0
  56. data/spec/vcr_cassettes/people_profile_lang_spanish.yml +59 -0
  57. data/spec/vcr_cassettes/people_profile_multiple_fields.yml +68 -0
  58. data/spec/vcr_cassettes/people_profile_multiple_uids.yml +70 -0
  59. data/spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml +76 -0
  60. data/spec/vcr_cassettes/people_profile_multiple_urls.yml +70 -0
  61. data/spec/vcr_cassettes/people_profile_new_connections_fields.yml +69 -0
  62. data/spec/vcr_cassettes/people_profile_new_connections_other.yml +72 -0
  63. data/spec/vcr_cassettes/people_profile_new_connections_self.yml +72 -0
  64. data/spec/vcr_cassettes/people_profile_other_uid.yml +59 -0
  65. data/spec/vcr_cassettes/people_profile_other_url.yml +59 -0
  66. data/spec/vcr_cassettes/people_profile_own.yml +59 -0
  67. data/spec/vcr_cassettes/people_profile_own_secure.yml +59 -0
  68. data/spec/vcr_cassettes/unauthorized.yml +61 -0
  69. data/spec/vcr_cassettes/unavailable.yml +81 -0
  70. metadata +145 -88
  71. data/.autotest +0 -14
  72. data/.document +0 -5
  73. data/.gemtest +0 -0
  74. data/.rspec +0 -1
  75. data/.ruby-gemset +0 -1
  76. data/.ruby-version +0 -1
  77. data/README.markdown +0 -121
  78. data/changelog.markdown +0 -94
  79. data/examples/authenticate.rb +0 -16
  80. data/examples/network.rb +0 -12
  81. data/examples/profile.rb +0 -18
  82. data/examples/sinatra.rb +0 -69
  83. data/examples/status.rb +0 -6
  84. data/lib/linked_in/api/query_methods.rb +0 -123
  85. data/lib/linked_in/api/update_methods.rb +0 -76
  86. data/lib/linked_in/client.rb +0 -31
  87. data/lib/linked_in/helpers.rb +0 -6
  88. data/lib/linked_in/helpers/authorization.rb +0 -106
  89. data/lib/linked_in/helpers/request.rb +0 -93
  90. data/spec/cases/api_spec.rb +0 -192
  91. data/spec/cases/linkedin_spec.rb +0 -37
  92. data/spec/cases/mash_spec.rb +0 -85
  93. data/spec/cases/oauth_spec.rb +0 -130
  94. data/spec/cases/search_spec.rb +0 -190
  95. data/spec/helper.rb +0 -30
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people/~?oauth2_access_token=dummy_access_token&secure-urls=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ User-Agent:
13
+ - Faraday v0.9.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Li-Request-Id:
26
+ - G7TE4K1NDU
27
+ X-Li-Uuid:
28
+ - Epx93KyWONVdLjm2HrZbzQ==
29
+ Vary:
30
+ - "*"
31
+ X-Li-Format:
32
+ - json
33
+ Content-Type:
34
+ - application/json;charset=UTF-8
35
+ Date:
36
+ - Tue, 29 Jul 2014 22:42:24 GMT
37
+ X-Li-Fabric:
38
+ - PROD-ELA4
39
+ Transfer-Encoding:
40
+ - chunked
41
+ Connection:
42
+ - keep-alive
43
+ X-Li-Pop:
44
+ - PROD-ELA4
45
+ Set-Cookie:
46
+ - lidc="b=LB66:g=95:u=37:i=1406657453:t=1406743853:s=2424976016"; Expires=Wed,
47
+ 30 Jul 2014 18:10:53 GMT; domain=.linkedin.com; Path=/
48
+ body:
49
+ encoding: UTF-8
50
+ string: |-
51
+ {
52
+ "firstName": "Evan",
53
+ "headline": "Architect of Experience & Builder of Bits at Proximate",
54
+ "lastName": "Morikawa",
55
+ "siteStandardProfileRequest": {"url": "https://www.linkedin.com/profile/view?id=44799966&authType=name&authToken=sDyI&trk=api*a135643*s144016*"}
56
+ }
57
+ http_version:
58
+ recorded_at: Tue, 29 Jul 2014 22:42:25 GMT
59
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,59 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people/~?oauth2_access_token=dummy_access_token&secure=true&secure-urls=true
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Li-Format:
11
+ - json
12
+ User-Agent:
13
+ - Faraday v0.9.0
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ X-Li-Request-Id:
26
+ - B9JJDIEWN5
27
+ X-Li-Uuid:
28
+ - pZggVf8v/iVLCmjwPNrpNg==
29
+ Vary:
30
+ - "*"
31
+ X-Li-Format:
32
+ - json
33
+ Content-Type:
34
+ - application/json;charset=UTF-8
35
+ Date:
36
+ - Tue, 29 Jul 2014 22:42:17 GMT
37
+ X-Li-Fabric:
38
+ - PROD-ELA4
39
+ Transfer-Encoding:
40
+ - chunked
41
+ Connection:
42
+ - keep-alive
43
+ X-Li-Pop:
44
+ - PROD-ELA4
45
+ Set-Cookie:
46
+ - lidc="b=LB66:g=95:u=37:i=1406657453:t=1406743853:s=2424976016"; Expires=Wed,
47
+ 30 Jul 2014 18:10:53 GMT; domain=.linkedin.com; Path=/
48
+ body:
49
+ encoding: UTF-8
50
+ string: |-
51
+ {
52
+ "firstName": "Evan",
53
+ "headline": "Architect of Experience & Builder of Bits at Proximate",
54
+ "lastName": "Morikawa",
55
+ "siteStandardProfileRequest": {"url": "https://www.linkedin.com/profile/view?id=44799966&authType=name&authToken=sDyI&trk=api*a135643*s144016*"}
56
+ }
57
+ http_version:
58
+ recorded_at: Tue, 29 Jul 2014 22:42:18 GMT
59
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,61 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people/~/connections:(educations,positions)
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 401
19
+ message: Unauthorized
20
+ headers:
21
+ Server:
22
+ - Apache-Coyote/1.1
23
+ X-Li-Request-Id:
24
+ - XEHXNPV09V
25
+ X-Li-Uuid:
26
+ - ytEZqdtO6/5bKFmVDMO9+Q==
27
+ Www-Authenticate:
28
+ - OAuth realm="https://api.linkedin.com"
29
+ Date:
30
+ - Tue, 29 Jul 2014 17:00:08 GMT
31
+ Vary:
32
+ - "*"
33
+ X-Li-Format:
34
+ - xml
35
+ Content-Type:
36
+ - text/xml;charset=UTF-8
37
+ X-Li-Fabric:
38
+ - PROD-ELA4
39
+ Transfer-Encoding:
40
+ - chunked
41
+ Connection:
42
+ - keep-alive
43
+ X-Li-Pop:
44
+ - PROD-ELA4
45
+ Set-Cookie:
46
+ - lidc="b=LB69:g=100:u=1:i=1406653209:t=1406739609:s=2538332704"; Expires=Wed,
47
+ 30 Jul 2014 17:00:09 GMT; domain=.linkedin.com; Path=/
48
+ body:
49
+ encoding: UTF-8
50
+ string: |
51
+ <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
52
+ <error>
53
+ <status>401</status>
54
+ <timestamp>1406653209026</timestamp>
55
+ <request-id>XEHXNPV09V</request-id>
56
+ <error-code>0</error-code>
57
+ <message>Unknown authentication scheme</message>
58
+ </error>
59
+ http_version:
60
+ recorded_at: Tue, 29 Jul 2014 17:00:08 GMT
61
+ recorded_with: VCR 2.9.2
@@ -0,0 +1,81 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://www.linkedin.com/uas/oauth2/accessToken
6
+ body:
7
+ encoding: UTF-8
8
+ string: client_id=dummy_client_id&client_secret=dummy_client_secret&code=dummy_code&grant_type=authorization_code&raise_errors=true&redirect_uri=http%3A%2F%2Flvh.me%3A5000
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.0
12
+ Content-Type:
13
+ - application/x-www-form-urlencoded
14
+ Accept-Encoding:
15
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
16
+ Accept:
17
+ - "*/*"
18
+ response:
19
+ status:
20
+ code: 503
21
+ message: Service Unavailable
22
+ headers:
23
+ Server:
24
+ - Apache-Coyote/1.1
25
+ P3p:
26
+ - CP="CAO CUR ADM DEV PSA PSD OUR"
27
+ Vary:
28
+ - Accept-Encoding
29
+ Content-Type:
30
+ - application/json;charset=UTF-8
31
+ Content-Language:
32
+ - en-US
33
+ Content-Length:
34
+ - '256'
35
+ Date:
36
+ - Mon, 28 Jul 2014 19:46:14 GMT
37
+ X-Fs-Uuid:
38
+ - f71d37c01f2a85131090dc44772b0000
39
+ X-Li-Uuid:
40
+ - 9x03wB8qhRMQkNxEdysAAA==
41
+ X-Li-Fabric:
42
+ - prod-lva1
43
+ Strict-Transport-Security:
44
+ - max-age=0
45
+ Set-Cookie:
46
+ - _lipt=deleteMe; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
47
+ - bcookie="v=2&0cb66f5b-7ce0-457a-8e0a-638e264732b7"; domain=.linkedin.com;
48
+ Path=/; Expires=Thu, 28-Jul-2016 07:23:46 GMT
49
+ - bscookie="v=1&20140728194614d20d182b-3a83-4376-8b74-b7f4885e8879AQFLtfYKPKiitdeuTzcDZKWht11C_LVI";
50
+ domain=.www.linkedin.com; Path=/; Secure; Expires=Thu, 28-Jul-2016 07:23:46
51
+ GMT; HttpOnly
52
+ - lang="v=2&lang=en-us"; Version=1; Domain=linkedin.com; Path=/
53
+ - leo_auth_token="GST:U3omQPgMS94VLL_AjnNBZYdBdQSyLKIIDAgCbqgVALFy5Ac2NEBMQw:1406576774:cf8c6b746690e7532c01fd3d44c6b73ec6c59f62";
54
+ Version=1; Max-Age=1799; Expires=Mon, 28-Jul-2014 20:16:13 GMT; Path=/
55
+ - lidc="b=VB49:g=88:u=1:i=1406576774:t=1406663174:s=711269819"; Expires=Tue,
56
+ 29 Jul 2014 19:46:14 GMT; domain=.linkedin.com; Path=/
57
+ - s_leo_auth_token="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970
58
+ 00:00:10 GMT; Path=/
59
+ - sl="delete me"; Version=1; Domain=.www.linkedin.com; Max-Age=0; Expires=Thu,
60
+ 01-Jan-1970 00:00:10 GMT; Path=/
61
+ - sl="delete me"; Version=1; Max-Age=0; Expires=Thu, 01-Jan-1970 00:00:10 GMT;
62
+ Path=/
63
+ - visit="v=1&G"; Version=1; Max-Age=63072000; Expires=Wed, 27-Jul-2016 19:46:14
64
+ GMT; Path=/
65
+ Pragma:
66
+ - no-cache
67
+ Expires:
68
+ - Thu, 01 Jan 1970 00:00:00 GMT
69
+ Cache-Control:
70
+ - no-cache, no-store
71
+ Connection:
72
+ - keep-alive
73
+ X-Li-Pop:
74
+ - prod-lva1
75
+ body:
76
+ encoding: UTF-8
77
+ string: '{"error":"temporarily_unavailable","error_description":"the authorization server is currently unable to handle the request : RestException{_response=RestResponse[headers={X-LinkedIn-Error-Response=true, Content-Length=6894, X-Restli-Protocol-Version=1.0.0, Server=Jetty(8.1.8.v20121106)},status=404,entityLength=6894]}
78
+ "}'
79
+ http_version:
80
+ recorded_at: Mon, 28 Jul 2014 19:46:14 GMT
81
+ recorded_with: VCR 2.9.2
metadata CHANGED
@@ -1,211 +1,233 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkedin-oauth2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Morikawa
8
- - Wynn Netherland
9
- - Josh Kalderimis
10
8
  autorequire:
11
9
  bindir: bin
12
10
  cert_chain: []
13
- date: 2013-07-30 00:00:00.000000000 Z
11
+ date: 2014-07-31 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
- name: hashie
14
+ name: oauth2
17
15
  requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '1.2'
22
- - - <
17
+ - - ~>
23
18
  - !ruby/object:Gem::Version
24
- version: '2.1'
19
+ version: '1.0'
25
20
  type: :runtime
26
21
  prerelease: false
27
22
  version_requirements: !ruby/object:Gem::Requirement
28
23
  requirements:
29
- - - ! '>='
30
- - !ruby/object:Gem::Version
31
- version: '1.2'
32
- - - <
24
+ - - ~>
33
25
  - !ruby/object:Gem::Version
34
- version: '2.1'
26
+ version: '1.0'
35
27
  - !ruby/object:Gem::Dependency
36
- name: multi_json
28
+ name: hashie
37
29
  requirement: !ruby/object:Gem::Requirement
38
30
  requirements:
39
31
  - - ~>
40
32
  - !ruby/object:Gem::Version
41
- version: '1.0'
33
+ version: '3.2'
42
34
  type: :runtime
43
35
  prerelease: false
44
36
  version_requirements: !ruby/object:Gem::Requirement
45
37
  requirements:
46
38
  - - ~>
47
39
  - !ruby/object:Gem::Version
48
- version: '1.0'
40
+ version: '3.2'
49
41
  - !ruby/object:Gem::Dependency
50
- name: oauth2
42
+ name: faraday
51
43
  requirement: !ruby/object:Gem::Requirement
52
44
  requirements:
53
45
  - - ~>
54
46
  - !ruby/object:Gem::Version
55
- version: '0.8'
47
+ version: '0.9'
56
48
  type: :runtime
57
49
  prerelease: false
58
50
  version_requirements: !ruby/object:Gem::Requirement
59
51
  requirements:
60
52
  - - ~>
61
53
  - !ruby/object:Gem::Version
62
- version: '0.8'
54
+ version: '0.9'
63
55
  - !ruby/object:Gem::Dependency
64
- name: json
56
+ name: rake
65
57
  requirement: !ruby/object:Gem::Requirement
66
58
  requirements:
67
- - - ~>
59
+ - - ! '>='
68
60
  - !ruby/object:Gem::Version
69
- version: '1.6'
61
+ version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
65
  requirements:
74
- - - ~>
66
+ - - ! '>='
75
67
  - !ruby/object:Gem::Version
76
- version: '1.6'
68
+ version: '0'
77
69
  - !ruby/object:Gem::Dependency
78
- name: rake
70
+ name: rspec
79
71
  requirement: !ruby/object:Gem::Requirement
80
72
  requirements:
81
73
  - - ~>
82
74
  - !ruby/object:Gem::Version
83
- version: '0.9'
75
+ version: '3.0'
84
76
  type: :development
85
77
  prerelease: false
86
78
  version_requirements: !ruby/object:Gem::Requirement
87
79
  requirements:
88
80
  - - ~>
89
81
  - !ruby/object:Gem::Version
90
- version: '0.9'
82
+ version: '3.0'
91
83
  - !ruby/object:Gem::Dependency
92
- name: rdoc
84
+ name: yard
93
85
  requirement: !ruby/object:Gem::Requirement
94
86
  requirements:
95
- - - ~>
87
+ - - ! '>='
96
88
  - !ruby/object:Gem::Version
97
- version: '3.8'
89
+ version: '0'
98
90
  type: :development
99
91
  prerelease: false
100
92
  version_requirements: !ruby/object:Gem::Requirement
101
93
  requirements:
102
- - - ~>
94
+ - - ! '>='
103
95
  - !ruby/object:Gem::Version
104
- version: '3.8'
96
+ version: '0'
105
97
  - !ruby/object:Gem::Dependency
106
- name: rspec
98
+ name: redcarpet
107
99
  requirement: !ruby/object:Gem::Requirement
108
100
  requirements:
109
- - - ~>
101
+ - - ! '>='
110
102
  - !ruby/object:Gem::Version
111
- version: '2.6'
103
+ version: '0'
112
104
  type: :development
113
105
  prerelease: false
114
106
  version_requirements: !ruby/object:Gem::Requirement
115
107
  requirements:
116
- - - ~>
108
+ - - ! '>='
117
109
  - !ruby/object:Gem::Version
118
- version: '2.6'
110
+ version: '0'
119
111
  - !ruby/object:Gem::Dependency
120
- name: simplecov
112
+ name: github-markdown
121
113
  requirement: !ruby/object:Gem::Requirement
122
114
  requirements:
123
- - - ~>
115
+ - - ! '>='
124
116
  - !ruby/object:Gem::Version
125
- version: '0.5'
117
+ version: '0'
126
118
  type: :development
127
119
  prerelease: false
128
120
  version_requirements: !ruby/object:Gem::Requirement
129
121
  requirements:
130
- - - ~>
122
+ - - ! '>='
131
123
  - !ruby/object:Gem::Version
132
- version: '0.5'
124
+ version: '0'
133
125
  - !ruby/object:Gem::Dependency
134
126
  name: vcr
135
127
  requirement: !ruby/object:Gem::Requirement
136
128
  requirements:
137
- - - ~>
129
+ - - ! '>='
138
130
  - !ruby/object:Gem::Version
139
- version: '1.10'
131
+ version: '0'
140
132
  type: :development
141
133
  prerelease: false
142
134
  version_requirements: !ruby/object:Gem::Requirement
143
135
  requirements:
144
- - - ~>
136
+ - - ! '>='
145
137
  - !ruby/object:Gem::Version
146
- version: '1.10'
138
+ version: '0'
147
139
  - !ruby/object:Gem::Dependency
148
140
  name: webmock
149
141
  requirement: !ruby/object:Gem::Requirement
150
142
  requirements:
151
- - - ~>
143
+ - - ! '>='
152
144
  - !ruby/object:Gem::Version
153
- version: '1.9'
145
+ version: '0'
154
146
  type: :development
155
147
  prerelease: false
156
148
  version_requirements: !ruby/object:Gem::Requirement
157
149
  requirements:
158
- - - ~>
150
+ - - ! '>='
159
151
  - !ruby/object:Gem::Version
160
- version: '1.9'
152
+ version: '0'
161
153
  description: Ruby wrapper for the LinkedIn OAuth 2.0 API
162
154
  email:
163
155
  - evan@evanmorikawa.com
164
- - wynn.netherland@gmail.com
165
- - josh.kalderimis@gmail.com
166
156
  executables: []
167
157
  extensions: []
168
158
  extra_rdoc_files: []
169
159
  files:
170
- - .autotest
171
- - .document
172
- - .gemtest
173
160
  - .gitignore
174
- - .rspec
175
- - .ruby-gemset
176
- - .ruby-version
177
161
  - .travis.yml
162
+ - .yardopts
163
+ - CHANGELOG.md
164
+ - CONTRIBUTING.md
178
165
  - Gemfile
179
166
  - LICENSE
180
- - README.markdown
167
+ - README.md
181
168
  - Rakefile
182
- - changelog.markdown
183
- - examples/authenticate.rb
184
- - examples/network.rb
185
- - examples/profile.rb
186
- - examples/sinatra.rb
187
- - examples/status.rb
169
+ - lib/linked_in/access_token.rb
188
170
  - lib/linked_in/api.rb
189
- - lib/linked_in/api/query_methods.rb
190
- - lib/linked_in/api/update_methods.rb
191
- - lib/linked_in/client.rb
171
+ - lib/linked_in/api_resource.rb
172
+ - lib/linked_in/communications.rb
173
+ - lib/linked_in/companies.rb
174
+ - lib/linked_in/configuration.rb
175
+ - lib/linked_in/connection.rb
192
176
  - lib/linked_in/errors.rb
193
- - lib/linked_in/helpers.rb
194
- - lib/linked_in/helpers/authorization.rb
195
- - lib/linked_in/helpers/request.rb
177
+ - lib/linked_in/groups.rb
178
+ - lib/linked_in/jobs.rb
196
179
  - lib/linked_in/mash.rb
180
+ - lib/linked_in/oauth2.rb
181
+ - lib/linked_in/people.rb
197
182
  - lib/linked_in/search.rb
183
+ - lib/linked_in/share_and_social_stream.rb
198
184
  - lib/linked_in/version.rb
199
185
  - lib/linkedin-oauth2.rb
200
186
  - linkedin-oauth2.gemspec
201
- - spec/cases/api_spec.rb
202
- - spec/cases/linkedin_spec.rb
203
- - spec/cases/mash_spec.rb
204
- - spec/cases/oauth_spec.rb
205
- - spec/cases/search_spec.rb
206
- - spec/helper.rb
187
+ - spec/linked_in/api/api_spec.rb
188
+ - spec/linked_in/api/communications_spec.rb
189
+ - spec/linked_in/api/companies_spec.rb
190
+ - spec/linked_in/api/groups_spec.rb
191
+ - spec/linked_in/api/jobs_spec.rb
192
+ - spec/linked_in/api/people_spec.rb
193
+ - spec/linked_in/api/search_spec.rb
194
+ - spec/linked_in/api/share_and_social_stream_spec.rb
195
+ - spec/linked_in/configuration_spec.rb
196
+ - spec/linked_in/connection_spec.rb
197
+ - spec/linked_in/module_loading_spec.rb
198
+ - spec/linked_in/oauth/access_token_spec.rb
199
+ - spec/linked_in/oauth/auth_code_spec.rb
200
+ - spec/linked_in/oauth/credentials_spec.rb
201
+ - spec/linked_in/oauth/get_access_token_spec.rb
202
+ - spec/spec_helper.rb
203
+ - spec/vcr_cassettes/access_token_success.yml
204
+ - spec/vcr_cassettes/bad_code.yml
205
+ - spec/vcr_cassettes/companies_data.yml
206
+ - spec/vcr_cassettes/invalid_access_token.yml
207
+ - spec/vcr_cassettes/not_found.yml
208
+ - spec/vcr_cassettes/people_picture_urls.yml
209
+ - spec/vcr_cassettes/people_profile_connections_fields.yml
210
+ - spec/vcr_cassettes/people_profile_connections_other.yml
211
+ - spec/vcr_cassettes/people_profile_connections_self.yml
212
+ - spec/vcr_cassettes/people_profile_fields_complex.yml
213
+ - spec/vcr_cassettes/people_profile_fields_simple.yml
214
+ - spec/vcr_cassettes/people_profile_lang_spanish.yml
215
+ - spec/vcr_cassettes/people_profile_multiple_fields.yml
216
+ - spec/vcr_cassettes/people_profile_multiple_uids.yml
217
+ - spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml
218
+ - spec/vcr_cassettes/people_profile_multiple_urls.yml
219
+ - spec/vcr_cassettes/people_profile_new_connections_fields.yml
220
+ - spec/vcr_cassettes/people_profile_new_connections_other.yml
221
+ - spec/vcr_cassettes/people_profile_new_connections_self.yml
222
+ - spec/vcr_cassettes/people_profile_other_uid.yml
223
+ - spec/vcr_cassettes/people_profile_other_url.yml
224
+ - spec/vcr_cassettes/people_profile_own.yml
225
+ - spec/vcr_cassettes/people_profile_own_secure.yml
226
+ - spec/vcr_cassettes/unauthorized.yml
227
+ - spec/vcr_cassettes/unavailable.yml
207
228
  homepage: http://github.com/emorikawa/linkedin-oauth2
208
- licenses: []
229
+ licenses:
230
+ - MIT
209
231
  metadata: {}
210
232
  post_install_message:
211
233
  rdoc_options: []
@@ -215,7 +237,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
237
  requirements:
216
238
  - - ! '>='
217
239
  - !ruby/object:Gem::Version
218
- version: '0'
240
+ version: 1.9.3
219
241
  required_rubygems_version: !ruby/object:Gem::Requirement
220
242
  requirements:
221
243
  - - ! '>='
@@ -223,14 +245,49 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
245
  version: '0'
224
246
  requirements: []
225
247
  rubyforge_project:
226
- rubygems_version: 2.0.6
248
+ rubygems_version: 2.2.2
227
249
  signing_key:
228
250
  specification_version: 4
229
251
  summary: Ruby wrapper for the LinkedIn OAuth 2.0 API
230
252
  test_files:
231
- - spec/cases/api_spec.rb
232
- - spec/cases/linkedin_spec.rb
233
- - spec/cases/mash_spec.rb
234
- - spec/cases/oauth_spec.rb
235
- - spec/cases/search_spec.rb
236
- - spec/helper.rb
253
+ - spec/linked_in/api/api_spec.rb
254
+ - spec/linked_in/api/communications_spec.rb
255
+ - spec/linked_in/api/companies_spec.rb
256
+ - spec/linked_in/api/groups_spec.rb
257
+ - spec/linked_in/api/jobs_spec.rb
258
+ - spec/linked_in/api/people_spec.rb
259
+ - spec/linked_in/api/search_spec.rb
260
+ - spec/linked_in/api/share_and_social_stream_spec.rb
261
+ - spec/linked_in/configuration_spec.rb
262
+ - spec/linked_in/connection_spec.rb
263
+ - spec/linked_in/module_loading_spec.rb
264
+ - spec/linked_in/oauth/access_token_spec.rb
265
+ - spec/linked_in/oauth/auth_code_spec.rb
266
+ - spec/linked_in/oauth/credentials_spec.rb
267
+ - spec/linked_in/oauth/get_access_token_spec.rb
268
+ - spec/vcr_cassettes/access_token_success.yml
269
+ - spec/vcr_cassettes/bad_code.yml
270
+ - spec/vcr_cassettes/companies_data.yml
271
+ - spec/vcr_cassettes/invalid_access_token.yml
272
+ - spec/vcr_cassettes/not_found.yml
273
+ - spec/vcr_cassettes/people_picture_urls.yml
274
+ - spec/vcr_cassettes/people_profile_connections_fields.yml
275
+ - spec/vcr_cassettes/people_profile_connections_other.yml
276
+ - spec/vcr_cassettes/people_profile_connections_self.yml
277
+ - spec/vcr_cassettes/people_profile_fields_complex.yml
278
+ - spec/vcr_cassettes/people_profile_fields_simple.yml
279
+ - spec/vcr_cassettes/people_profile_lang_spanish.yml
280
+ - spec/vcr_cassettes/people_profile_multiple_fields.yml
281
+ - spec/vcr_cassettes/people_profile_multiple_uids.yml
282
+ - spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml
283
+ - spec/vcr_cassettes/people_profile_multiple_urls.yml
284
+ - spec/vcr_cassettes/people_profile_new_connections_fields.yml
285
+ - spec/vcr_cassettes/people_profile_new_connections_other.yml
286
+ - spec/vcr_cassettes/people_profile_new_connections_self.yml
287
+ - spec/vcr_cassettes/people_profile_other_uid.yml
288
+ - spec/vcr_cassettes/people_profile_other_url.yml
289
+ - spec/vcr_cassettes/people_profile_own.yml
290
+ - spec/vcr_cassettes/people_profile_own_secure.yml
291
+ - spec/vcr_cassettes/unauthorized.yml
292
+ - spec/vcr_cassettes/unavailable.yml
293
+ has_rdoc: