linkedin2 0.0.16 → 0.0.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +2 -0
- data/.gitignore +2 -0
- data/.rspec +2 -2
- data/.travis.yml +1 -1
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/linkedin/api.rb +16 -0
- data/lib/linkedin/api/authentication.rb +5 -7
- data/lib/linkedin/api/companies.rb +16 -10
- data/lib/linkedin/api/invitation.rb +39 -0
- data/lib/linkedin/api/messaging.rb +24 -0
- data/lib/linkedin/api/network_updates.rb +5 -9
- data/lib/linkedin/api/people.rb +18 -0
- data/lib/linkedin/client.rb +34 -72
- data/lib/linkedin/configuration.rb +26 -11
- data/lib/linkedin/credentials.rb +27 -0
- data/lib/linkedin/errors.rb +45 -0
- data/lib/linkedin/faraday_middleware.rb +6 -4
- data/lib/linkedin/faraday_middleware/credentials_request.rb +31 -0
- data/lib/linkedin/faraday_middleware/{linkedin_error_response.rb → error_response.rb} +2 -10
- data/lib/linkedin/faraday_middleware/format_request.rb +17 -0
- data/lib/linkedin/faraday_middleware/user_agent_request.rb +10 -0
- data/lib/linkedin/fields.rb +58 -0
- data/lib/linkedin/industries.rb +199 -0
- data/lib/linkedin/response.rb +19 -0
- data/lib/linkedin/version.rb +1 -1
- data/lib/linkedin2.rb +11 -19
- data/linkedin.gemspec +16 -7
- data/spec/api/companies_spec.rb +8 -9
- data/spec/api/groups_spec.rb +3 -4
- data/spec/api/jobs_spec.rb +2 -3
- data/spec/api/network_updates_spec.rb +9 -15
- data/spec/api/{profiles_spec.rb → people_spec.rb} +11 -13
- data/spec/faraday_middleware/{linkedin_error_response_spec.rb → error_response_spec.rb} +8 -21
- data/spec/fixtures/requests/companies.yml +25 -15
- data/spec/fixtures/requests/invalid.yml +7 -7
- data/spec/fixtures/requests/network_updates.yml +12 -12
- data/spec/fixtures/requests/people.yml +380 -0
- data/spec/spec_helper.rb +18 -19
- data/spec/support/coverage.rb +14 -0
- data/spec/support/vcr.rb +9 -0
- data/spec/test_app.yml +3 -2
- metadata +119 -38
- data/lib/linkedin/api/industries.rb +0 -171
- data/lib/linkedin/api/permissions.rb +0 -42
- data/lib/linkedin/api/profiles.rb +0 -71
- data/lib/linkedin/error.rb +0 -29
- data/lib/linkedin/faraday_middleware/linkedin_format_request.rb +0 -26
- data/lib/linkedin/industry.rb +0 -33
- data/spec/fixtures/requests/profiles.yml +0 -201
data/spec/spec_helper.rb
CHANGED
@@ -1,27 +1,26 @@
|
|
1
|
+
$:.unshift File.expand_path('..', __FILE__)
|
2
|
+
$:.unshift File.expand_path('../../lib', __FILE__)
|
3
|
+
|
1
4
|
require 'rspec'
|
2
|
-
require '
|
5
|
+
require 'rspec/collection_matchers'
|
6
|
+
|
7
|
+
require 'dotenv'
|
8
|
+
Dotenv.load
|
9
|
+
|
3
10
|
require 'pry'
|
4
|
-
require '
|
11
|
+
require 'pry-byebug'
|
12
|
+
require 'json'
|
5
13
|
|
6
|
-
|
7
|
-
add_group 'API', 'lib/linkedin/api'
|
8
|
-
add_filter 'spec'
|
9
|
-
end
|
14
|
+
Dir[File.join './spec/support/**/*.rb'].each { |f| require f }
|
10
15
|
|
11
|
-
require 'linkedin2'
|
16
|
+
require File.expand_path('../../lib/linkedin2', __FILE__)
|
12
17
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
c.default_cassette_options = { record: :new_episodes }
|
17
|
-
c.configure_rspec_metadata!
|
18
|
-
end
|
18
|
+
RSpec.configure do |config|
|
19
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
20
|
+
config.profile_examples = 10
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
+
Kernel.srand config.seed
|
23
|
+
config.order = :random
|
22
24
|
end
|
23
25
|
|
24
|
-
LinkedIn::Client.load
|
25
|
-
LinkedIn::Client.configure do |config|
|
26
|
-
config.access_token = 'AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8'
|
27
|
-
end
|
26
|
+
LinkedIn::Client.load 'spec/test_app.yml'
|
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'simplecov'
|
2
|
+
require 'coveralls'
|
3
|
+
|
4
|
+
Coveralls.wear!
|
5
|
+
|
6
|
+
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
7
|
+
SimpleCov::Formatter::HTMLFormatter,
|
8
|
+
Coveralls::SimpleCov::Formatter
|
9
|
+
]
|
10
|
+
|
11
|
+
SimpleCov.start do
|
12
|
+
add_group 'API', 'lib/linkedin/api'
|
13
|
+
add_filter 'spec'
|
14
|
+
end
|
data/spec/support/vcr.rb
ADDED
data/spec/test_app.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
app_key: 77wcgs6mqz1h5b
|
2
|
+
app_secret: 49k6BbdctVlZJC09
|
3
|
+
access_token: AQUJwEF40pJUbVxsW_mujQ3QCiXvlTnMFk55SlfVPYRcAPdsn1oE1Hm8Ldlc61o57k96i04ufG81KFdPJIOSJswXsGyZ0tk9IMZea8sfNXMGMnZgikQJUQPkmRVYVw9BP1qH9tp7hJF32DQtzkBB_NE8xPASPVgXVWbbntChGyYqqDvF1p8
|
3
4
|
redirect_uri: http://localhost.com
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkedin2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Breznak
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|
@@ -17,28 +17,28 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '0
|
20
|
+
version: '1.0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '0
|
27
|
+
version: '1.0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: hashie
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- - "
|
32
|
+
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version:
|
34
|
+
version: 3.3.1
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
41
|
+
version: 3.3.1
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: activesupport
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
@@ -67,76 +67,146 @@ dependencies:
|
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: 0.9.1
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: dotenv
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.11.1
|
77
|
+
type: :development
|
78
|
+
prerelease: false
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 0.11.1
|
70
84
|
- !ruby/object:Gem::Dependency
|
71
85
|
name: bundler
|
72
86
|
requirement: !ruby/object:Gem::Requirement
|
73
87
|
requirements:
|
74
88
|
- - "~>"
|
75
89
|
- !ruby/object:Gem::Version
|
76
|
-
version: '1.
|
90
|
+
version: '1.6'
|
77
91
|
type: :development
|
78
92
|
prerelease: false
|
79
93
|
version_requirements: !ruby/object:Gem::Requirement
|
80
94
|
requirements:
|
81
95
|
- - "~>"
|
82
96
|
- !ruby/object:Gem::Version
|
83
|
-
version: '1.
|
97
|
+
version: '1.6'
|
84
98
|
- !ruby/object:Gem::Dependency
|
85
99
|
name: rake
|
86
100
|
requirement: !ruby/object:Gem::Requirement
|
87
101
|
requirements:
|
88
|
-
- - "
|
102
|
+
- - "~>"
|
89
103
|
- !ruby/object:Gem::Version
|
90
|
-
version: '0'
|
104
|
+
version: '10.0'
|
91
105
|
type: :development
|
92
106
|
prerelease: false
|
93
107
|
version_requirements: !ruby/object:Gem::Requirement
|
94
108
|
requirements:
|
95
|
-
- - "
|
109
|
+
- - "~>"
|
96
110
|
- !ruby/object:Gem::Version
|
97
|
-
version: '0'
|
111
|
+
version: '10.0'
|
98
112
|
- !ruby/object:Gem::Dependency
|
99
113
|
name: pry
|
100
114
|
requirement: !ruby/object:Gem::Requirement
|
101
115
|
requirements:
|
102
|
-
- - "
|
116
|
+
- - "~>"
|
103
117
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
118
|
+
version: 0.10.0
|
105
119
|
type: :development
|
106
120
|
prerelease: false
|
107
121
|
version_requirements: !ruby/object:Gem::Requirement
|
108
122
|
requirements:
|
109
|
-
- - "
|
123
|
+
- - "~>"
|
110
124
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
125
|
+
version: 0.10.0
|
112
126
|
- !ruby/object:Gem::Dependency
|
113
|
-
name:
|
127
|
+
name: pry-byebug
|
114
128
|
requirement: !ruby/object:Gem::Requirement
|
115
129
|
requirements:
|
116
|
-
- - "
|
130
|
+
- - "~>"
|
117
131
|
- !ruby/object:Gem::Version
|
118
|
-
version:
|
132
|
+
version: 1.3.3
|
119
133
|
type: :development
|
120
134
|
prerelease: false
|
121
135
|
version_requirements: !ruby/object:Gem::Requirement
|
122
136
|
requirements:
|
123
|
-
- - "
|
137
|
+
- - "~>"
|
124
138
|
- !ruby/object:Gem::Version
|
125
|
-
version:
|
139
|
+
version: 1.3.3
|
126
140
|
- !ruby/object:Gem::Dependency
|
127
141
|
name: rspec
|
128
142
|
requirement: !ruby/object:Gem::Requirement
|
129
143
|
requirements:
|
130
144
|
- - "~>"
|
131
145
|
- !ruby/object:Gem::Version
|
132
|
-
version:
|
146
|
+
version: 3.0.0
|
147
|
+
type: :development
|
148
|
+
prerelease: false
|
149
|
+
version_requirements: !ruby/object:Gem::Requirement
|
150
|
+
requirements:
|
151
|
+
- - "~>"
|
152
|
+
- !ruby/object:Gem::Version
|
153
|
+
version: 3.0.0
|
154
|
+
- !ruby/object:Gem::Dependency
|
155
|
+
name: rspec-collection_matchers
|
156
|
+
requirement: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - '='
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: 1.0.0
|
161
|
+
type: :development
|
162
|
+
prerelease: false
|
163
|
+
version_requirements: !ruby/object:Gem::Requirement
|
164
|
+
requirements:
|
165
|
+
- - '='
|
166
|
+
- !ruby/object:Gem::Version
|
167
|
+
version: 1.0.0
|
168
|
+
- !ruby/object:Gem::Dependency
|
169
|
+
name: webmock
|
170
|
+
requirement: !ruby/object:Gem::Requirement
|
171
|
+
requirements:
|
172
|
+
- - "~>"
|
173
|
+
- !ruby/object:Gem::Version
|
174
|
+
version: 1.18.0
|
175
|
+
type: :development
|
176
|
+
prerelease: false
|
177
|
+
version_requirements: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - "~>"
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: 1.18.0
|
182
|
+
- !ruby/object:Gem::Dependency
|
183
|
+
name: simplecov
|
184
|
+
requirement: !ruby/object:Gem::Requirement
|
185
|
+
requirements:
|
186
|
+
- - "~>"
|
187
|
+
- !ruby/object:Gem::Version
|
188
|
+
version: 0.9.0
|
189
|
+
type: :development
|
190
|
+
prerelease: false
|
191
|
+
version_requirements: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - "~>"
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: 0.9.0
|
196
|
+
- !ruby/object:Gem::Dependency
|
197
|
+
name: coveralls
|
198
|
+
requirement: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - "~>"
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: 0.7.1
|
133
203
|
type: :development
|
134
204
|
prerelease: false
|
135
205
|
version_requirements: !ruby/object:Gem::Requirement
|
136
206
|
requirements:
|
137
207
|
- - "~>"
|
138
208
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
209
|
+
version: 0.7.1
|
140
210
|
- !ruby/object:Gem::Dependency
|
141
211
|
name: vcr
|
142
212
|
requirement: !ruby/object:Gem::Requirement
|
@@ -173,6 +243,7 @@ executables: []
|
|
173
243
|
extensions: []
|
174
244
|
extra_rdoc_files: []
|
175
245
|
files:
|
246
|
+
- ".coveralls.yml"
|
176
247
|
- ".gitignore"
|
177
248
|
- ".rspec"
|
178
249
|
- ".travis.yml"
|
@@ -181,24 +252,30 @@ files:
|
|
181
252
|
- README.md
|
182
253
|
- Rakefile
|
183
254
|
- example-linkedin.yml
|
255
|
+
- lib/linkedin/api.rb
|
184
256
|
- lib/linkedin/api/authentication.rb
|
185
257
|
- lib/linkedin/api/companies.rb
|
186
258
|
- lib/linkedin/api/groups.rb
|
187
|
-
- lib/linkedin/api/
|
259
|
+
- lib/linkedin/api/invitation.rb
|
188
260
|
- lib/linkedin/api/jobs.rb
|
261
|
+
- lib/linkedin/api/messaging.rb
|
189
262
|
- lib/linkedin/api/network_updates.rb
|
190
|
-
- lib/linkedin/api/
|
191
|
-
- lib/linkedin/api/profiles.rb
|
263
|
+
- lib/linkedin/api/people.rb
|
192
264
|
- lib/linkedin/base.rb
|
193
265
|
- lib/linkedin/client.rb
|
194
266
|
- lib/linkedin/company.rb
|
195
267
|
- lib/linkedin/configuration.rb
|
196
|
-
- lib/linkedin/
|
268
|
+
- lib/linkedin/credentials.rb
|
269
|
+
- lib/linkedin/errors.rb
|
197
270
|
- lib/linkedin/faraday_middleware.rb
|
198
|
-
- lib/linkedin/faraday_middleware/
|
199
|
-
- lib/linkedin/faraday_middleware/
|
200
|
-
- lib/linkedin/
|
271
|
+
- lib/linkedin/faraday_middleware/credentials_request.rb
|
272
|
+
- lib/linkedin/faraday_middleware/error_response.rb
|
273
|
+
- lib/linkedin/faraday_middleware/format_request.rb
|
274
|
+
- lib/linkedin/faraday_middleware/user_agent_request.rb
|
275
|
+
- lib/linkedin/fields.rb
|
276
|
+
- lib/linkedin/industries.rb
|
201
277
|
- lib/linkedin/profile.rb
|
278
|
+
- lib/linkedin/response.rb
|
202
279
|
- lib/linkedin/utils.rb
|
203
280
|
- lib/linkedin/version.rb
|
204
281
|
- lib/linkedin2.rb
|
@@ -207,8 +284,8 @@ files:
|
|
207
284
|
- spec/api/groups_spec.rb
|
208
285
|
- spec/api/jobs_spec.rb
|
209
286
|
- spec/api/network_updates_spec.rb
|
210
|
-
- spec/api/
|
211
|
-
- spec/faraday_middleware/
|
287
|
+
- spec/api/people_spec.rb
|
288
|
+
- spec/faraday_middleware/error_response_spec.rb
|
212
289
|
- spec/fixtures/requests/access_token.yml
|
213
290
|
- spec/fixtures/requests/companies.yml
|
214
291
|
- spec/fixtures/requests/company-search/by_keywords_options_with_fields.yml
|
@@ -224,10 +301,12 @@ files:
|
|
224
301
|
- spec/fixtures/requests/people-search/by_keywords_string_parameter.yml
|
225
302
|
- spec/fixtures/requests/people-search/by_single_keywords_option.yml
|
226
303
|
- spec/fixtures/requests/people-search/by_single_keywords_option_with_pagination.yml
|
227
|
-
- spec/fixtures/requests/
|
304
|
+
- spec/fixtures/requests/people.yml
|
228
305
|
- spec/fixtures/requests/request_token/request_token.yml
|
229
306
|
- spec/fixtures/requests/request_token/with_callback.yml
|
230
307
|
- spec/spec_helper.rb
|
308
|
+
- spec/support/coverage.rb
|
309
|
+
- spec/support/vcr.rb
|
231
310
|
- spec/test_app.yml
|
232
311
|
homepage: https://github.com/bobbrez/linkedin2
|
233
312
|
licenses:
|
@@ -258,8 +337,8 @@ test_files:
|
|
258
337
|
- spec/api/groups_spec.rb
|
259
338
|
- spec/api/jobs_spec.rb
|
260
339
|
- spec/api/network_updates_spec.rb
|
261
|
-
- spec/api/
|
262
|
-
- spec/faraday_middleware/
|
340
|
+
- spec/api/people_spec.rb
|
341
|
+
- spec/faraday_middleware/error_response_spec.rb
|
263
342
|
- spec/fixtures/requests/access_token.yml
|
264
343
|
- spec/fixtures/requests/companies.yml
|
265
344
|
- spec/fixtures/requests/company-search/by_keywords_options_with_fields.yml
|
@@ -275,9 +354,11 @@ test_files:
|
|
275
354
|
- spec/fixtures/requests/people-search/by_keywords_string_parameter.yml
|
276
355
|
- spec/fixtures/requests/people-search/by_single_keywords_option.yml
|
277
356
|
- spec/fixtures/requests/people-search/by_single_keywords_option_with_pagination.yml
|
278
|
-
- spec/fixtures/requests/
|
357
|
+
- spec/fixtures/requests/people.yml
|
279
358
|
- spec/fixtures/requests/request_token/request_token.yml
|
280
359
|
- spec/fixtures/requests/request_token/with_callback.yml
|
281
360
|
- spec/spec_helper.rb
|
361
|
+
- spec/support/coverage.rb
|
362
|
+
- spec/support/vcr.rb
|
282
363
|
- spec/test_app.yml
|
283
364
|
has_rdoc:
|
@@ -1,171 +0,0 @@
|
|
1
|
-
module LinkedIn
|
2
|
-
module API
|
3
|
-
module Industries
|
4
|
-
INDUSTRIES = [ { code: 1, group: [:gov, :tech], description: 'Defense & Space' },
|
5
|
-
{ code: 3, group: [:tech], description: 'Computer Hardware' },
|
6
|
-
{ code: 4, group: [:tech], description: 'Computer Software' },
|
7
|
-
{ code: 5, group: [:tech], description: 'Computer Networking' },
|
8
|
-
{ code: 6, group: [:tech], description: 'Internet' },
|
9
|
-
{ code: 7, group: [:tech], description: 'Semiconductors' },
|
10
|
-
{ code: 8, group: [:gov, :tech], description: 'Telecommunications' },
|
11
|
-
{ code: 9, group: [:leg], description: 'Law Practice' },
|
12
|
-
{ code: 10, group: [:leg], description: 'Legal Services' },
|
13
|
-
{ code: 11, group: [:corp], description: 'Management Consulting' },
|
14
|
-
{ code: 12, group: [:gov, :hlth, :tech], description: 'Biotechnology' },
|
15
|
-
{ code: 13, group: [:hlth], description: 'Medical Practice' },
|
16
|
-
{ code: 14, group: [:hlth], description: 'Hospital & Health Care' },
|
17
|
-
{ code: 15, group: [:hlth, :tech], description: 'Pharmaceuticals' },
|
18
|
-
{ code: 16, group: [:hlth], description: 'Veterinary' },
|
19
|
-
{ code: 17, group: [:hlth], description: 'Medical Devices' },
|
20
|
-
{ code: 18, group: [:good], description: 'Cosmetics' },
|
21
|
-
{ code: 19, group: [:good], description: 'Apparel & Fashion' },
|
22
|
-
{ code: 20, group: [:good, :rec], description: 'Sporting Goods' },
|
23
|
-
{ code: 21, group: [:good], description: 'Tobacco' },
|
24
|
-
{ code: 22, group: [:good], description: 'Supermarkets' },
|
25
|
-
{ code: 23, group: [:good, :man, :serv], description: 'Food Production' },
|
26
|
-
{ code: 24, group: [:good, :man], description: 'Consumer Electronics' },
|
27
|
-
{ code: 25, group: [:good, :man], description: 'Consumer Goods' },
|
28
|
-
{ code: 26, group: [:good, :man], description: 'Furniture' },
|
29
|
-
{ code: 27, group: [:good, :man], description: 'Retail' },
|
30
|
-
{ code: 28, group: [:med, :rec], description: 'Entertainment' },
|
31
|
-
{ code: 29, group: [:rec], description: 'Gambling & Casinos' },
|
32
|
-
{ code: 30, group: [:rec, :serv, :tran], description: 'Leisure, Travel & Tourism' },
|
33
|
-
{ code: 31, group: [:rec, :serv, :tran], description: 'Hospitality' },
|
34
|
-
{ code: 32, group: [:rec, :serv], description: 'Restaurants' },
|
35
|
-
{ code: 33, group: [:rec], description: 'Sports' },
|
36
|
-
{ code: 34, group: [:rec, :serv], description: 'Food & Beverages' },
|
37
|
-
{ code: 35, group: [:art, :med, :rec], description: 'Motion Pictures and Film' },
|
38
|
-
{ code: 36, group: [:med, :rec], description: 'Broadcast Media' },
|
39
|
-
{ code: 37, group: [:art, :med, :rec], description: 'Museums and Institutions' },
|
40
|
-
{ code: 38, group: [:art, :med, :rec], description: 'Fine Art' },
|
41
|
-
{ code: 39, group: [:art, :med, :rec], description: 'Performing Arts' },
|
42
|
-
{ code: 40, group: [:rec, :serv], description: 'Recreational Facilities and Services' },
|
43
|
-
{ code: 41, group: [:fin], description: 'Banking' },
|
44
|
-
{ code: 42, group: [:fin], description: 'Insurance' },
|
45
|
-
{ code: 43, group: [:fin], description: 'Financial Services' },
|
46
|
-
{ code: 44, group: [:cons, :fin, :good], description: 'Real Estate' },
|
47
|
-
{ code: 45, group: [:fin], description: 'Investment Banking' },
|
48
|
-
{ code: 46, group: [:fin], description: 'Investment Management' },
|
49
|
-
{ code: 47, group: [:corp, :fin], description: 'Accounting' },
|
50
|
-
{ code: 48, group: [:cons], description: 'Construction' },
|
51
|
-
{ code: 49, group: [:cons], description: 'Building Materials' },
|
52
|
-
{ code: 50, group: [:cons], description: 'Architecture & Planning' },
|
53
|
-
{ code: 51, group: [:cons, :gov], description: 'Civil Engineering' },
|
54
|
-
{ code: 52, group: [:gov, :man], description: 'Aviation & Aerospace' },
|
55
|
-
{ code: 53, group: [:man], description: 'Automotive' },
|
56
|
-
{ code: 54, group: [:man], description: 'Chemicals' },
|
57
|
-
{ code: 55, group: [:man], description: 'Machinery' },
|
58
|
-
{ code: 56, group: [:man], description: 'Mining & Metals' },
|
59
|
-
{ code: 57, group: [:man], description: 'Oil & Energy' },
|
60
|
-
{ code: 58, group: [:man], description: 'Shipbuilding' },
|
61
|
-
{ code: 59, group: [:man], description: 'Utilities' },
|
62
|
-
{ code: 60, group: [:man], description: 'Textiles' },
|
63
|
-
{ code: 61, group: [:man], description: 'Paper & Forest Products' },
|
64
|
-
{ code: 62, group: [:man], description: 'Railroad Manufacture' },
|
65
|
-
{ code: 63, group: [:agr], description: 'Farming' },
|
66
|
-
{ code: 64, group: [:agr], description: 'Ranching' },
|
67
|
-
{ code: 65, group: [:agr], description: 'Dairy' },
|
68
|
-
{ code: 66, group: [:agr], description: 'Fishery' },
|
69
|
-
{ code: 67, group: [:edu], description: 'Primary/Secondary Education' },
|
70
|
-
{ code: 68, group: [:edu], description: 'Higher Education' },
|
71
|
-
{ code: 69, group: [:edu], description: 'Education Management' },
|
72
|
-
{ code: 70, group: [:edu, :gov], description: 'Research' },
|
73
|
-
{ code: 71, group: [:gov], description: 'Military' },
|
74
|
-
{ code: 72, group: [:gov, :leg], description: 'Legislative Office' },
|
75
|
-
{ code: 73, group: [:gov, :leg], description: 'Judiciary' },
|
76
|
-
{ code: 74, group: [:gov], description: 'International Affairs' },
|
77
|
-
{ code: 75, group: [:gov], description: 'Government Administration' },
|
78
|
-
{ code: 76, group: [:gov], description: 'Executive Office' },
|
79
|
-
{ code: 77, group: [:gov, :leg], description: 'Law Enforcement' },
|
80
|
-
{ code: 78, group: [:gov], description: 'Public Safety' },
|
81
|
-
{ code: 79, group: [:gov], description: 'Public Policy' },
|
82
|
-
{ code: 80, group: [:corp, :med], description: 'Marketing and Advertising' },
|
83
|
-
{ code: 81, group: [:med, :rec], description: 'Newspapers' },
|
84
|
-
{ code: 82, group: [:med, :rec], description: 'Publishing' },
|
85
|
-
{ code: 83, group: [:med, :rec], description: 'Printing' },
|
86
|
-
{ code: 84, group: [:med, :serv], description: 'Information Services' },
|
87
|
-
{ code: 85, group: [:med, :rec, :serv], description: 'Libraries' },
|
88
|
-
{ code: 86, group: [:org, :serv], description: 'Environmental Services' },
|
89
|
-
{ code: 87, group: [:serv, :tran], description: 'Package/Freight Delivery' },
|
90
|
-
{ code: 88, group: [:org, :serv], description: 'Individual & Family Services' },
|
91
|
-
{ code: 89, group: [:org, :serv], description: 'Religious Institutions' },
|
92
|
-
{ code: 90, group: [:org, :serv], description: 'Civic & Social Organization' },
|
93
|
-
{ code: 91, group: [:org, :serv], description: 'Consumer Services' },
|
94
|
-
{ code: 92, group: [:tran], description: 'Transportation/Trucking/Railroad' },
|
95
|
-
{ code: 93, group: [:tran], description: 'Warehousing' },
|
96
|
-
{ code: 94, group: [:man, :tech, :tran], description: 'Airlines/Aviation' },
|
97
|
-
{ code: 95, group: [:tran], description: 'Maritime' },
|
98
|
-
{ code: 96, group: [:tech], description: 'Information Technology and Services' },
|
99
|
-
{ code: 97, group: [:corp], description: 'Market Research' },
|
100
|
-
{ code: 98, group: [:corp], description: 'Public Relations and Communications' },
|
101
|
-
{ code: 99, group: [:art, :med], description: 'Design' },
|
102
|
-
{ code: 100, group: [:org], description: 'Nonprofit Organization Management' },
|
103
|
-
{ code: 101, group: [:org], description: 'Fund-Raising' },
|
104
|
-
{ code: 102, group: [:corp, :org], description: 'Program Development' },
|
105
|
-
{ code: 103, group: [:art, :med, :rec], description: 'Writing and Editing' },
|
106
|
-
{ code: 104, group: [:corp], description: 'Staffing and Recruiting' },
|
107
|
-
{ code: 105, group: [:corp], description: 'Professional Training & Coaching' },
|
108
|
-
{ code: 106, group: [:fin, :tech], description: 'Venture Capital & Private Equity' },
|
109
|
-
{ code: 107, group: [:gov, :org], description: 'Political Organization' },
|
110
|
-
{ code: 108, group: [:corp, :gov, :serv], description: 'Translation and Localization' },
|
111
|
-
{ code: 109, group: [:med, :rec], description: 'Computer Games' },
|
112
|
-
{ code: 110, group: [:corp, :rec, :serv], description: 'Events Services' },
|
113
|
-
{ code: 111, group: [:art, :med, :rec], description: 'Arts and Crafts' },
|
114
|
-
{ code: 112, group: [:good, :man], description: 'Electrical/Electronic Manufacturing' },
|
115
|
-
{ code: 113, group: [:med], description: 'Online Media' },
|
116
|
-
{ code: 114, group: [:gov, :man, :tech], description: 'Nanotechnology' },
|
117
|
-
{ code: 115, group: [:art, :rec], description: 'Music' },
|
118
|
-
{ code: 116, group: [:corp, :tran], description: 'Logistics and Supply Chain' },
|
119
|
-
{ code: 117, group: [:man], description: 'Plastics' },
|
120
|
-
{ code: 118, group: [:tech], description: 'Computer & Network Security' },
|
121
|
-
{ code: 119, group: [:tech], description: 'Wireless' },
|
122
|
-
{ code: 120, group: [:leg, :org], description: 'Alternative Dispute Resolution' },
|
123
|
-
{ code: 121, group: [:corp, :org, :serv], description: 'Security and Investigations' },
|
124
|
-
{ code: 122, group: [:corp, :serv], description: 'Facilities Services' },
|
125
|
-
{ code: 123, group: [:corp], description: 'Outsourcing/Offshoring' },
|
126
|
-
{ code: 124, group: [:hlth, :rec], description: 'Health, Wellness and Fitness' },
|
127
|
-
{ code: 125, group: [:hlth], description: 'Alternative Medicine' },
|
128
|
-
{ code: 126, group: [:med, :rec], description: 'Media Production' },
|
129
|
-
{ code: 127, group: [:art, :med], description: 'Animation' },
|
130
|
-
{ code: 128, group: [:cons, :corp, :fin], description: 'Commercial Real Estate' },
|
131
|
-
{ code: 129, group: [:fin], description: 'Capital Markets' },
|
132
|
-
{ code: 130, group: [:gov, :org], description: 'Think Tanks' },
|
133
|
-
{ code: 131, group: [:org], description: 'Philanthropy' },
|
134
|
-
{ code: 132, group: [:edu, :org], description: 'E-Learning' },
|
135
|
-
{ code: 133, group: [:good], description: 'Wholesale' },
|
136
|
-
{ code: 134, group: [:corp, :good, :tran], description: 'Import and Export' },
|
137
|
-
{ code: 135, group: [:cons, :gov, :man], description: 'Mechanical or Industrial Engineering' },
|
138
|
-
{ code: 136, group: [:art, :med, :rec], description: 'Photography' },
|
139
|
-
{ code: 137, group: [:corp], description: 'Human Resources' },
|
140
|
-
{ code: 138, group: [:corp, :man], description: 'Business Supplies and Equipment' },
|
141
|
-
{ code: 139, group: [:hlth], description: 'Mental Health Care' },
|
142
|
-
{ code: 140, group: [:art, :med], description: 'Graphic Design' },
|
143
|
-
{ code: 141, group: [:gov, :org, :tran], description: 'International Trade and Development' },
|
144
|
-
{ code: 142, group: [:good, :man, :rec], description: 'Wine and Spirits' },
|
145
|
-
{ code: 143, group: [:good], description: 'Luxury Goods & Jewelry' },
|
146
|
-
{ code: 144, group: [:gov, :man, :org], description: 'Renewables & Environment' },
|
147
|
-
{ code: 145, group: [:cons, :man], description: 'Glass, Ceramics & Concrete' },
|
148
|
-
{ code: 146, group: [:good, :man], description: 'Packaging and Containers' },
|
149
|
-
{ code: 147, group: [:cons, :man], description: 'Industrial Automation' },
|
150
|
-
{ code: 148, group: [:gov], description: 'Government Relations' } ]
|
151
|
-
|
152
|
-
GROUPS = { agr: 'Agriculture',
|
153
|
-
art: 'Art & Design',
|
154
|
-
cons: 'Real Estate & Construction',
|
155
|
-
corp: 'Business & Operations',
|
156
|
-
edu: 'Education',
|
157
|
-
fin: 'Financial Services',
|
158
|
-
good: 'Consumer Goods',
|
159
|
-
gov: 'Government',
|
160
|
-
hlth: 'Health Care',
|
161
|
-
leg: 'Legal',
|
162
|
-
man: 'Basic Industries',
|
163
|
-
med: 'Media & Entertainment',
|
164
|
-
org: 'Charitable & Civic Organizations',
|
165
|
-
rec: 'Leisure & Recreation',
|
166
|
-
serv: 'Business Services',
|
167
|
-
tech: 'Technology',
|
168
|
-
tran: 'Transportation & Logistics' }
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|