linkedin-v2 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +10 -0
  3. data/CONTRIBUTING.md +1 -0
  4. data/Gemfile +8 -0
  5. data/LICENSE +22 -0
  6. data/README.md +224 -0
  7. data/Rakefile +19 -0
  8. data/lib/linked_in/access_token.rb +24 -0
  9. data/lib/linked_in/api.rb +108 -0
  10. data/lib/linked_in/api_resource.rb +180 -0
  11. data/lib/linked_in/communications.rb +40 -0
  12. data/lib/linked_in/configuration.rb +41 -0
  13. data/lib/linked_in/connection.rb +35 -0
  14. data/lib/linked_in/errors.rb +73 -0
  15. data/lib/linked_in/jobs.rb +11 -0
  16. data/lib/linked_in/mash.rb +68 -0
  17. data/lib/linked_in/media.rb +13 -0
  18. data/lib/linked_in/oauth2.rb +223 -0
  19. data/lib/linked_in/organizations.rb +217 -0
  20. data/lib/linked_in/people.rb +151 -0
  21. data/lib/linked_in/raise_error.rb +28 -0
  22. data/lib/linked_in/search.rb +70 -0
  23. data/lib/linked_in/share_and_social_stream.rb +143 -0
  24. data/lib/linked_in/version.rb +3 -0
  25. data/lib/linkedin-v2.rb +52 -0
  26. data/linkedin-v2.gemspec +39 -0
  27. data/pkg/linkedin-oauth2-2.0.0.gem +0 -0
  28. data/spec/linked_in/api/api_spec.rb +41 -0
  29. data/spec/linked_in/api/communications_spec.rb +13 -0
  30. data/spec/linked_in/api/jobs_spec.rb +33 -0
  31. data/spec/linked_in/api/organizations_spec.rb +54 -0
  32. data/spec/linked_in/api/people_spec.rb +191 -0
  33. data/spec/linked_in/api/search_spec.rb +71 -0
  34. data/spec/linked_in/api/share_and_social_stream_spec.rb +87 -0
  35. data/spec/linked_in/configuration_spec.rb +46 -0
  36. data/spec/linked_in/connection_spec.rb +10 -0
  37. data/spec/linked_in/module_loading_spec.rb +23 -0
  38. data/spec/linked_in/oauth/access_token_spec.rb +27 -0
  39. data/spec/linked_in/oauth/auth_code_spec.rb +86 -0
  40. data/spec/linked_in/oauth/credentials_spec.rb +96 -0
  41. data/spec/linked_in/oauth/get_access_token_spec.rb +108 -0
  42. data/spec/spec_helper.rb +16 -0
  43. data/spec/vcr_cassettes/access_token_success.yml +99 -0
  44. data/spec/vcr_cassettes/bad_code.yml +99 -0
  45. data/spec/vcr_cassettes/organization_data.yml +51 -0
  46. data/spec/vcr_cassettes/people_picture_urls.yml +52 -0
  47. data/spec/vcr_cassettes/people_profile_connections_fields.yml +52 -0
  48. data/spec/vcr_cassettes/people_profile_connections_other.yml +52 -0
  49. data/spec/vcr_cassettes/people_profile_connections_self.yml +52 -0
  50. data/spec/vcr_cassettes/people_profile_fields_complex.yml +52 -0
  51. data/spec/vcr_cassettes/people_profile_fields_simple.yml +52 -0
  52. data/spec/vcr_cassettes/people_profile_lang_spanish.yml +53 -0
  53. data/spec/vcr_cassettes/people_profile_multiple_fields.yml +52 -0
  54. data/spec/vcr_cassettes/people_profile_multiple_uids.yml +52 -0
  55. data/spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml +52 -0
  56. data/spec/vcr_cassettes/people_profile_multiple_urls.yml +52 -0
  57. data/spec/vcr_cassettes/people_profile_new_connections_fields.yml +52 -0
  58. data/spec/vcr_cassettes/people_profile_new_connections_other.yml +52 -0
  59. data/spec/vcr_cassettes/people_profile_new_connections_self.yml +52 -0
  60. data/spec/vcr_cassettes/people_profile_other_uid.yml +57 -0
  61. data/spec/vcr_cassettes/people_profile_other_url.yml +54 -0
  62. data/spec/vcr_cassettes/people_profile_own.yml +57 -0
  63. data/spec/vcr_cassettes/people_profile_own_secure.yml +53 -0
  64. data/spec/vcr_cassettes/people_profile_skills.yml +52 -0
  65. data/spec/vcr_cassettes/unavailable.yml +99 -0
  66. metadata +285 -0
metadata ADDED
@@ -0,0 +1,285 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: linkedin-v2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.3
5
+ platform: ruby
6
+ authors:
7
+ - Mike Desjardins
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: oauth2
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: hashie
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.2'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.2'
41
+ - !ruby/object:Gem::Dependency
42
+ name: faraday
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.11'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.11'
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
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: yard
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: redcarpet
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: github-markdown
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: vcr
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: webmock
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ description: Ruby wrapper for the LinkedIn v2 API
154
+ email:
155
+ - mike.desjardins@cereslogic.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - CHANGELOG.md
161
+ - CONTRIBUTING.md
162
+ - Gemfile
163
+ - LICENSE
164
+ - README.md
165
+ - Rakefile
166
+ - lib/linked_in/access_token.rb
167
+ - lib/linked_in/api.rb
168
+ - lib/linked_in/api_resource.rb
169
+ - lib/linked_in/communications.rb
170
+ - lib/linked_in/configuration.rb
171
+ - lib/linked_in/connection.rb
172
+ - lib/linked_in/errors.rb
173
+ - lib/linked_in/jobs.rb
174
+ - lib/linked_in/mash.rb
175
+ - lib/linked_in/media.rb
176
+ - lib/linked_in/oauth2.rb
177
+ - lib/linked_in/organizations.rb
178
+ - lib/linked_in/people.rb
179
+ - lib/linked_in/raise_error.rb
180
+ - lib/linked_in/search.rb
181
+ - lib/linked_in/share_and_social_stream.rb
182
+ - lib/linked_in/version.rb
183
+ - lib/linkedin-v2.rb
184
+ - linkedin-v2.gemspec
185
+ - pkg/linkedin-oauth2-2.0.0.gem
186
+ - spec/linked_in/api/api_spec.rb
187
+ - spec/linked_in/api/communications_spec.rb
188
+ - spec/linked_in/api/jobs_spec.rb
189
+ - spec/linked_in/api/organizations_spec.rb
190
+ - spec/linked_in/api/people_spec.rb
191
+ - spec/linked_in/api/search_spec.rb
192
+ - spec/linked_in/api/share_and_social_stream_spec.rb
193
+ - spec/linked_in/configuration_spec.rb
194
+ - spec/linked_in/connection_spec.rb
195
+ - spec/linked_in/module_loading_spec.rb
196
+ - spec/linked_in/oauth/access_token_spec.rb
197
+ - spec/linked_in/oauth/auth_code_spec.rb
198
+ - spec/linked_in/oauth/credentials_spec.rb
199
+ - spec/linked_in/oauth/get_access_token_spec.rb
200
+ - spec/spec_helper.rb
201
+ - spec/vcr_cassettes/access_token_success.yml
202
+ - spec/vcr_cassettes/bad_code.yml
203
+ - spec/vcr_cassettes/organization_data.yml
204
+ - spec/vcr_cassettes/people_picture_urls.yml
205
+ - spec/vcr_cassettes/people_profile_connections_fields.yml
206
+ - spec/vcr_cassettes/people_profile_connections_other.yml
207
+ - spec/vcr_cassettes/people_profile_connections_self.yml
208
+ - spec/vcr_cassettes/people_profile_fields_complex.yml
209
+ - spec/vcr_cassettes/people_profile_fields_simple.yml
210
+ - spec/vcr_cassettes/people_profile_lang_spanish.yml
211
+ - spec/vcr_cassettes/people_profile_multiple_fields.yml
212
+ - spec/vcr_cassettes/people_profile_multiple_uids.yml
213
+ - spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml
214
+ - spec/vcr_cassettes/people_profile_multiple_urls.yml
215
+ - spec/vcr_cassettes/people_profile_new_connections_fields.yml
216
+ - spec/vcr_cassettes/people_profile_new_connections_other.yml
217
+ - spec/vcr_cassettes/people_profile_new_connections_self.yml
218
+ - spec/vcr_cassettes/people_profile_other_uid.yml
219
+ - spec/vcr_cassettes/people_profile_other_url.yml
220
+ - spec/vcr_cassettes/people_profile_own.yml
221
+ - spec/vcr_cassettes/people_profile_own_secure.yml
222
+ - spec/vcr_cassettes/people_profile_skills.yml
223
+ - spec/vcr_cassettes/unavailable.yml
224
+ homepage: http://github.com/mdesjardins/linkedin-v2
225
+ licenses:
226
+ - MIT
227
+ metadata: {}
228
+ post_install_message:
229
+ rdoc_options: []
230
+ require_paths:
231
+ - lib
232
+ required_ruby_version: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: 1.9.3
237
+ required_rubygems_version: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - ">="
240
+ - !ruby/object:Gem::Version
241
+ version: '0'
242
+ requirements: []
243
+ rubyforge_project:
244
+ rubygems_version: 2.6.10
245
+ signing_key:
246
+ specification_version: 4
247
+ summary: Ruby wrapper for the LinkedIn v2 API
248
+ test_files:
249
+ - spec/linked_in/api/api_spec.rb
250
+ - spec/linked_in/api/communications_spec.rb
251
+ - spec/linked_in/api/jobs_spec.rb
252
+ - spec/linked_in/api/organizations_spec.rb
253
+ - spec/linked_in/api/people_spec.rb
254
+ - spec/linked_in/api/search_spec.rb
255
+ - spec/linked_in/api/share_and_social_stream_spec.rb
256
+ - spec/linked_in/configuration_spec.rb
257
+ - spec/linked_in/connection_spec.rb
258
+ - spec/linked_in/module_loading_spec.rb
259
+ - spec/linked_in/oauth/access_token_spec.rb
260
+ - spec/linked_in/oauth/auth_code_spec.rb
261
+ - spec/linked_in/oauth/credentials_spec.rb
262
+ - spec/linked_in/oauth/get_access_token_spec.rb
263
+ - spec/vcr_cassettes/access_token_success.yml
264
+ - spec/vcr_cassettes/bad_code.yml
265
+ - spec/vcr_cassettes/organization_data.yml
266
+ - spec/vcr_cassettes/people_picture_urls.yml
267
+ - spec/vcr_cassettes/people_profile_connections_fields.yml
268
+ - spec/vcr_cassettes/people_profile_connections_other.yml
269
+ - spec/vcr_cassettes/people_profile_connections_self.yml
270
+ - spec/vcr_cassettes/people_profile_fields_complex.yml
271
+ - spec/vcr_cassettes/people_profile_fields_simple.yml
272
+ - spec/vcr_cassettes/people_profile_lang_spanish.yml
273
+ - spec/vcr_cassettes/people_profile_multiple_fields.yml
274
+ - spec/vcr_cassettes/people_profile_multiple_uids.yml
275
+ - spec/vcr_cassettes/people_profile_multiple_uids_and_urls.yml
276
+ - spec/vcr_cassettes/people_profile_multiple_urls.yml
277
+ - spec/vcr_cassettes/people_profile_new_connections_fields.yml
278
+ - spec/vcr_cassettes/people_profile_new_connections_other.yml
279
+ - spec/vcr_cassettes/people_profile_new_connections_self.yml
280
+ - spec/vcr_cassettes/people_profile_other_uid.yml
281
+ - spec/vcr_cassettes/people_profile_other_url.yml
282
+ - spec/vcr_cassettes/people_profile_own.yml
283
+ - spec/vcr_cassettes/people_profile_own_secure.yml
284
+ - spec/vcr_cassettes/people_profile_skills.yml
285
+ - spec/vcr_cassettes/unavailable.yml