linkedin2 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,201 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.linkedin.com/v1/people/~?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8&format=json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ response:
13
+ status:
14
+ code: 200
15
+ message:
16
+ headers:
17
+ server:
18
+ - Apache-Coyote/1.1
19
+ x-li-request-id:
20
+ - 03M2HIZ5ZZ
21
+ vary:
22
+ - '*'
23
+ x-li-format:
24
+ - json
25
+ content-type:
26
+ - application/json;charset=UTF-8
27
+ date:
28
+ - Sun, 13 Oct 2013 22:48:35 GMT
29
+ x-li-fabric:
30
+ - PROD-ELA4
31
+ access-control-allow-origin:
32
+ - https://www.linkedin.com
33
+ age:
34
+ - '0'
35
+ transfer-encoding:
36
+ - chunked
37
+ connection:
38
+ - keep-alive
39
+ x-li-pop:
40
+ - PROD-ELA4
41
+ x-li-uuid:
42
+ - mBWfxe/MLBPwzEjFASsAAA==
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "firstName": "Josh",
48
+ "headline": "Test Engineer at LinkedIn2 Gem",
49
+ "lastName": "Testjordan",
50
+ "siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=292221312&authType=name&authToken=lTbb&trk=api*a3296321*s3370311*"}
51
+ }
52
+ http_version:
53
+ recorded_at: Sun, 13 Oct 2013 22:48:40 GMT
54
+ - request:
55
+ method: get
56
+ uri: https://api.linkedin.com/v1/people/id=Fy5e5a4mqr?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8&format=json
57
+ body:
58
+ encoding: US-ASCII
59
+ string: ''
60
+ headers:
61
+ User-Agent:
62
+ - Faraday v0.8.8
63
+ response:
64
+ status:
65
+ code: 200
66
+ message:
67
+ headers:
68
+ server:
69
+ - Apache-Coyote/1.1
70
+ x-li-request-id:
71
+ - K70EU26VBI
72
+ vary:
73
+ - '*'
74
+ x-li-format:
75
+ - json
76
+ content-type:
77
+ - application/json;charset=UTF-8
78
+ date:
79
+ - Sun, 13 Oct 2013 22:48:36 GMT
80
+ x-li-fabric:
81
+ - PROD-ELA4
82
+ access-control-allow-origin:
83
+ - https://www.linkedin.com
84
+ age:
85
+ - '0'
86
+ transfer-encoding:
87
+ - chunked
88
+ connection:
89
+ - keep-alive
90
+ x-li-pop:
91
+ - PROD-ELA4
92
+ x-li-uuid:
93
+ - sLbq6O/MLBMQaCG8uSoAAA==
94
+ body:
95
+ encoding: UTF-8
96
+ string: |-
97
+ {
98
+ "firstName": "Sir Richard",
99
+ "headline": "Chairman,Virgin Group.",
100
+ "lastName": "B.",
101
+ "siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=293623781&authType=name&authToken=Y22Y&trk=api*a3296321*s3370311*"}
102
+ }
103
+ http_version:
104
+ recorded_at: Sun, 13 Oct 2013 22:48:41 GMT
105
+ - request:
106
+ method: get
107
+ uri: https://api.linkedin.com/v1/people/~/connections?oauth2_access_token=AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8&format=json
108
+ body:
109
+ encoding: US-ASCII
110
+ string: ''
111
+ headers:
112
+ User-Agent:
113
+ - Faraday v0.8.8
114
+ response:
115
+ status:
116
+ code: 200
117
+ message:
118
+ headers:
119
+ server:
120
+ - Apache-Coyote/1.1
121
+ x-li-request-id:
122
+ - DKYIS1K51I
123
+ vary:
124
+ - '*'
125
+ x-li-format:
126
+ - json
127
+ content-type:
128
+ - application/json;charset=UTF-8
129
+ date:
130
+ - Sun, 13 Oct 2013 22:50:18 GMT
131
+ x-li-fabric:
132
+ - PROD-ELA4
133
+ access-control-allow-origin:
134
+ - https://www.linkedin.com
135
+ age:
136
+ - '2'
137
+ transfer-encoding:
138
+ - chunked
139
+ connection:
140
+ - keep-alive
141
+ x-li-pop:
142
+ - PROD-ELA4
143
+ x-li-uuid:
144
+ - yIk8xgfNLBMQblmOAisAAA==
145
+ body:
146
+ encoding: UTF-8
147
+ string: |-
148
+ {
149
+ "_total": 2,
150
+ "values": [
151
+ {
152
+ "apiStandardProfileRequest": {
153
+ "headers": {
154
+ "_total": 1,
155
+ "values": [{
156
+ "name": "x-li-auth-token",
157
+ "value": "name:24s3"
158
+ }]
159
+ },
160
+ "url": "http://api.linkedin.com/v1/people/4eTIydMs1T"
161
+ },
162
+ "firstName": "Bob",
163
+ "headline": "Guy at EverTrue",
164
+ "id": "4eTIydMs1T",
165
+ "industry": "Leisure, Travel & Tourism",
166
+ "lastName": "Breznak",
167
+ "location": {
168
+ "country": {"code": "us"},
169
+ "name": "Greater Boston Area"
170
+ },
171
+ "pictureUrl": "http://m.c.lnkd.licdn.com/mpr/mprx/0_zR-8K5tqrNEyhBCYz0APKFGVrqDrGlCYcx60KFPQftJhjzvOMjGuObFeOJSfTn_tq4rYx8SQ5fvK",
172
+ "siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=28903483&authType=name&authToken=24s3&trk=api*a3296321*s3370311*"}
173
+ },
174
+ {
175
+ "apiStandardProfileRequest": {
176
+ "headers": {
177
+ "_total": 1,
178
+ "values": [{
179
+ "name": "x-li-auth-token",
180
+ "value": "name:Dack"
181
+ }]
182
+ },
183
+ "url": "http://api.linkedin.com/v1/people/mbAZ4HR8RV"
184
+ },
185
+ "firstName": "Josh",
186
+ "headline": "No-bullshit Software Engineer",
187
+ "id": "mbAZ4HR8RV",
188
+ "industry": "Computer Software",
189
+ "lastName": "Jordan",
190
+ "location": {
191
+ "country": {"code": "us"},
192
+ "name": "Greater Boston Area"
193
+ },
194
+ "pictureUrl": "http://m.c.lnkd.licdn.com/mpr/mprx/0_tK6jMqPfpQ370lofKczaMnrmy_kxjqUfrB-CMBig_LK7GKu7On9AccBPtmX8Y1siPPXinrgl7GAr",
195
+ "siteStandardProfileRequest": {"url": "http://www.linkedin.com/profile/view?id=18939563&authType=name&authToken=Dack&trk=api*a3296321*s3370311*"}
196
+ }
197
+ ]
198
+ }
199
+ http_version:
200
+ recorded_at: Sun, 13 Oct 2013 22:50:23 GMT
201
+ recorded_with: VCR 2.5.0
@@ -1,17 +1,27 @@
1
- require 'linkedin2'
2
-
3
1
  require 'rspec'
4
2
  require 'vcr'
5
3
  require 'pry'
6
- require 'byebug'
4
+ require 'simplecov'
5
+
6
+ SimpleCov.start do
7
+ add_group 'API', 'lib/linkedin/api'
8
+ add_filter 'spec'
9
+ end
10
+
11
+ require 'linkedin2'
7
12
 
8
13
  VCR.configure do |c|
9
14
  c.cassette_library_dir = 'spec/fixtures/requests'
10
15
  c.hook_into :faraday
11
- c.default_cassette_options = { :record => :none }
16
+ c.default_cassette_options = { record: :new_episodes }
12
17
  c.configure_rspec_metadata!
13
18
  end
14
19
 
15
20
  RSpec.configure do |c|
16
21
  c.treat_symbols_as_metadata_keys_with_true_values = true
17
- end
22
+ end
23
+
24
+ LinkedIn.load('spec/test_app.yml')
25
+ LinkedIn::Client.configure do |config|
26
+ config.access_token = 'AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8'
27
+ end
@@ -0,0 +1,3 @@
1
+ key: f7cq90292zdf
2
+ secret: h97K0YuF0KCnx4kW
3
+ redirect_uri: http://localhost.com
metadata CHANGED
@@ -1,155 +1,169 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linkedin2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bob Breznak
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-10 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0.9'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.9'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: hashie
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: 2.0.5
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.0.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '4.0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '4.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: faraday_middleware
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0.9'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0.9'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1.3'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.3'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rake
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
- name: byebug
98
+ name: pry
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
- name: pry
112
+ name: simplecov
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: rspec
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ~>
129
+ - - "~>"
130
130
  - !ruby/object:Gem::Version
131
131
  version: '2.14'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ~>
136
+ - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: '2.14'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: vcr
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ~>
143
+ - - "~>"
144
144
  - !ruby/object:Gem::Version
145
145
  version: '2.5'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ~>
150
+ - - "~>"
151
151
  - !ruby/object:Gem::Version
152
152
  version: '2.5'
153
+ - !ruby/object:Gem::Dependency
154
+ name: yard
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  description: Ruby wrapper for the LinkedIn API
154
168
  email:
155
169
  - bob@evertrue.com
@@ -157,7 +171,9 @@ executables: []
157
171
  extensions: []
158
172
  extra_rdoc_files: []
159
173
  files:
160
- - .gitignore
174
+ - ".gitignore"
175
+ - ".rspec"
176
+ - ".travis.yml"
161
177
  - Gemfile
162
178
  - LICENSE.txt
163
179
  - README.md
@@ -169,6 +185,7 @@ files:
169
185
  - lib/linkedin/api/groups.rb
170
186
  - lib/linkedin/api/industries.rb
171
187
  - lib/linkedin/api/jobs.rb
188
+ - lib/linkedin/api/network_updates.rb
172
189
  - lib/linkedin/api/permissions.rb
173
190
  - lib/linkedin/api/profiles.rb
174
191
  - lib/linkedin/base.rb
@@ -188,25 +205,29 @@ files:
188
205
  - spec/api/companies_spec.rb
189
206
  - spec/api/groups_spec.rb
190
207
  - spec/api/jobs_spec.rb
208
+ - spec/api/network_updates_spec.rb
191
209
  - spec/api/profiles_spec.rb
192
210
  - spec/faraday_middleware/linkedin_error_response_spec.rb
193
211
  - spec/fixtures/requests/access_token.yml
212
+ - spec/fixtures/requests/companies.yml
194
213
  - spec/fixtures/requests/company-search/by_keywords_options_with_fields.yml
195
214
  - spec/fixtures/requests/company-search/by_keywords_string_parameter.yml
196
215
  - spec/fixtures/requests/company-search/by_single_keywords_option.yml
197
216
  - spec/fixtures/requests/company-search/by_single_keywords_option_with_facets_to_return.yml
198
217
  - spec/fixtures/requests/company-search/by_single_keywords_option_with_pagination.yml
199
- - spec/fixtures/requests/company.yml
200
218
  - spec/fixtures/requests/invalid.yml
219
+ - spec/fixtures/requests/network_updates.yml
201
220
  - spec/fixtures/requests/people-search/by_company_name_option.yml
202
221
  - spec/fixtures/requests/people-search/by_first_name_and_last_name_options.yml
203
222
  - spec/fixtures/requests/people-search/by_first_name_and_last_name_options_with_fields.yml
204
223
  - spec/fixtures/requests/people-search/by_keywords_string_parameter.yml
205
224
  - spec/fixtures/requests/people-search/by_single_keywords_option.yml
206
225
  - spec/fixtures/requests/people-search/by_single_keywords_option_with_pagination.yml
226
+ - spec/fixtures/requests/profiles.yml
207
227
  - spec/fixtures/requests/request_token/request_token.yml
208
228
  - spec/fixtures/requests/request_token/with_callback.yml
209
229
  - spec/spec_helper.rb
230
+ - spec/test_app.yml
210
231
  homepage: https://github.com/bobbrez/linkedin2
211
232
  licenses:
212
233
  - MIT
@@ -217,17 +238,17 @@ require_paths:
217
238
  - lib
218
239
  required_ruby_version: !ruby/object:Gem::Requirement
219
240
  requirements:
220
- - - '>='
241
+ - - ">="
221
242
  - !ruby/object:Gem::Version
222
243
  version: '0'
223
244
  required_rubygems_version: !ruby/object:Gem::Requirement
224
245
  requirements:
225
- - - '>='
246
+ - - ">="
226
247
  - !ruby/object:Gem::Version
227
248
  version: '0'
228
249
  requirements: []
229
250
  rubyforge_project:
230
- rubygems_version: 2.0.0
251
+ rubygems_version: 2.2.0
231
252
  signing_key:
232
253
  specification_version: 4
233
254
  summary: Ruby wrapper for the LinkedIn API
@@ -235,23 +256,27 @@ test_files:
235
256
  - spec/api/companies_spec.rb
236
257
  - spec/api/groups_spec.rb
237
258
  - spec/api/jobs_spec.rb
259
+ - spec/api/network_updates_spec.rb
238
260
  - spec/api/profiles_spec.rb
239
261
  - spec/faraday_middleware/linkedin_error_response_spec.rb
240
262
  - spec/fixtures/requests/access_token.yml
263
+ - spec/fixtures/requests/companies.yml
241
264
  - spec/fixtures/requests/company-search/by_keywords_options_with_fields.yml
242
265
  - spec/fixtures/requests/company-search/by_keywords_string_parameter.yml
243
266
  - spec/fixtures/requests/company-search/by_single_keywords_option.yml
244
267
  - spec/fixtures/requests/company-search/by_single_keywords_option_with_facets_to_return.yml
245
268
  - spec/fixtures/requests/company-search/by_single_keywords_option_with_pagination.yml
246
- - spec/fixtures/requests/company.yml
247
269
  - spec/fixtures/requests/invalid.yml
270
+ - spec/fixtures/requests/network_updates.yml
248
271
  - spec/fixtures/requests/people-search/by_company_name_option.yml
249
272
  - spec/fixtures/requests/people-search/by_first_name_and_last_name_options.yml
250
273
  - spec/fixtures/requests/people-search/by_first_name_and_last_name_options_with_fields.yml
251
274
  - spec/fixtures/requests/people-search/by_keywords_string_parameter.yml
252
275
  - spec/fixtures/requests/people-search/by_single_keywords_option.yml
253
276
  - spec/fixtures/requests/people-search/by_single_keywords_option_with_pagination.yml
277
+ - spec/fixtures/requests/profiles.yml
254
278
  - spec/fixtures/requests/request_token/request_token.yml
255
279
  - spec/fixtures/requests/request_token/with_callback.yml
256
280
  - spec/spec_helper.rb
281
+ - spec/test_app.yml
257
282
  has_rdoc: