linkedin_industries 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/LICENSE ADDED
@@ -0,0 +1 @@
1
+ Motherflippin' public domain!
data/README.md ADDED
@@ -0,0 +1,9 @@
1
+ linkedin_industries_rb
2
+ ======================
3
+
4
+ A Ruby module that does nothing but define a list of LinkedIn industries. The
5
+ list is pulled from [here](https://github.com/jeffomatic/linkedin_industries).
6
+
7
+ Available as a gem:
8
+
9
+ gem install linkedin_industries
@@ -0,0 +1,270 @@
1
+ begin
2
+ require 'active_support/core_ext/hash/indifferent_access'
3
+ rescue LoadError
4
+ # do nothing, this is library is optional
5
+ end
6
+
7
+ module LinkedinIndustries
8
+ VERSION = '1.0.0'
9
+
10
+ # First off, you probably just want to use LIST, which is defined at the
11
+ # bottom of this module.
12
+ #
13
+ # This list is pulled from https://github.com/jeffomatic/linkedin_industries
14
+ ORIGINAL_LIST = [
15
+ {"code"=>47, "groups"=>["corp", "fin"], "description"=>"Accounting"},
16
+ {"code"=>94,
17
+ "groups"=>["man", "tech", "tran"],
18
+ "description"=>"Airlines/Aviation"},
19
+ {"code"=>120,
20
+ "groups"=>["leg", "org"],
21
+ "description"=>"Alternative Dispute Resolution"},
22
+ {"code"=>125, "groups"=>["hlth"], "description"=>"Alternative Medicine"},
23
+ {"code"=>127, "groups"=>["art", "med"], "description"=>"Animation"},
24
+ {"code"=>19, "groups"=>["good"], "description"=>"Apparel & Fashion"},
25
+ {"code"=>50, "groups"=>["cons"], "description"=>"Architecture & Planning"},
26
+ {"code"=>111,
27
+ "groups"=>["art", "med", "rec"],
28
+ "description"=>"Arts and Crafts"},
29
+ {"code"=>53, "groups"=>["man"], "description"=>"Automotive"},
30
+ {"code"=>52, "groups"=>["gov", "man"], "description"=>"Aviation & Aerospace"},
31
+ {"code"=>41, "groups"=>["fin"], "description"=>"Banking"},
32
+ {"code"=>12,
33
+ "groups"=>["gov", "hlth", "tech"],
34
+ "description"=>"Biotechnology"},
35
+ {"code"=>36, "groups"=>["med", "rec"], "description"=>"Broadcast Media"},
36
+ {"code"=>49, "groups"=>["cons"], "description"=>"Building Materials"},
37
+ {"code"=>138,
38
+ "groups"=>["corp", "man"],
39
+ "description"=>"Business Supplies and Equipment"},
40
+ {"code"=>129, "groups"=>["fin"], "description"=>"Capital Markets"},
41
+ {"code"=>54, "groups"=>["man"], "description"=>"Chemicals"},
42
+ {"code"=>90,
43
+ "groups"=>["org", "serv"],
44
+ "description"=>"Civic & Social Organization"},
45
+ {"code"=>51, "groups"=>["cons", "gov"], "description"=>"Civil Engineering"},
46
+ {"code"=>128,
47
+ "groups"=>["cons", "corp", "fin"],
48
+ "description"=>"Commercial Real Estate"},
49
+ {"code"=>118,
50
+ "groups"=>["tech"],
51
+ "description"=>"Computer & Network Security"},
52
+ {"code"=>109, "groups"=>["med", "rec"], "description"=>"Computer Games"},
53
+ {"code"=>3, "groups"=>["tech"], "description"=>"Computer Hardware"},
54
+ {"code"=>5, "groups"=>["tech"], "description"=>"Computer Networking"},
55
+ {"code"=>4, "groups"=>["tech"], "description"=>"Computer Software"},
56
+ {"code"=>48, "groups"=>["cons"], "description"=>"Construction"},
57
+ {"code"=>24,
58
+ "groups"=>["good", "man"],
59
+ "description"=>"Consumer Electronics"},
60
+ {"code"=>25, "groups"=>["good", "man"], "description"=>"Consumer Goods"},
61
+ {"code"=>91, "groups"=>["org", "serv"], "description"=>"Consumer Services"},
62
+ {"code"=>18, "groups"=>["good"], "description"=>"Cosmetics"},
63
+ {"code"=>65, "groups"=>["agr"], "description"=>"Dairy"},
64
+ {"code"=>1, "groups"=>["gov", "tech"], "description"=>"Defense & Space"},
65
+ {"code"=>99, "groups"=>["art", "med"], "description"=>"Design"},
66
+ {"code"=>69, "groups"=>["edu"], "description"=>"Education Management"},
67
+ {"code"=>132, "groups"=>["edu", "org"], "description"=>"E-Learning"},
68
+ {"code"=>112,
69
+ "groups"=>["good", "man"],
70
+ "description"=>"Electrical/Electronic Manufacturing"},
71
+ {"code"=>28, "groups"=>["med", "rec"], "description"=>"Entertainment"},
72
+ {"code"=>86,
73
+ "groups"=>["org", "serv"],
74
+ "description"=>"Environmental Services"},
75
+ {"code"=>110,
76
+ "groups"=>["corp", "rec", "serv"],
77
+ "description"=>"Events Services"},
78
+ {"code"=>76, "groups"=>["gov"], "description"=>"Executive Office"},
79
+ {"code"=>122,
80
+ "groups"=>["corp", "serv"],
81
+ "description"=>"Facilities Services"},
82
+ {"code"=>63, "groups"=>["agr"], "description"=>"Farming"},
83
+ {"code"=>43, "groups"=>["fin"], "description"=>"Financial Services"},
84
+ {"code"=>38, "groups"=>["art", "med", "rec"], "description"=>"Fine Art"},
85
+ {"code"=>66, "groups"=>["agr"], "description"=>"Fishery"},
86
+ {"code"=>34, "groups"=>["rec", "serv"], "description"=>"Food & Beverages"},
87
+ {"code"=>23,
88
+ "groups"=>["good", "man", "serv"],
89
+ "description"=>"Food Production"},
90
+ {"code"=>101, "groups"=>["org"], "description"=>"Fund-Raising"},
91
+ {"code"=>26, "groups"=>["good", "man"], "description"=>"Furniture"},
92
+ {"code"=>29, "groups"=>["rec"], "description"=>"Gambling & Casinos"},
93
+ {"code"=>75, "groups"=>["gov"], "description"=>"Government Administration"},
94
+ {"code"=>148, "groups"=>["gov"], "description"=>"Government Relations"},
95
+ {"code"=>140, "groups"=>["art", "med"], "description"=>"Graphic Design"},
96
+ {"code"=>68, "groups"=>["edu"], "description"=>"Higher Education"},
97
+ {"code"=>14, "groups"=>["hlth"], "description"=>"Hospital & Health Care"},
98
+ {"code"=>31, "groups"=>["rec", "serv", "tran"], "description"=>"Hospitality"},
99
+ {"code"=>137, "groups"=>["corp"], "description"=>"Human Resources"},
100
+ {"code"=>134,
101
+ "groups"=>["corp", "good", "tran"],
102
+ "description"=>"Import and Export"},
103
+ {"code"=>88,
104
+ "groups"=>["org", "serv"],
105
+ "description"=>"Individual & Family Services"},
106
+ {"code"=>147,
107
+ "groups"=>["cons", "man"],
108
+ "description"=>"Industrial Automation"},
109
+ {"code"=>84,
110
+ "groups"=>["med", "serv"],
111
+ "description"=>"Information Services"},
112
+ {"code"=>96,
113
+ "groups"=>["tech"],
114
+ "description"=>"Information Technology and Services"},
115
+ {"code"=>42, "groups"=>["fin"], "description"=>"Insurance"},
116
+ {"code"=>74, "groups"=>["gov"], "description"=>"International Affairs"},
117
+ {"code"=>141,
118
+ "groups"=>["gov", "org", "tran"],
119
+ "description"=>"International Trade and Development"},
120
+ {"code"=>6, "groups"=>["tech"], "description"=>"Internet"},
121
+ {"code"=>45, "groups"=>["fin"], "description"=>"Investment Banking"},
122
+ {"code"=>46, "groups"=>["fin"], "description"=>"Investment Management"},
123
+ {"code"=>73, "groups"=>["gov", "leg"], "description"=>"Judiciary"},
124
+ {"code"=>77, "groups"=>["gov", "leg"], "description"=>"Law Enforcement"},
125
+ {"code"=>9, "groups"=>["leg"], "description"=>"Law Practice"},
126
+ {"code"=>10, "groups"=>["leg"], "description"=>"Legal Services"},
127
+ {"code"=>72, "groups"=>["gov", "leg"], "description"=>"Legislative Office"},
128
+ {"code"=>85, "groups"=>["med", "rec", "serv"], "description"=>"Libraries"},
129
+ {"code"=>116,
130
+ "groups"=>["corp", "tran"],
131
+ "description"=>"Logistics and Supply Chain"},
132
+ {"code"=>143, "groups"=>["good"], "description"=>"Luxury Goods & Jewelry"},
133
+ {"code"=>55, "groups"=>["man"], "description"=>"Machinery"},
134
+ {"code"=>11, "groups"=>["corp"], "description"=>"Management Consulting"},
135
+ {"code"=>95, "groups"=>["tran"], "description"=>"Maritime"},
136
+ {"code"=>97, "groups"=>["corp"], "description"=>"Market Research"},
137
+ {"code"=>80,
138
+ "groups"=>["corp", "med"],
139
+ "description"=>"Marketing and Advertising"},
140
+ {"code"=>135,
141
+ "groups"=>["cons", "gov", "man"],
142
+ "description"=>"Mechanical or Industrial Engineering"},
143
+ {"code"=>126, "groups"=>["med", "rec"], "description"=>"Media Production"},
144
+ {"code"=>17, "groups"=>["hlth"], "description"=>"Medical Devices"},
145
+ {"code"=>13, "groups"=>["hlth"], "description"=>"Medical Practice"},
146
+ {"code"=>139, "groups"=>["hlth"], "description"=>"Mental Health Care"},
147
+ {"code"=>71, "groups"=>["gov"], "description"=>"Military"},
148
+ {"code"=>56, "groups"=>["man"], "description"=>"Mining & Metals"},
149
+ {"code"=>35,
150
+ "groups"=>["art", "med", "rec"],
151
+ "description"=>"Motion Pictures and Film"},
152
+ {"code"=>37,
153
+ "groups"=>["art", "med", "rec"],
154
+ "description"=>"Museums and Institutions"},
155
+ {"code"=>115, "groups"=>["art", "rec"], "description"=>"Music"},
156
+ {"code"=>114,
157
+ "groups"=>["gov", "man", "tech"],
158
+ "description"=>"Nanotechnology"},
159
+ {"code"=>81, "groups"=>["med", "rec"], "description"=>"Newspapers"},
160
+ {"code"=>100,
161
+ "groups"=>["org"],
162
+ "description"=>"Non-Profit Organization Management"},
163
+ {"code"=>57, "groups"=>["man"], "description"=>"Oil & Energy"},
164
+ {"code"=>113, "groups"=>["med"], "description"=>"Online Media"},
165
+ {"code"=>123, "groups"=>["corp"], "description"=>"Outsourcing/Offshoring"},
166
+ {"code"=>87,
167
+ "groups"=>["serv", "tran"],
168
+ "description"=>"Package/Freight Delivery"},
169
+ {"code"=>146,
170
+ "groups"=>["good", "man"],
171
+ "description"=>"Packaging and Containers"},
172
+ {"code"=>61, "groups"=>["man"], "description"=>"Paper & Forest Products"},
173
+ {"code"=>39,
174
+ "groups"=>["art", "med", "rec"],
175
+ "description"=>"Performing Arts"},
176
+ {"code"=>15, "groups"=>["hlth", "tech"], "description"=>"Pharmaceuticals"},
177
+ {"code"=>131, "groups"=>["org"], "description"=>"Philanthropy"},
178
+ {"code"=>136, "groups"=>["art", "med", "rec"], "description"=>"Photography"},
179
+ {"code"=>117, "groups"=>["man"], "description"=>"Plastics"},
180
+ {"code"=>107,
181
+ "groups"=>["gov", "org"],
182
+ "description"=>"Political Organization"},
183
+ {"code"=>67, "groups"=>["edu"], "description"=>"Primary/Secondary Education"},
184
+ {"code"=>83, "groups"=>["med", "rec"], "description"=>"Printing"},
185
+ {"code"=>105,
186
+ "groups"=>["corp"],
187
+ "description"=>"Professional Training & Coaching"},
188
+ {"code"=>102,
189
+ "groups"=>["corp", "org"],
190
+ "description"=>"Program Development"},
191
+ {"code"=>79, "groups"=>["gov"], "description"=>"Public Policy"},
192
+ {"code"=>98,
193
+ "groups"=>["corp"],
194
+ "description"=>"Public Relations and Communications"},
195
+ {"code"=>78, "groups"=>["gov"], "description"=>"Public Safety"},
196
+ {"code"=>82, "groups"=>["med", "rec"], "description"=>"Publishing"},
197
+ {"code"=>62, "groups"=>["man"], "description"=>"Railroad Manufacture"},
198
+ {"code"=>64, "groups"=>["agr"], "description"=>"Ranching"},
199
+ {"code"=>44, "groups"=>["cons", "fin", "good"], "description"=>"Real Estate"},
200
+ {"code"=>40,
201
+ "groups"=>["rec", "serv"],
202
+ "description"=>"Recreational Facilities and Services"},
203
+ {"code"=>89,
204
+ "groups"=>["org", "serv"],
205
+ "description"=>"Religious Institutions"},
206
+ {"code"=>144,
207
+ "groups"=>["gov", "man", "org"],
208
+ "description"=>"Renewables & Environment"},
209
+ {"code"=>70, "groups"=>["edu", "gov"], "description"=>"Research"},
210
+ {"code"=>32, "groups"=>["rec", "serv"], "description"=>"Restaurants"},
211
+ {"code"=>27, "groups"=>["good", "man"], "description"=>"Retail"},
212
+ {"code"=>121,
213
+ "groups"=>["corp", "org", "serv"],
214
+ "description"=>"Security and Investigations"},
215
+ {"code"=>7, "groups"=>["tech"], "description"=>"Semiconductors"},
216
+ {"code"=>58, "groups"=>["man"], "description"=>"Shipbuilding"},
217
+ {"code"=>20, "groups"=>["good", "rec"], "description"=>"Sporting Goods"},
218
+ {"code"=>33, "groups"=>["rec"], "description"=>"Sports"},
219
+ {"code"=>104, "groups"=>["corp"], "description"=>"Staffing and Recruiting"},
220
+ {"code"=>22, "groups"=>["good"], "description"=>"Supermarkets"},
221
+ {"code"=>8, "groups"=>["gov", "tech"], "description"=>"Telecommunications"},
222
+ {"code"=>60, "groups"=>["man"], "description"=>"Textiles"},
223
+ {"code"=>130, "groups"=>["gov", "org"], "description"=>"Think Tanks"},
224
+ {"code"=>21, "groups"=>["good"], "description"=>"Tobacco"},
225
+ {"code"=>108,
226
+ "groups"=>["corp", "gov", "serv"],
227
+ "description"=>"Translation and Localization"},
228
+ {"code"=>92,
229
+ "groups"=>["tran"],
230
+ "description"=>"Transportation/Trucking/Railroad"},
231
+ {"code"=>59, "groups"=>["man"], "description"=>"Utilities"},
232
+ {"code"=>106,
233
+ "groups"=>["fin", "tech"],
234
+ "description"=>"Venture Capital & Private Equity"},
235
+ {"code"=>16, "groups"=>["hlth"], "description"=>"Veterinary"},
236
+ {"code"=>93, "groups"=>["tran"], "description"=>"Warehousing"},
237
+ {"code"=>133, "groups"=>["good"], "description"=>"Wholesale"},
238
+ {"code"=>142,
239
+ "groups"=>["good", "man", "rec"],
240
+ "description"=>"Wine and Spirits"},
241
+ {"code"=>119, "groups"=>["tech"], "description"=>"Wireless"},
242
+ {"code"=>103,
243
+ "groups"=>["art", "med", "rec"],
244
+ "description"=>"Writing and Editing"}
245
+ ] # ORIGINAL_LIST
246
+
247
+
248
+ # Use HashWithIndifferentAccess, if the lib is available.
249
+ if defined?(ActiveSupport::HashWithIndifferentAccess)
250
+ def self.recursive_hwia(obj)
251
+ case obj
252
+ when Hash
253
+ obj.inject HashWithIndifferentAccess.new do |res, (k, v)|
254
+ res.tap { res[k] = recursive_hwia(v) }
255
+ end
256
+ when Array
257
+ obj.map{ |i| recursive_hwia(i) }
258
+ else
259
+ obj
260
+ end
261
+ end
262
+
263
+ LIST = recursive_hwia(ORIGINAL_LIST)
264
+
265
+ # Remove our little utility method, it's not used anymore.
266
+ instance_eval { undef :recursive_hwia }
267
+ else
268
+ LIST = ORIGINAL_LIST
269
+ end
270
+ end
@@ -0,0 +1,18 @@
1
+ # encoding: utf-8
2
+ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
3
+ require 'linkedin_industries'
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = 'linkedin_industries'
7
+ s.summary = 'A list of industries used for job entries in LinkedIn profiles.'
8
+ s.description = s.summary
9
+ s.homepage = 'http://github.com/jeffomatic/linkedin_industries_rb'
10
+ s.version = LinkedinIndustries::VERSION
11
+
12
+ s.authors = [ 'Jeff Lee' ]
13
+ s.email = [ 'jeffomatic@gmail.com' ]
14
+
15
+ s.require_paths = ['lib']
16
+ s.files = %w( README.md LICENSE linkedin_industries.gemspec )
17
+ s.files += Dir.glob('lib/**/*')
18
+ end
metadata ADDED
@@ -0,0 +1,50 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: linkedin_industries
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jeff Lee
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2012-07-27 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: A list of industries used for job entries in LinkedIn profiles.
15
+ email:
16
+ - jeffomatic@gmail.com
17
+ executables: []
18
+ extensions: []
19
+ extra_rdoc_files: []
20
+ files:
21
+ - README.md
22
+ - LICENSE
23
+ - linkedin_industries.gemspec
24
+ - lib/linkedin_industries.rb
25
+ homepage: http://github.com/jeffomatic/linkedin_industries_rb
26
+ licenses: []
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ none: false
33
+ requirements:
34
+ - - ! '>='
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ! '>='
41
+ - !ruby/object:Gem::Version
42
+ version: '0'
43
+ requirements: []
44
+ rubyforge_project:
45
+ rubygems_version: 1.8.21
46
+ signing_key:
47
+ specification_version: 3
48
+ summary: A list of industries used for job entries in LinkedIn profiles.
49
+ test_files: []
50
+ has_rdoc: