oui 0.0.1 → 0.0.2

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7463e3796f9ab02ec63573ea6ca8927d38eef923
4
+ data.tar.gz: d7597f11cf943b25bf50b401c2e78d6e69328de2
5
+ SHA512:
6
+ metadata.gz: 4085cd5cd8d38de2fc8ff203b4051d6bccbfc61beaae41767226c324ef14b15da4d9dbcc9a869bf8e11c178074d60ef8744ac7e03710ad9857330b54f7b9b783
7
+ data.tar.gz: 8b85aef2a26df22103fa10392e9a903f0d7017fc0d976f170db3d9c1f362d5cebbde938194a1d53d20226bd3d41cc4a2b1a82d6c9ab0fc7c2d3b4ca04826cb4d
data/.gitignore CHANGED
@@ -3,7 +3,6 @@
3
3
  .bundle
4
4
  .config
5
5
  .yardoc
6
- Gemfile.lock
7
6
  InstalledFiles
8
7
  _yardoc
9
8
  coverage
data/Gemfile CHANGED
@@ -1,4 +1,5 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in oui.gemspec
3
+ ruby '2.0.0'
4
+
4
5
  gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,63 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ oui (0.0.2)
5
+ sinatra
6
+ sinatra-contrib
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ backports (3.6.0)
12
+ coderay (1.1.0)
13
+ diff-lcs (1.2.5)
14
+ method_source (0.8.2)
15
+ multi_json (1.10.1)
16
+ pry (0.9.12.4)
17
+ coderay (~> 1.0)
18
+ method_source (~> 0.8)
19
+ slop (~> 3.4)
20
+ rack (1.5.2)
21
+ rack-protection (1.5.0)
22
+ rack
23
+ rack-test (0.6.2)
24
+ rack (>= 1.0)
25
+ rake (10.3.2)
26
+ rspec (3.0.0)
27
+ rspec-core (~> 3.0.0)
28
+ rspec-expectations (~> 3.0.0)
29
+ rspec-mocks (~> 3.0.0)
30
+ rspec-core (3.0.2)
31
+ rspec-support (~> 3.0.0)
32
+ rspec-expectations (3.0.2)
33
+ diff-lcs (>= 1.2.0, < 2.0)
34
+ rspec-support (~> 3.0.0)
35
+ rspec-mocks (3.0.2)
36
+ rspec-support (~> 3.0.0)
37
+ rspec-support (3.0.2)
38
+ shotgun (0.9)
39
+ rack (>= 1.0)
40
+ sinatra (1.4.2)
41
+ rack (~> 1.5, >= 1.5.2)
42
+ rack-protection (~> 1.4)
43
+ tilt (~> 1.3, >= 1.3.4)
44
+ sinatra-contrib (1.4.2)
45
+ backports (>= 2.0)
46
+ multi_json
47
+ rack-protection
48
+ rack-test
49
+ sinatra (~> 1.4.0)
50
+ tilt (~> 1.3)
51
+ slop (3.4.7)
52
+ tilt (1.4.1)
53
+
54
+ PLATFORMS
55
+ ruby
56
+
57
+ DEPENDENCIES
58
+ bundler (~> 1.3)
59
+ oui!
60
+ pry
61
+ rake
62
+ rspec
63
+ shotgun
data/README.md CHANGED
@@ -22,6 +22,43 @@ Or install it yourself as:
22
22
 
23
23
  $ oui 14:10:9f:ea:22:33
24
24
 
25
+ ### JSON interface
26
+
27
+ Start Sinatra server:
28
+
29
+ $ shotgun
30
+
31
+ Output:
32
+
33
+ ```
34
+ == Shotgun/WEBrick on http://127.0.0.1:9393/
35
+ [2014-07-09 18:14:45] INFO WEBrick 1.3.1
36
+ [2014-07-09 18:14:45] INFO ruby 1.9.3 (2011-10-30) [x86_64-darwin11.2.0]
37
+ [2014-07-09 18:14:45] INFO WEBrick::HTTPServer#start: pid=33706 port=9393
38
+ ```
39
+
40
+ Query with [httpie](http://httpie.org):
41
+
42
+ $ http get http://localhost:9393/lookup\?mac\=14:10:9f:ea:49:11
43
+
44
+ Output:
45
+
46
+ ```
47
+ HTTP/1.1 200 OK
48
+ Connection: Keep-Alive
49
+ Content-Length: 74
50
+ Content-Type: application/json;charset=utf-8
51
+ Date: Wed, 09 Jul 2014 10:16:01 GMT
52
+ Server: WEBrick/1.3.1 (Ruby/1.9.3/2011-10-30)
53
+ X-Content-Type-Options: nosniff
54
+
55
+ {
56
+ "chinese_name": "苹果",
57
+ "mac": "14:10:9f:ea:49:11",
58
+ "manufacturer": "Apple"
59
+ }
60
+ ```
61
+
25
62
  ## Contributing
26
63
 
27
64
  1. Fork it
data/Rakefile CHANGED
@@ -2,8 +2,8 @@ require "bundler/gem_tasks"
2
2
 
3
3
  require 'rake'
4
4
 
5
- require 'rspec/core/rake_task'
6
-
7
- RSpec::Core::RakeTask.new(:spec)
8
-
9
- task :default => :spec
5
+ # require 'rspec/core/rake_task'
6
+ #
7
+ # RSpec::Core::RakeTask.new(:spec)
8
+ #
9
+ # task :default => :spec
data/config.ru ADDED
@@ -0,0 +1,5 @@
1
+ # config.ru (run with `rackup` or `shotgun`)
2
+ require "oui"
3
+ require 'oui/server'
4
+
5
+ run OUI::Server
@@ -13,102 +13,100 @@ Hon Hai Precision Ind. Co.,Ltd.: Hon Hai Precision Ind. Co.,Ltd.
13
13
  Hewlett-Packard Company: 惠普
14
14
  Huawei Technologies Co., Ltd: 华为
15
15
  Nintendo Co., Ltd.: 任天堂
16
- HUAWEI TECHNOLOGIES CO.,LTD: HUAWEI TECHNOLOGIES CO.,LTD
17
- Dell Inc: Dell Inc
18
- Samsung Electronics: Samsung Electronics
19
- Hewlett Packard: Hewlett Packard
16
+ HUAWEI TECHNOLOGIES CO.,LTD: 华为
17
+ Dell Inc: 戴尔
18
+ Samsung Electronics: 三星
19
+ Hewlett Packard: 惠普
20
20
  Nortel Networks: Nortel Networks
21
- zte corporation: zte corporation
22
- ASUSTek COMPUTER INC.: ASUSTek COMPUTER INC.
21
+ zte corporation: 中兴
22
+ ASUSTek COMPUTER INC.: 华硕
23
23
  Juniper Networks: Juniper Networks
24
- Cisco SPVTG: Cisco SPVTG
24
+ Cisco SPVTG: 思科
25
25
  Avaya, Inc: Avaya, Inc
26
- TP-LINK TECHNOLOGIES CO.,LTD.: TP-LINK TECHNOLOGIES CO.,LTD.
26
+ TP-LINK TECHNOLOGIES CO.,LTD.: TP-LINK
27
27
  Nortel: Nortel
28
- LG Electronics: LG Electronics
28
+ LG Electronics: LG
29
29
  Ruckus Wireless: Ruckus Wireless
30
30
  Liteon Technology Corporation: Liteon Technology Corporation
31
- TP-LINK TECHNOLOGIES CO., LTD.: TP-LINK TECHNOLOGIES CO., LTD.
32
- Alcatel-Lucent: Alcatel-Lucent
33
- IBM Corp: IBM Corp
34
- Sony Ericsson Mobile Communications AB: Sony Ericsson Mobile Communications AB
35
- D-Link International: D-Link International
36
- HTC Corporation: HTC Corporation
31
+ TP-LINK TECHNOLOGIES CO., LTD.: TP-LINK
32
+ Alcatel-Lucent: 阿尔卡特朗讯
33
+ IBM Corp: IBM
34
+ Sony Ericsson Mobile Communications AB: 索尼爱立信
35
+ D-Link International: D-Link
36
+ HTC Corporation: HTC
37
37
  ADB Broadband Italia: ADB Broadband Italia
38
- D-Link Corporation: D-Link Corporation
39
- Cisco-Linksys, LLC: Cisco-Linksys, LLC
38
+ D-Link Corporation: D-Link
39
+ Cisco-Linksys, LLC: Cisco-Linksys
40
40
  UNGERMANN-BASS INC.: UNGERMANN-BASS INC.
41
41
  Actiontec Electronics, Inc: Actiontec Electronics, Inc
42
- Sony Mobile Communications AB: Sony Mobile Communications AB
42
+ Sony Mobile Communications AB: 索尼
43
43
  Brocade Communications Systems, Inc.: Brocade Communications Systems, Inc.
44
- Shenzhen Huawei Communication Technologies Co., Ltd: Shenzhen Huawei Communication
45
- Technologies Co., Ltd
44
+ Shenzhen Huawei Communication Technologies Co., Ltd: 华为
46
45
  2Wire: 2Wire
47
46
  SAGEMCOM: SAGEMCOM
48
- Sony Corporation: Sony Corporation
47
+ Sony Corporation: 索尼
49
48
  Hon Hai Precision Ind. Co., Ltd.: Hon Hai Precision Ind. Co., Ltd.
50
- Dell Inc.: Dell Inc.
49
+ Dell Inc.: 戴尔
51
50
  RIM: RIM
52
- NETGEAR INC.,: NETGEAR INC.,
53
- Samsung Electronics Co.,LTD: Samsung Electronics Co.,LTD
51
+ NETGEAR INC.,: 网件
52
+ Samsung Electronics Co.,LTD: 三星
54
53
  Pace plc: Pace plc
55
- Lenovo Mobile Communication Technology Ltd.: Lenovo Mobile Communication Technology
56
- Ltd.
57
- Oracle Corporation: Oracle Corporation
54
+ Lenovo Mobile Communication Technology Ltd.: 联想
55
+ Oracle Corporation: 甲骨文
58
56
  Arcadyan Technology Corporation: Arcadyan Technology Corporation
59
57
  Murata Manufacturing Co., Ltd.: Murata Manufacturing Co., Ltd.
60
- 3COM CORPORATION: 3COM CORPORATION
58
+ 3COM CORPORATION: 3COM
61
59
  AVM GmbH: AVM GmbH
62
60
  NETGEAR: NETGEAR
63
- Apple, Inc: Apple, Inc
64
- Microsoft Corporation: Microsoft Corporation
65
- Motorola Mobility LLC: Motorola Mobility LLC
66
- ZTE Corporation: ZTE Corporation
61
+ Apple, Inc: 苹果
62
+ Microsoft Corporation: 微软
63
+ Motorola Mobility LLC: 摩托罗拉
64
+ ZTE Corporation: 中兴
67
65
  IEEE REGISTRATION AUTHORITY - Please see MAM public listing for more information.: IEEE
68
66
  REGISTRATION AUTHORITY - Please see MAM public listing for more information.
69
- GIGA-BYTE TECHNOLOGY CO.,LTD.: GIGA-BYTE TECHNOLOGY CO.,LTD.
67
+ GIGA-BYTE TECHNOLOGY CO.,LTD.: 技嘉
70
68
  Fiberhome Telecommunication Tech.Co.,Ltd.: Fiberhome Telecommunication Tech.Co.,Ltd.
71
- Sony Ericsson Mobile Communications: Sony Ericsson Mobile Communications
72
- XEROX CORPORATION: XEROX CORPORATION
73
- Buffalo Inc.: Buffalo Inc.
74
- Fujitsu Limited: Fujitsu Limited
75
- Intel Corporation: Intel Corporation
69
+ Sony Ericsson Mobile Communications: 索尼爱立信
70
+ XEROX CORPORATION: 施乐
71
+ Buffalo Inc.: Buffalo
72
+ Fujitsu Limited: Fujitsu
73
+ Intel Corporation: 因特尔
76
74
  ZyXEL Communications Corporation: ZyXEL Communications Corporation
77
75
  Tattile SRL: Tattile SRL
78
76
  PEGATRON CORPORATION: PEGATRON CORPORATION
79
- 3Com Ltd: 3Com Ltd
77
+ 3Com Ltd: 3Com
80
78
  SAGEM COMMUNICATION: SAGEM COMMUNICATION
81
79
  Universal Global Scientific Industrial Co., Ltd.: Universal Global Scientific Industrial
82
80
  Co., Ltd.
83
- Alcatel Lucent: Alcatel Lucent
81
+ Alcatel Lucent: 阿尔卡特朗讯
84
82
  SAGEMCOM SAS: SAGEMCOM SAS
85
83
  TCT Mobile Limited: TCT Mobile Limited
86
84
  ARRIS International: ARRIS International
87
85
  COMPAL INFORMATION (KUNSHAN) CO., LTD.: COMPAL INFORMATION (KUNSHAN) CO., LTD.
88
- Research In Motion: Research In Motion
86
+ Research In Motion: RIM
89
87
  Thomson Telecom Belgium: Thomson Telecom Belgium
90
88
  DIGITAL EQUIPMENT CORPORATION: DIGITAL EQUIPMENT CORPORATION
91
89
  Toshiba: Toshiba
92
90
  ProCurve Networking by HP: ProCurve Networking by HP
93
- Sony Computer Entertainment Inc.: Sony Computer Entertainment Inc.
91
+ Sony Computer Entertainment Inc.: 索尼
94
92
  Artesyn Embedded Technologies: Artesyn Embedded Technologies
95
- Hangzhou H3C Technologies Co., Limited: Hangzhou H3C Technologies Co., Limited
93
+ Hangzhou H3C Technologies Co., Limited: H3C
96
94
  Technicolor USA Inc.: Technicolor USA Inc.
97
- Samsung Electronics Co., Ltd.: Samsung Electronics Co., Ltd.
95
+ Samsung Electronics Co., Ltd.: 三星
98
96
  Aruba Networks: Aruba Networks
99
- Apple, Inc.: Apple, Inc.
100
- Seagate Technology: Seagate Technology
101
- SHARP Corporation: SHARP Corporation
102
- CANON INC.: CANON INC.
97
+ Apple, Inc.: 苹果
98
+ Seagate Technology: 希捷
99
+ SHARP Corporation: 夏普
100
+ CANON INC.: 佳能
103
101
  Thomson Inc.: Thomson Inc.
104
102
  Gemtek Technology Co., Ltd.: Gemtek Technology Co., Ltd.
105
- Samsung Electro Mechanics co., LTD.: Samsung Electro Mechanics co., LTD.
103
+ Samsung Electro Mechanics co., LTD.: 三星
106
104
  Murata Manufactuaring Co.,Ltd.: Murata Manufactuaring Co.,Ltd.
107
105
  Juniper networks: Juniper networks
108
- Samsung Electronics Co., LTD: Samsung Electronics Co., LTD
106
+ Samsung Electronics Co., LTD: 三星
109
107
  NEC AccessTechnica, Ltd.: NEC AccessTechnica, Ltd.
110
108
  Hitron Technologies. Inc: Hitron Technologies. Inc
111
- Samsung Electronics CO., LTD: Samsung Electronics CO., LTD
109
+ Samsung Electronics CO., LTD: 三星
112
110
  AcSiP Technology Corp.: AcSiP Technology Corp.
113
111
  Alcatel-Lucent Shanghai Bell Co., Ltd: Alcatel-Lucent Shanghai Bell Co., Ltd
114
112
  ALPS Co,. Ltd.: ALPS Co,. Ltd.
@@ -121,54 +119,53 @@ Azurewave Technologies, Inc.: Azurewave Technologies, Inc.
121
119
  Telco Systems, Inc.: Telco Systems, Inc.
122
120
  Alps Electric Co., Ltd: Alps Electric Co., Ltd
123
121
  Wistron Neweb Corp.: Wistron Neweb Corp.
124
- Samsung Electro Mechanics co.,LTD.: Samsung Electro Mechanics co.,LTD.
125
- Belkin International Inc.: Belkin International Inc.
126
- LG Electronics Inc: LG Electronics Inc
122
+ Samsung Electro Mechanics co.,LTD.: 三星
123
+ Belkin International Inc.: 贝尔金
124
+ LG Electronics Inc: LG
127
125
  SFR: SFR
128
126
  Brocade Communications Systems, Inc: Brocade Communications Systems, Inc
129
- Ericsson AB: Ericsson AB
127
+ Ericsson AB: 爱立信
130
128
  ! '':
131
- Netgear Inc.: Netgear Inc.
129
+ Netgear Inc.: 网件
132
130
  SEIKO EPSON CORPORATION: SEIKO EPSON CORPORATION
133
131
  Ericsson: Ericsson
134
132
  HPN Supply Chain: HPN Supply Chain
135
- EMC Corporation: EMC Corporation
133
+ EMC Corporation: EMC
136
134
  Alpha Networks Inc.: Alpha Networks Inc.
137
135
  Wistron Corporation: Wistron Corporation
138
136
  Verilink Corporation: Verilink Corporation
139
- INTEL CORPORATION: INTEL CORPORATION
137
+ INTEL CORPORATION: 因特尔
140
138
  2Wire, Inc: 2Wire, Inc
141
139
  ASUSTEK COMPUTER INC.: ASUSTEK COMPUTER INC.
142
140
  Harmonic, Inc: Harmonic, Inc
143
- TP-LINK Technologies Co.,Ltd.: TP-LINK Technologies Co.,Ltd.
144
- Microsoft: Microsoft
145
- Motorola: Motorola
146
- Broadcom Corporation: Broadcom Corporation
141
+ TP-LINK Technologies Co.,Ltd.: TP-LINK
142
+ Microsoft: 微软
143
+ Motorola: 摩托罗拉
144
+ Broadcom Corporation: 博通
147
145
  Cambridge Industries(Group) Co.,Ltd.: Cambridge Industries(Group) Co.,Ltd.
148
146
  Technicolor: Technicolor
149
147
  Juniper Networks, Inc.: Juniper Networks, Inc.
150
- NEC Corporation: NEC Corporation
151
- Xiaomi inc.: Xiaomi inc.
152
- LG ELECTRONICS INC: LG ELECTRONICS INC
148
+ NEC Corporation: NEC
149
+ Xiaomi inc.: 小米
150
+ LG ELECTRONICS INC: LG
153
151
  Pirelli Tyre S.p.A.: Pirelli Tyre S.p.A.
154
152
  Aerohive Networks Inc.: Aerohive Networks Inc.
155
153
  IBM: IBM
156
154
  Elitegroup Computer System Co. (ECS): Elitegroup Computer System Co. (ECS)
157
155
  Rockwell Automation: Rockwell Automation
158
156
  LGE: LGE
159
- GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP.,LTD.: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS
160
- CORP.,LTD.
157
+ GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP.,LTD.: OPPO
161
158
  Askey Computer: Askey Computer
162
- Motorola Solutions Inc.: Motorola Solutions Inc.
163
- MICRO-STAR INTERNATIONAL CO., LTD.: MICRO-STAR INTERNATIONAL CO., LTD.
164
- SAMSUNG ELECTRONICS CO., LTD.: SAMSUNG ELECTRONICS CO., LTD.
159
+ Motorola Solutions Inc.: 摩托罗拉
160
+ MICRO-STAR INTERNATIONAL CO., LTD.: 微星
161
+ SAMSUNG ELECTRONICS CO., LTD.: 三星
165
162
  ELITEGROUP COMPUTER SYSTEM CO., LTD.: ELITEGROUP COMPUTER SYSTEM CO., LTD.
166
163
  ASKEY COMPUTER CORP: ASKEY COMPUTER CORP
167
164
  Shenzhen Coship Electronics Co., Ltd.: Shenzhen Coship Electronics Co., Ltd.
168
165
  BSkyB Ltd: BSkyB Ltd
169
- Samsung Electro Mechanics: Samsung Electro Mechanics
166
+ Samsung Electro Mechanics: 三星
170
167
  QLogic Corporation: QLogic Corporation
171
- Samsung Eletronics Co., Ltd: Samsung Eletronics Co., Ltd
168
+ Samsung Eletronics Co., Ltd: 三星
172
169
  Madge Ltd.: Madge Ltd.
173
170
  Ubiquiti Networks: Ubiquiti Networks
174
171
  Teracom Limited: Teracom Limited
@@ -176,36 +173,36 @@ AzureWave Technologies, Inc: AzureWave Technologies, Inc
176
173
  IEEE 1904.1 Working Group: IEEE 1904.1 Working Group
177
174
  ASRock Incorporation: ASRock Incorporation
178
175
  LUCENT TECHNOLOGIES: LUCENT TECHNOLOGIES
179
- SAMSUNG ELECTRO-MECHANICS CO., LTD.: SAMSUNG ELECTRO-MECHANICS CO., LTD.
176
+ SAMSUNG ELECTRO-MECHANICS CO., LTD.: 三星
180
177
  GN Netcom as: GN Netcom as
181
- Sichuan Changhong Electric Ltd.: Sichuan Changhong Electric Ltd.
182
- SONY Computer Entertainment inc,: SONY Computer Entertainment inc,
183
- Cisco Systems: Cisco Systems
178
+ Sichuan Changhong Electric Ltd.: 长虹
179
+ SONY Computer Entertainment inc,: 索尼
180
+ Cisco Systems: 思科
184
181
  Chicony Electronics Co., Ltd.: Chicony Electronics Co., Ltd.
185
182
  PLANEX COMMUNICATIONS INC.: PLANEX COMMUNICATIONS INC.
186
183
  Cisco-Linksys LLC: Cisco-Linksys LLC
187
184
  RACAL-DATACOM: RACAL-DATACOM
188
185
  EFM Networks: EFM Networks
189
186
  Shanghai Feixun Communication Co.,Ltd.: Shanghai Feixun Communication Co.,Ltd.
190
- 3Com Corporation: 3Com Corporation
191
- Dell Computer Corp.: Dell Computer Corp.
187
+ 3Com Corporation: 3Com
188
+ Dell Computer Corp.: 戴尔
192
189
  GN Netcom A/S: GN Netcom A/S
193
190
  Alcatel-Lucent-IPD: Alcatel-Lucent-IPD
194
191
  Wistron InfoComm(Kunshan)Co.,Ltd.: Wistron InfoComm(Kunshan)Co.,Ltd.
195
- Texas Instruments Inc: Texas Instruments Inc
192
+ Texas Instruments Inc: 德州仪器
196
193
  Check Point Software Technologies: Check Point Software Technologies
197
194
  Shenzhen Zowee Technology Co., Ltd: Shenzhen Zowee Technology Co., Ltd
198
195
  Google: Google
199
- VMware, Inc.: VMware, Inc.
200
- 3COM EUROPE LTD.: 3COM EUROPE LTD.
201
- SAMSUNG ELECTRO-MECHANICS: SAMSUNG ELECTRO-MECHANICS
196
+ VMware, Inc.: VMware
197
+ 3COM EUROPE LTD.: 3COM
198
+ SAMSUNG ELECTRO-MECHANICS: 三星
202
199
  ASKEY COMPUTER CORP.: ASKEY COMPUTER CORP.
203
- Alcatel-Lucent, Enterprise Business Group: Alcatel-Lucent, Enterprise Business Group
200
+ Alcatel-Lucent, Enterprise Business Group: 阿尔卡特朗讯
204
201
  Enterasys: Enterasys
205
202
  Scientific Atlanta: Scientific Atlanta
206
203
  Panasonic AVC Networks Company: Panasonic AVC Networks Company
207
204
  BBK Electronics Corp., Ltd.,: BBK Electronics Corp., Ltd.,
208
- SHARP CORPORATION: SHARP CORPORATION
205
+ SHARP CORPORATION: 夏普
209
206
  SMC Networks Inc: SMC Networks Inc
210
207
  SMC Networks, Inc.: SMC Networks, Inc.
211
208
  Scientific Atlanta, A Cisco Company: Scientific Atlanta, A Cisco Company
@@ -213,45 +210,45 @@ devolo AG: devolo AG
213
210
  PLANTRONICS, INC.: PLANTRONICS, INC.
214
211
  BAY NETWORKS: BAY NETWORKS
215
212
  MRV Communications (Networks) LTD: MRV Communications (Networks) LTD
216
- Research In Motion Limited: Research In Motion Limited
213
+ Research In Motion Limited: RIM
217
214
  KONICA MINOLTA HOLDINGS, INC.: KONICA MINOLTA HOLDINGS, INC.
218
215
  Sycamore Networks: Sycamore Networks
219
216
  Azurewave: Azurewave
220
217
  Marconi Communications: Marconi Communications
221
- TP-LINK Technologies Co., Ltd.: TP-LINK Technologies Co., Ltd.
218
+ TP-LINK Technologies Co., Ltd.: TP-LINK
222
219
  F5 Networks, Inc.: F5 Networks, Inc.
223
220
  Askey Computer Corp: Askey Computer Corp
224
221
  ADVA Optical Networking Ltd.: ADVA Optical Networking Ltd.
225
222
  Palo Alto Networks: Palo Alto Networks
226
223
  Edimax Technology Co. Ltd.: Edimax Technology Co. Ltd.
227
- 3COM EUROPE LTD: 3COM EUROPE LTD
224
+ 3COM EUROPE LTD: 3COM
228
225
  Pantech Co., Ltd.: Pantech Co., Ltd.
229
226
  TECOM Co., Ltd.: TECOM Co., Ltd.
230
227
  Qisda Corporation: Qisda Corporation
231
- Alcatel Lucent IPD: Alcatel Lucent IPD
228
+ Alcatel Lucent IPD: 阿尔卡特朗讯
232
229
  Hon Hai Precision Ind.Co.,Ltd.: Hon Hai Precision Ind.Co.,Ltd.
233
- KYOCERA Corporation: KYOCERA Corporation
230
+ KYOCERA Corporation: 京瓷
234
231
  Cisco-Linksys: Cisco-Linksys
235
232
  FUJITSU LIMITED: FUJITSU LIMITED
236
233
  ZyXEL Communications Corp: ZyXEL Communications Corp
237
- Panasonic Corporation AVC Networks Company: Panasonic Corporation AVC Networks Company
234
+ Panasonic Corporation AVC Networks Company: 松下
238
235
  Routerboard.com: Routerboard.com
239
236
  GoPro: GoPro
240
237
  COMPAL INFORMATION (KUNSHAN) CO., LTD: COMPAL INFORMATION (KUNSHAN) CO., LTD
241
- TP-LINK TECHNOLOGIES CO.,LTD: TP-LINK TECHNOLOGIES CO.,LTD
238
+ TP-LINK TECHNOLOGIES CO.,LTD: TP-LINK
242
239
  2Wire, Inc.: 2Wire, Inc.
243
240
  Harman/Becker Automotive Systems GmbH: Harman/Becker Automotive Systems GmbH
244
241
  COMTREND CO.: COMTREND CO.
245
242
  AirTies Wireless Networks: AirTies Wireless Networks
246
- Alcatel-Lucent IPD: Alcatel-Lucent IPD
243
+ Alcatel-Lucent IPD: 阿尔卡特朗讯
247
244
  PERQ SYSTEMS CORPORATION: PERQ SYSTEMS CORPORATION
248
245
  Castlenet Technology Inc.: Castlenet Technology Inc.
249
246
  Allied Telesis: Allied Telesis
250
247
  SHENZHEN BUL-TECH CO.,LTD.: SHENZHEN BUL-TECH CO.,LTD.
251
- MICRO-STAR INT'L CO.,LTD.: MICRO-STAR INT'L CO.,LTD.
248
+ MICRO-STAR INT'L CO.,LTD.: 微星
252
249
  DrayTek Corp.: DrayTek Corp.
253
250
  BROTHER INDUSTRIES, LTD.: BROTHER INDUSTRIES, LTD.
254
- SanDisk Corporation: SanDisk Corporation
251
+ SanDisk Corporation: SanDisk
255
252
  Inventec Corporation: Inventec Corporation
256
253
  Hon Hai Precision Ind.Co., Ltd.: Hon Hai Precision Ind.Co., Ltd.
257
254
  MCS Logic Inc.: MCS Logic Inc.
@@ -262,7 +259,7 @@ FUJIAN STAR-NET COMMUNICATION CO.,LTD: FUJIAN STAR-NET COMMUNICATION CO.,LTD
262
259
  Skyworth Digital technology(shenzhen)co.ltd.: Skyworth Digital technology(shenzhen)co.ltd.
263
260
  Sanmina-SCI: Sanmina-SCI
264
261
  Konka Group Co., Ltd.: Konka Group Co., Ltd.
265
- Google Inc.: Google Inc.
262
+ Google Inc.: Google
266
263
  ShenZhen Gongjin Electronics Co.,Ltd: ShenZhen Gongjin Electronics Co.,Ltd
267
264
  UNIONMAN TECHNOLOGY CO.,LTD: UNIONMAN TECHNOLOGY CO.,LTD
268
265
  ION Networks, Inc.: ION Networks, Inc.
@@ -270,7 +267,7 @@ MEMOTEC, INC.: MEMOTEC, INC.
270
267
  LARSCOM INCORPORATED: LARSCOM INCORPORATED
271
268
  Alcatel North America ESD: Alcatel North America ESD
272
269
  ADTRAN INC.: ADTRAN INC.
273
- Panasonic Mobile Communications Co., Ltd.: Panasonic Mobile Communications Co., Ltd.
270
+ Panasonic Mobile Communications Co., Ltd.: 松下
274
271
  GemTek Technology Co., Ltd.: GemTek Technology Co., Ltd.
275
272
  Hon Hai Precision Ind. Co., Ltd: Hon Hai Precision Ind. Co., Ltd
276
273
  Aerohive Networks, Inc.: Aerohive Networks, Inc.
@@ -278,10 +275,10 @@ AboCom Systems, Inc.: AboCom Systems, Inc.
278
275
  Gigaset Communications GmbH: Gigaset Communications GmbH
279
276
  Elitegroup Computer System Co.: Elitegroup Computer System Co.
280
277
  Fon Technology S.L.: Fon Technology S.L.
281
- Huawei Technologies Co., Ltd.: Huawei Technologies Co., Ltd.
282
- RIM Testing Services: RIM Testing Services
278
+ Huawei Technologies Co., Ltd.: 华为
279
+ RIM Testing Services: RIM
283
280
  Meraki, Inc.: Meraki, Inc.
284
- Samsung Electro-Mechanics: Samsung Electro-Mechanics
281
+ Samsung Electro-Mechanics: 三星
285
282
  ALPS Electric Co., Ltd: ALPS Electric Co., Ltd
286
283
  SeaMicro Inc.: SeaMicro Inc.
287
284
  Universal Global Scientific Industrial Co., Ltd: Universal Global Scientific Industrial
@@ -289,16 +286,15 @@ Universal Global Scientific Industrial Co., Ltd: Universal Global Scientific Ind
289
286
  SBE, INC.: SBE, INC.
290
287
  ECI Telecom Ltd.: ECI Telecom Ltd.
291
288
  Elitegroup Computer Systems Co., Ltd.: Elitegroup Computer Systems Co., Ltd.
292
- Cisco, Service Provider Video Technology Group: Cisco, Service Provider Video Technology
293
- Group
289
+ Cisco, Service Provider Video Technology Group: 思科
294
290
  Flextronics International: Flextronics International
295
291
  HAYES MICROCOMPUTER PRODUCTS: HAYES MICROCOMPUTER PRODUCTS
296
292
  MITAC INTERNATIONAL CORP.: MITAC INTERNATIONAL CORP.
297
293
  Extreme Networks: Extreme Networks
298
294
  Yulong Computer Telecommunication Scientific(shenzhen)Co.,Lt: Yulong Computer Telecommunication
299
295
  Scientific(shenzhen)Co.,Lt
300
- 3Com Europe Ltd: 3Com Europe Ltd
301
- ZTE CORPORATION: ZTE CORPORATION
296
+ 3Com Europe Ltd: 3Com
297
+ ZTE CORPORATION: 中兴
302
298
  iWDL Technologies: iWDL Technologies
303
299
  METEL s.r.o.: METEL s.r.o.
304
300
  CyberTAN Technology, Inc.: CyberTAN Technology, Inc.
@@ -306,11 +302,11 @@ Ciena Corporation: Ciena Corporation
306
302
  XAVi Technologies Corp.: XAVi Technologies Corp.
307
303
  AzureWave Technologies (Shanghai) Inc.: AzureWave Technologies (Shanghai) Inc.
308
304
  Elentec: Elentec
309
- Vodafone Omnitel N.V.: Vodafone Omnitel N.V.
305
+ Vodafone Omnitel N.V.: 沃达丰
310
306
  Fortress Technologies: Fortress Technologies
311
307
  Eastern Asia Technology Limited: Eastern Asia Technology Limited
312
- Netgear: Netgear
313
- Kyocera Wireless Corp.: Kyocera Wireless Corp.
308
+ Netgear: 网件
309
+ Kyocera Wireless Corp.: 京瓷
314
310
  Broadband Solutions Group: Broadband Solutions Group
315
311
  FREEBOX SA: FREEBOX SA
316
312
  Super Micro Computer, Inc.: Super Micro Computer, Inc.
@@ -318,20 +314,20 @@ DAEHAP HYPER-TECH: DAEHAP HYPER-TECH
318
314
  Zhone Technologies: Zhone Technologies
319
315
  TomTom: TomTom
320
316
  PLANET Technology Corporation: PLANET Technology Corporation
321
- HEWLETT PACKARD: HEWLETT PACKARD
317
+ HEWLETT PACKARD: HP
322
318
  Tellabs: Tellabs
323
319
  Eaton Corporation: Eaton Corporation
324
320
  BaudTec Corporation: BaudTec Corporation
325
321
  NETCOMM LIMITED: NETCOMM LIMITED
326
322
  Applied Innovation Inc.: Applied Innovation Inc.
327
- Panasonic Electric Works Co., Ltd.: Panasonic Electric Works Co., Ltd.
323
+ Panasonic Electric Works Co., Ltd.: 松下
328
324
  LOGIC REPLACEMENT TECH. LTD.: LOGIC REPLACEMENT TECH. LTD.
329
325
  M/A-COM INC. COMPANIES: M/A-COM INC. COMPANIES
330
326
  Tinno Mobile Technology Corp: Tinno Mobile Technology Corp
331
327
  EAGLE TECHNOLOGY, INC.: EAGLE TECHNOLOGY, INC.
332
328
  MICROTEK INTERNATIONAL, INC.: MICROTEK INTERNATIONAL, INC.
333
- Panasonic Communications Co., Ltd.: Panasonic Communications Co., Ltd.
334
- GE Energy: GE Energy
329
+ Panasonic Communications Co., Ltd.: 松下
330
+ GE Energy: 通用电器
335
331
  LG INFORMATION & COMM.: LG INFORMATION & COMM.
336
332
  DOT HILL SYSTEMS CORPORATION: DOT HILL SYSTEMS CORPORATION
337
333
  CLEVO CO.: CLEVO CO.
@@ -339,8 +335,8 @@ I-O DATA DEVICE, INC.: I-O DATA DEVICE, INC.
339
335
  OCTOTHORPE CORP.: OCTOTHORPE CORP.
340
336
  ASCEND COMMUNICATIONS, INC.: ASCEND COMMUNICATIONS, INC.
341
337
  COMMUNICATION MACHINERY CORP.: COMMUNICATION MACHINERY CORP.
342
- Belkin Corporation: Belkin Corporation
343
- ASUSTek Computer Inc.: ASUSTek Computer Inc.
338
+ Belkin Corporation: 贝尔金
339
+ ASUSTek Computer Inc.: 华硕
344
340
  Sunplus Technology Co., Ltd.: Sunplus Technology Co., Ltd.
345
341
  ADVANTECH CO., LTD.: ADVANTECH CO., LTD.
346
342
  XIRCOM: XIRCOM
@@ -354,42 +350,42 @@ FOXCONN: FOXCONN
354
350
  Bosch Access Systems GmbH: Bosch Access Systems GmbH
355
351
  G-PRO COMPUTER: G-PRO COMPUTER
356
352
  Pantech Co.,Ltd: Pantech Co.,Ltd
357
- Hangzhou H3C Technologies Co., Ltd.: Hangzhou H3C Technologies Co., Ltd.
353
+ Hangzhou H3C Technologies Co., Ltd.: H3C
358
354
  Westell Technologies: Westell Technologies
359
355
  AMPAK Technology Inc.: AMPAK Technology Inc.
360
- Nokia Siemens Networks GmbH & Co. KG.: Nokia Siemens Networks GmbH & Co. KG.
356
+ Nokia Siemens Networks GmbH & Co. KG.: 诺基亚西门子
361
357
  NATIONAL SEMICONDUCTOR: NATIONAL SEMICONDUCTOR
362
358
  NETWORK RESEARCH CORPORATION: NETWORK RESEARCH CORPORATION
363
359
  ATT BELL LABORATORIES: ATT BELL LABORATORIES
364
360
  Genexis BV: Genexis BV
365
- Panasonic Europe Ltd.: Panasonic Europe Ltd.
361
+ Panasonic Europe Ltd.: 松下
366
362
  Kasda Digital Technology Co.,Ltd: Kasda Digital Technology Co.,Ltd
367
363
  BOE TECHNOLOGY GROUP CO.,LTD: BOE TECHNOLOGY GROUP CO.,LTD
368
364
  HME Clear-Com LTD.: HME Clear-Com LTD.
369
365
  QUANTA COMPUTER INC.: QUANTA COMPUTER INC.
370
- Sonos, Inc.: Sonos, Inc.
371
- NEC CASIO Mobile Communications: NEC CASIO Mobile Communications
366
+ Sonos, Inc.: Sonos
367
+ NEC CASIO Mobile Communications: NEC CASIO
372
368
  Mitsubishi Electric Corporation: Mitsubishi Electric Corporation
373
- Symantec Corporation: Symantec Corporation
369
+ Symantec Corporation: 赛门铁克
374
370
  Murata Manufacturing Co.,Ltd.: Murata Manufacturing Co.,Ltd.
375
371
  JABIL CIRCUIT (SHANGHAI) LTD.: JABIL CIRCUIT (SHANGHAI) LTD.
376
372
  Yokogawa Electric Corporation: Yokogawa Electric Corporation
377
373
  Mita-Teknik A/S: Mita-Teknik A/S
378
- Alibaba Cloud Computing Ltd.: Alibaba Cloud Computing Ltd.
374
+ Alibaba Cloud Computing Ltd.: 阿里云
379
375
  Sitecom Europe BV: Sitecom Europe BV
380
376
  ABB STOTZ-KONTAKT GmbH: ABB STOTZ-KONTAKT GmbH
381
- Bose Corporation: Bose Corporation
377
+ Bose Corporation: Bose
382
378
  SHENZHEN CHUANGWEI-RGB ELECTRONICS CO.,LT: SHENZHEN CHUANGWEI-RGB ELECTRONICS CO.,LT
383
- D-LINK INTERNATIONAL PTE LIMITED: D-LINK INTERNATIONAL PTE LIMITED
379
+ D-LINK INTERNATIONAL PTE LIMITED: D-LINK
384
380
  Fujian Star-net Communication Co., Ltd: Fujian Star-net Communication Co., Ltd
385
- Texas Instruments, Inc: Texas Instruments, Inc
386
- Logitec Corporation: Logitec Corporation
381
+ Texas Instruments, Inc: 德州仪器
382
+ Logitec Corporation: 罗技
387
383
  HDMI Licensing, LLC: HDMI Licensing, LLC
388
384
  Nanjing SAC Power Grid Automation Co., Ltd.: Nanjing SAC Power Grid Automation Co.,
389
385
  Ltd.
390
386
  Metalligence Technology Corp.: Metalligence Technology Corp.
391
387
  Sumitomo Electric Networks, Inc: Sumitomo Electric Networks, Inc
392
- Qingdao Hisense Communications Co.,Ltd: Qingdao Hisense Communications Co.,Ltd
388
+ Qingdao Hisense Communications Co.,Ltd: 海信
393
389
  Ragentek Technology Group: Ragentek Technology Group
394
390
  SHANGHAI SUNMON COMMUNICATION TECHNOGY CO.,LTD: SHANGHAI SUNMON COMMUNICATION TECHNOGY
395
391
  CO.,LTD
@@ -406,7 +402,7 @@ COMTREND: COMTREND
406
402
  Johnson Controls-ASG: Johnson Controls-ASG
407
403
  ALPS ELECTRIC CO.,LTD.: ALPS ELECTRIC CO.,LTD.
408
404
  Arris Group, Inc.: Arris Group, Inc.
409
- Samsung electronics CO., LTD: Samsung electronics CO., LTD
405
+ Samsung electronics CO., LTD: 三星
410
406
  Aisino Corporation: Aisino Corporation
411
407
  Digital Safety Technologies, Inc: Digital Safety Technologies, Inc
412
408
  Allied Telesis K.K.: Allied Telesis K.K.
@@ -417,8 +413,7 @@ UTC CCS: UTC CCS
417
413
  Voltaire: Voltaire
418
414
  Shenzhen Bilian electronic CO.,LTD: Shenzhen Bilian electronic CO.,LTD
419
415
  Echostar Technologies Corp: Echostar Technologies Corp
420
- TCL Technoly Electronics (Huizhou) Co., Ltd.: TCL Technoly Electronics (Huizhou) Co.,
421
- Ltd.
416
+ TCL Technoly Electronics (Huizhou) Co., Ltd.: TCL
422
417
  Application Solutions (Electronics and Vision) Ltd: Application Solutions (Electronics
423
418
  and Vision) Ltd
424
419
  Masimo Corporation: Masimo Corporation
@@ -429,7 +424,7 @@ Aurora Networks: Aurora Networks
429
424
  2Wire Inc: 2Wire Inc
430
425
  Westermo Teleindustri AB: Westermo Teleindustri AB
431
426
  Ubiquoss Inc: Ubiquoss Inc
432
- Logitech Europe SA: Logitech Europe SA
427
+ Logitech Europe SA: 罗技
433
428
  Zebra Technologies Corp.: Zebra Technologies Corp.
434
429
  Pluribus Networks, Inc.: Pluribus Networks, Inc.
435
430
  Telecom Design: Telecom Design
@@ -469,11 +464,11 @@ FN-LINK TECHNOLOGY LIMITED: FN-LINK TECHNOLOGY LIMITED
469
464
  Wei Fang Goertek Electronics Co.,Ltd: Wei Fang Goertek Electronics Co.,Ltd
470
465
  Radware: Radware
471
466
  Shenzhen TG-NET Botone Technology Co.,Ltd.: Shenzhen TG-NET Botone Technology Co.,Ltd.
472
- XIAOMI CORPORATION: XIAOMI CORPORATION
467
+ XIAOMI CORPORATION: 小米
473
468
  Atheros Communications, Inc.: Atheros Communications, Inc.
474
469
  Taiyo Yuden Co., Ltd.: Taiyo Yuden Co., Ltd.
475
470
  Control Microsystems: Control Microsystems
476
- Siemens AG: Siemens AG
471
+ Siemens AG: 西门子
477
472
  Shanghai DigiVision Technology Co., Ltd.: Shanghai DigiVision Technology Co., Ltd.
478
473
  Charles Industries, Ltd.: Charles Industries, Ltd.
479
474
  Roku, Inc.: Roku, Inc.
@@ -484,7 +479,7 @@ GLOBAL VILLAGE COMMUNICATION: GLOBAL VILLAGE COMMUNICATION
484
479
  Ericsson Group: Ericsson Group
485
480
  Primax Electronics Ltd.: Primax Electronics Ltd.
486
481
  Gionee Communication Equipment Co,Ltd.ShenZhen: Gionee Communication Equipment Co,Ltd.ShenZhen
487
- Cisco Systems, Inc.: Cisco Systems, Inc.
482
+ Cisco Systems, Inc.: 思科
488
483
  Beijing HuaqinWorld Technology Co.,Ltd: Beijing HuaqinWorld Technology Co.,Ltd
489
484
  Agere Systems: Agere Systems
490
485
  SAXA, Inc.: SAXA, Inc.
data/lib/oui.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require "oui/version"
2
2
  require "oui/mac_address"
3
+ require "oui/translator"
3
4
  require "oui/database"
4
5
  require "oui/address"
5
6
  require "oui/organization"
6
-
data/lib/oui/database.rb CHANGED
@@ -16,6 +16,7 @@ module OUI
16
16
  def look_up_organization_by_oui(oui)
17
17
  organization = Organization.new
18
18
  organization.name = @@oui_to_organization_names[oui.upcase]
19
+ organization.chinese_name = Translator.translate(organization.name)
19
20
  organization
20
21
  end
21
22
 
data/lib/oui/server.rb ADDED
@@ -0,0 +1,12 @@
1
+ require "sinatra"
2
+ require "sinatra/json"
3
+
4
+ module OUI
5
+ class Server < Sinatra::Base
6
+ get '/lookup' do
7
+ organization = OUI::MACAddress.parse(params[:mac]).organization
8
+ result = { mac: params[:mac], manufacturer: organization.name, chinese_name: organization.chinese_name }
9
+ json result
10
+ end
11
+ end
12
+ end
@@ -0,0 +1,19 @@
1
+ module OUI
2
+ class Translator
3
+ def initialize
4
+ require "yaml"
5
+
6
+ @@translations = YAML.load_file(File.expand_path('../../../data/translations.yml', __FILE__))
7
+ end
8
+
9
+ def translate(english)
10
+ @@translations[english]
11
+ end
12
+
13
+ def self.translate(english)
14
+ @@instance ||= new
15
+
16
+ @@instance.translate(english)
17
+ end
18
+ end
19
+ end
data/lib/oui/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module OUI
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/oui.gemspec CHANGED
@@ -23,4 +23,9 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.add_development_dependency "rspec"
25
25
  spec.add_development_dependency "pry"
26
+
27
+ spec.add_development_dependency "shotgun"
28
+
29
+ spec.add_runtime_dependency "sinatra"
30
+ spec.add_runtime_dependency "sinatra-contrib"
26
31
  end
@@ -0,0 +1,15 @@
1
+ # coding: utf-8
2
+ require "spec_helper"
3
+
4
+ module OUI
5
+ describe Translator do
6
+ subject { Translator }
7
+ it { should respond_to :translate }
8
+
9
+ describe "translate" do
10
+ it "translate OUI info into Chinese" do
11
+ expect(Translator.translate("Apple")).to eq("苹果")
12
+ end
13
+ end
14
+ end
15
+ end
metadata CHANGED
@@ -1,60 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.0.2
6
5
  platform: ruby
7
6
  authors:
8
7
  - Forrest Ye
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-07-07 00:00:00.000000000 Z
11
+ date: 2014-07-17 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
- requirement: &70292318938300 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.3'
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *70292318938300
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rake
27
- requirement: &70292318937300 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - '>='
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70292318937300
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rspec
38
- requirement: &70292318936260 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70292318936260
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: pry
49
- requirement: &70292318934680 !ruby/object:Gem::Requirement
50
- none: false
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: shotgun
71
+ requirement: !ruby/object:Gem::Requirement
51
72
  requirements:
52
- - - ! '>='
73
+ - - '>='
53
74
  - !ruby/object:Gem::Version
54
75
  version: '0'
55
76
  type: :development
56
77
  prerelease: false
57
- version_requirements: *70292318934680
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: sinatra
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
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: sinatra-contrib
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '>='
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
58
111
  description: look up OUI information /w Chinese translation using MAC addresses
59
112
  email:
60
113
  - afu@forresty.com
@@ -65,10 +118,12 @@ extra_rdoc_files: []
65
118
  files:
66
119
  - .gitignore
67
120
  - Gemfile
121
+ - Gemfile.lock
68
122
  - LICENSE.txt
69
123
  - README.md
70
124
  - Rakefile
71
125
  - bin/oui
126
+ - config.ru
72
127
  - data/oui.txt
73
128
  - data/translations.yml
74
129
  - lib/oui.rb
@@ -76,47 +131,44 @@ files:
76
131
  - lib/oui/database.rb
77
132
  - lib/oui/mac_address.rb
78
133
  - lib/oui/organization.rb
134
+ - lib/oui/server.rb
135
+ - lib/oui/translator.rb
79
136
  - lib/oui/version.rb
80
137
  - oui.gemspec
81
138
  - spec/oui/address_spec.rb
82
139
  - spec/oui/database_spec.rb
83
140
  - spec/oui/mac_address_spec.rb
84
141
  - spec/oui/organization_spec.rb
142
+ - spec/oui/translator_spec.rb
85
143
  - spec/spec_helper.rb
86
144
  homepage: https://github.com/modouwifi/oui-gem
87
145
  licenses:
88
146
  - MIT
147
+ metadata: {}
89
148
  post_install_message:
90
149
  rdoc_options: []
91
150
  require_paths:
92
151
  - lib
93
152
  required_ruby_version: !ruby/object:Gem::Requirement
94
- none: false
95
153
  requirements:
96
- - - ! '>='
154
+ - - '>='
97
155
  - !ruby/object:Gem::Version
98
156
  version: '0'
99
- segments:
100
- - 0
101
- hash: 4091341631570692659
102
157
  required_rubygems_version: !ruby/object:Gem::Requirement
103
- none: false
104
158
  requirements:
105
- - - ! '>='
159
+ - - '>='
106
160
  - !ruby/object:Gem::Version
107
161
  version: '0'
108
- segments:
109
- - 0
110
- hash: 4091341631570692659
111
162
  requirements: []
112
163
  rubyforge_project:
113
- rubygems_version: 1.8.11
164
+ rubygems_version: 2.0.2
114
165
  signing_key:
115
- specification_version: 3
166
+ specification_version: 4
116
167
  summary: look up OUI information /w Chinese translation using MAC addresses
117
168
  test_files:
118
169
  - spec/oui/address_spec.rb
119
170
  - spec/oui/database_spec.rb
120
171
  - spec/oui/mac_address_spec.rb
121
172
  - spec/oui/organization_spec.rb
173
+ - spec/oui/translator_spec.rb
122
174
  - spec/spec_helper.rb