device_map 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -0
- data/lib/device_map/device_data/builder.rb +2 -2
- data/lib/device_map/device_data/devices.rb +0 -1
- data/lib/device_map/device_data/patterns.rb +2 -4
- data/lib/device_map/properties/property.rb +1 -1
- data/lib/device_map/version.rb +2 -2
- data/lib/resources/BuilderDataSource.xml +229 -7
- data/lib/resources/DeviceDataSource.xml +379 -22
- data/spec/device_data/builder_spec.rb +3 -5
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3766c473c1f922caffc8b36b4591fce96cf56be3
|
4
|
+
data.tar.gz: c153d17a2b339acbb5641be322cd5cf3c15b6361
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f00e805590f9c74185f1e68491da3435893c76da7f227261ebddb7a2bb34e527d5214d895788d2349f61c2163252b3f3a5e39899d2994d04e19fff16f2a1654
|
7
|
+
data.tar.gz: 3db3e7054b91b6603a791fbe34b6c9b97ae10e044f0aec58fd6896c6135bc0e97fb7d7cce1ee90acc0b47f849a87ed777b1a139efe47db095839692c729d0321
|
data/.rubocop.yml
CHANGED
@@ -22,7 +22,7 @@ module DeviceMap
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
|
25
|
+
Simple = Struct.new(:priority) do
|
26
26
|
def patterns(device_id, keywords)
|
27
27
|
keywords.map do |keyword|
|
28
28
|
Pattern.new(keyword, device_id, priority)
|
@@ -30,7 +30,7 @@ module DeviceMap
|
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
33
|
-
|
33
|
+
TwoStep = Struct.new(:priority) do
|
34
34
|
def patterns(device_id, keywords)
|
35
35
|
joined_keywords = Keyword.join(keywords)
|
36
36
|
|
data/lib/device_map/version.rb
CHANGED
@@ -17,8 +17,8 @@
|
|
17
17
|
-->
|
18
18
|
<ODDR>
|
19
19
|
<version>
|
20
|
-
<ver>1.0.
|
21
|
-
|
20
|
+
<ver>1.0.3</ver>
|
21
|
+
<last_updated>2015-06-19 17:00:00</last_updated>
|
22
22
|
<official_url>http://devicemap.apache.org</official_url>
|
23
23
|
<statement>Licensed under http://www.apache.org/licenses/LICENSE-2.0</statement>
|
24
24
|
</version>
|
@@ -143,11 +143,6 @@
|
|
143
143
|
<value>ALCATEL ONETOUCH 6036A</value>
|
144
144
|
</list>
|
145
145
|
</device>
|
146
|
-
<device id="SM-G386F">
|
147
|
-
<list>
|
148
|
-
<value>SM-G386F</value>
|
149
|
-
</list>
|
150
|
-
</device>
|
151
146
|
<device id="SM-N750K">
|
152
147
|
<list>
|
153
148
|
<value>SM-N750K</value>
|
@@ -158,16 +153,184 @@
|
|
158
153
|
<value>SAMSUNG SM-T325</value>
|
159
154
|
</list>
|
160
155
|
</device>
|
156
|
+
<device id="SM-G110">
|
157
|
+
<list>
|
158
|
+
<value>SM-G110</value>
|
159
|
+
<value>SM-G110B</value>
|
160
|
+
<value>SM-G110B/DS</value>
|
161
|
+
<value>SM-G110H</value>
|
162
|
+
<value>SM-G110M</value>
|
163
|
+
</list>
|
164
|
+
</device>
|
165
|
+
<device id="SM-G130">
|
166
|
+
<list>
|
167
|
+
<value>SM-G130</value>
|
168
|
+
<value>SM-G130H</value>
|
169
|
+
<value>SM-G130HN</value>
|
170
|
+
<value>SM-G130M</value>
|
171
|
+
</list>
|
172
|
+
</device>
|
173
|
+
<device id="SM-G130E">
|
174
|
+
<list>
|
175
|
+
<value>SM-G130E</value>
|
176
|
+
</list>
|
177
|
+
</device>
|
178
|
+
<device id="SM-G310">
|
179
|
+
<list>
|
180
|
+
<value>SM-G310</value>
|
181
|
+
<value>SM-G310HN</value>
|
182
|
+
<value>SM-G313</value>
|
183
|
+
<value>SM-G313HN</value>
|
184
|
+
<value>SM-G313HU</value>
|
185
|
+
<value>SM-G313HZ</value>
|
186
|
+
<value>SM-G313M</value>
|
187
|
+
<value>SM-G313ML</value>
|
188
|
+
<value>SM-G313MU</value>
|
189
|
+
</list>
|
190
|
+
</device>
|
191
|
+
<device id="SM-G350">
|
192
|
+
<list>
|
193
|
+
<value>SM-G350</value>
|
194
|
+
<value>SM-G350L</value>
|
195
|
+
<value>SM-G3502L</value>
|
196
|
+
</list>
|
197
|
+
</device>
|
198
|
+
<device id="SM-G350E">
|
199
|
+
<list>
|
200
|
+
<value>SM-G350E</value>
|
201
|
+
</list>
|
202
|
+
</device>
|
203
|
+
<device id="SM-G350H">
|
204
|
+
<list>
|
205
|
+
<value>SM-G350H</value>
|
206
|
+
<value>SM-G355H</value>
|
207
|
+
<value>SM-G355HN</value>
|
208
|
+
<value>SM-G355M</value>
|
209
|
+
</list>
|
210
|
+
</device>
|
211
|
+
<device id="SM-G3502">
|
212
|
+
<list>
|
213
|
+
<value>SM-G3502</value>
|
214
|
+
<value>SM-G3502I</value>
|
215
|
+
<value>SM-G3502T</value>
|
216
|
+
</list>
|
217
|
+
</device>
|
218
|
+
<device id="SM-G3509">
|
219
|
+
<list>
|
220
|
+
<value>SM-G3509</value>
|
221
|
+
<value>SM-G3509I</value>
|
222
|
+
</list>
|
223
|
+
</device>
|
224
|
+
<device id="SM-G357FZ">
|
225
|
+
<list>
|
226
|
+
<value>SM-G357FZ</value>
|
227
|
+
<value>SM-G357M</value>
|
228
|
+
</list>
|
229
|
+
</device>
|
161
230
|
<device id="SM-G3518">
|
162
231
|
<list>
|
163
232
|
<value>SM-G3518</value>
|
164
233
|
</list>
|
165
234
|
</device>
|
235
|
+
<device id="SM-G3589W">
|
236
|
+
<list>
|
237
|
+
<value>SM-G3589W</value>
|
238
|
+
</list>
|
239
|
+
</device>
|
240
|
+
<device id="SM-G3812B">
|
241
|
+
<list>
|
242
|
+
<value>SM-G3812B</value>
|
243
|
+
</list>
|
244
|
+
</device>
|
245
|
+
<device id="SM-G3818">
|
246
|
+
<list>
|
247
|
+
<value>SM-G3818</value>
|
248
|
+
<value>SM-G3819D</value>
|
249
|
+
</list>
|
250
|
+
</device>
|
251
|
+
<device id="SM-G386F">
|
252
|
+
<list>
|
253
|
+
<value>SM-G386F</value>
|
254
|
+
</list>
|
255
|
+
</device>
|
256
|
+
<device id="SM-G386T">
|
257
|
+
<list>
|
258
|
+
<value>SM-G386T</value>
|
259
|
+
</list>
|
260
|
+
</device>
|
261
|
+
<device id="SM-G386W">
|
262
|
+
<list>
|
263
|
+
<value>SM-G386W</value>
|
264
|
+
</list>
|
265
|
+
</device>
|
266
|
+
<device id="SM-G530">
|
267
|
+
<list>
|
268
|
+
<value>SM-G530DS</value>
|
269
|
+
<value>SM-G530F</value>
|
270
|
+
<value>SM-G530FZ</value>
|
271
|
+
<value>SM-G530H</value>
|
272
|
+
<value>SM-G530Y</value>
|
273
|
+
</list>
|
274
|
+
</device>
|
275
|
+
<device id="SM-G530BT">
|
276
|
+
<list>
|
277
|
+
<value>SM-G530BT</value>
|
278
|
+
</list>
|
279
|
+
</device>
|
280
|
+
<device id="SM-G710">
|
281
|
+
<list>
|
282
|
+
<value>SM-G710</value>
|
283
|
+
<value>SM-G7105L</value>
|
284
|
+
<value>SM-G7106</value>
|
285
|
+
<value>SM-G7108</value>
|
286
|
+
<value>SM-G7108V</value>
|
287
|
+
<value>SM-G7102T</value>
|
288
|
+
<value>SM-G7109</value>
|
289
|
+
</list>
|
290
|
+
</device>
|
291
|
+
<device id="SM-G7102">
|
292
|
+
<list>
|
293
|
+
<value>SM-G7102</value>
|
294
|
+
</list>
|
295
|
+
</device>
|
296
|
+
<device id="SM-G7102T">
|
297
|
+
<list>
|
298
|
+
<value>SM-G7102T</value>
|
299
|
+
</list>
|
300
|
+
</device>
|
301
|
+
<device id="SM-G7105">
|
302
|
+
<list>
|
303
|
+
<value>SM-G7105</value>
|
304
|
+
</list>
|
305
|
+
</device>
|
306
|
+
<device id="SM-G730W8">
|
307
|
+
<list>
|
308
|
+
<value>SM-G730W8</value>
|
309
|
+
</list>
|
310
|
+
</device>
|
311
|
+
<device id="SM-G800F">
|
312
|
+
<list>
|
313
|
+
<value>SM-G800A</value>
|
314
|
+
<value>SM-G800F</value>
|
315
|
+
<value>SM-G800H</value>
|
316
|
+
<value>SM-G800HQ</value>
|
317
|
+
<value>SM-G800M</value>
|
318
|
+
<value>SM-G800R4</value>
|
319
|
+
<value>SM-G800X</value>
|
320
|
+
<value>SM-G800Y</value>
|
321
|
+
</list>
|
322
|
+
</device>
|
166
323
|
<device id="SAMSUNG GT-I8200">
|
167
324
|
<list>
|
168
325
|
<value>SAMSUNG GT-I8200</value>
|
169
326
|
</list>
|
170
327
|
</device>
|
328
|
+
<device id="SM-G870">
|
329
|
+
<list>
|
330
|
+
<value>SM-G870A</value>
|
331
|
+
<value>SM-G870F</value>
|
332
|
+
</list>
|
333
|
+
</device>
|
171
334
|
<device id="SM-G900M">
|
172
335
|
<list>
|
173
336
|
<value>SM-G900M</value>
|
@@ -202,6 +365,29 @@
|
|
202
365
|
<value>SM-G901F</value>
|
203
366
|
</list>
|
204
367
|
</device>
|
368
|
+
<device id="SM-G906L">
|
369
|
+
<list>
|
370
|
+
<value>SM-G906L</value>
|
371
|
+
</list>
|
372
|
+
</device>
|
373
|
+
<device id="SM-G910S">
|
374
|
+
<list>
|
375
|
+
<value>SM-G910S</value>
|
376
|
+
</list>
|
377
|
+
</device>
|
378
|
+
<device id="SM-S801">
|
379
|
+
<list>
|
380
|
+
<value>SM-S801</value>
|
381
|
+
<value>SM-G850A</value>
|
382
|
+
<value>SM-G850F</value>
|
383
|
+
<value>SM-G850FQ</value>
|
384
|
+
<value>SM-G850M</value>
|
385
|
+
<value>SM-G850T</value>
|
386
|
+
<value>SM-G850W</value>
|
387
|
+
<value>SM-G850Y</value>
|
388
|
+
<value>SM-G8508S</value>
|
389
|
+
</list>
|
390
|
+
</device>
|
205
391
|
<device id="HuaweiU8180">
|
206
392
|
<list>
|
207
393
|
<value>U8180</value>
|
@@ -5613,6 +5799,42 @@
|
|
5613
5799
|
<value>XT532</value>
|
5614
5800
|
</list>
|
5615
5801
|
</device>
|
5802
|
+
<device id="flyiq245">
|
5803
|
+
<list>
|
5804
|
+
<value>iq245</value>
|
5805
|
+
<value>iq245plus</value>
|
5806
|
+
</list>
|
5807
|
+
</device>
|
5808
|
+
<device id="flyiq256">
|
5809
|
+
<list>
|
5810
|
+
<value>iq256</value>
|
5811
|
+
</list>
|
5812
|
+
</device>
|
5813
|
+
<device id="flyiq430">
|
5814
|
+
<list>
|
5815
|
+
<value>iq430</value>
|
5816
|
+
</list>
|
5817
|
+
</device>
|
5818
|
+
<device id="flyiq440">
|
5819
|
+
<list>
|
5820
|
+
<value>iq440</value>
|
5821
|
+
</list>
|
5822
|
+
</device>
|
5823
|
+
<device id="flyiq441">
|
5824
|
+
<list>
|
5825
|
+
<value>iq441</value>
|
5826
|
+
</list>
|
5827
|
+
</device>
|
5828
|
+
<device id="flyiq442">
|
5829
|
+
<list>
|
5830
|
+
<value>iq442</value>
|
5831
|
+
</list>
|
5832
|
+
</device>
|
5833
|
+
<device id="flyiq445">
|
5834
|
+
<list>
|
5835
|
+
<value>iq445</value>
|
5836
|
+
</list>
|
5837
|
+
</device>
|
5616
5838
|
<device id="SAMSUNG GT-S5369">
|
5617
5839
|
<list>
|
5618
5840
|
<value>GT-S5369</value>
|
@@ -17,8 +17,8 @@
|
|
17
17
|
-->
|
18
18
|
<ODDR>
|
19
19
|
<version>
|
20
|
-
<ver>1.0.
|
21
|
-
<last_updated>2015-
|
20
|
+
<ver>1.0.3</ver>
|
21
|
+
<last_updated>2015-06-19 17:00:00</last_updated>
|
22
22
|
<official_url>http://devicemap.apache.org</official_url>
|
23
23
|
<statement>Licensed under http://www.apache.org/licenses/LICENSE-2.0</statement>
|
24
24
|
</version>
|
@@ -5842,6 +5842,53 @@
|
|
5842
5842
|
</device>
|
5843
5843
|
<device id="genericFly" parentId="generic-">
|
5844
5844
|
<property name="vendor" value="Fly"/>
|
5845
|
+
<property name="ajax_support_javascript" value="true"/>
|
5846
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
5847
|
+
<property name="ajax_support_inner_html" value="true"/>
|
5848
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
5849
|
+
<property name="ajax_manipulate_css" value="true"/>
|
5850
|
+
<property name="ajax_support_events" value="true"/>
|
5851
|
+
<property name="ajax_support_event_listener" value="true"/>
|
5852
|
+
<property name="image_inlining" value="true"/>
|
5853
|
+
</device>
|
5854
|
+
<device id="flyiq245" parentId="genericFly">
|
5855
|
+
<property name="model" value="IQ245"/>
|
5856
|
+
<property name="marketing_name" value="Wizard"/>
|
5857
|
+
<property name="displayWidth" value="320"/>
|
5858
|
+
<property name="displayHeight" value="480"/>
|
5859
|
+
<property name="pixel_density_ppi" value="165"/>
|
5860
|
+
<property name="inputDevices" value="touchscreen"/>
|
5861
|
+
<property name="from" value="devicemap"/>
|
5862
|
+
</device>
|
5863
|
+
<device id="flyiq256" parentId="flyiq245">
|
5864
|
+
<property name="model" value="IQ256"/>
|
5865
|
+
<property name="marketing_name" value="Vogue"/>
|
5866
|
+
</device>
|
5867
|
+
<device id="flyiq430" parentId="flyiq245">
|
5868
|
+
<property name="model" value="IQ256"/>
|
5869
|
+
<property name="marketing_name" value="Evoke"/>
|
5870
|
+
</device>
|
5871
|
+
<device id="flyiq440" parentId="genericFly">
|
5872
|
+
<property name="model" value="IQ440"/>
|
5873
|
+
<property name="marketing_name" value="Energie"/>
|
5874
|
+
<property name="displayWidth" value="480"/>
|
5875
|
+
<property name="displayHeight" value="800"/>
|
5876
|
+
<property name="pixel_density_ppi" value="233"/>
|
5877
|
+
<property name="inputDevices" value="touchscreen"/>
|
5878
|
+
<property name="from" value="devicemap"/>
|
5879
|
+
</device>
|
5880
|
+
<device id="flyiq441" parentId="flyiq440">
|
5881
|
+
<property name="model" value="IQ441"/>
|
5882
|
+
<property name="marketing_name" value="Radiance"/>
|
5883
|
+
<property name="pixel_density_ppi" value="217"/>
|
5884
|
+
</device>
|
5885
|
+
<device id="flyiq442" parentId="flyiq440">
|
5886
|
+
<property name="model" value="IQ442"/>
|
5887
|
+
<property name="marketing_name" value="Miracle"/>
|
5888
|
+
</device>
|
5889
|
+
<device id="flyiq445" parentId="flyiq440">
|
5890
|
+
<property name="model" value="IQ445"/>
|
5891
|
+
<property name="marketing_name" value="Genius"/>
|
5845
5892
|
</device>
|
5846
5893
|
<device id="BlackBerry8900" parentId="genericRIM">
|
5847
5894
|
<property name="model" value="BlackBerry 8900"/>
|
@@ -42465,6 +42512,178 @@
|
|
42465
42512
|
<property name="inputDevices" value="touchscreen"/>
|
42466
42513
|
<property name="from" value="oddr"/>
|
42467
42514
|
</device>
|
42515
|
+
<device id="SM-G110" parentId="genericSamsung">
|
42516
|
+
<property name="model" value="SM-G110"/>
|
42517
|
+
<property name="marketing_name" value="Galaxy Pocket 2"/>
|
42518
|
+
<property name="displayWidth" value="240"/>
|
42519
|
+
<property name="displayHeight" value="320"/>
|
42520
|
+
<property name="pixel_density_ppi" value="121"/>
|
42521
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42522
|
+
<property name="device_os" value="Android"/>
|
42523
|
+
<property name="device_os_version" value="4.4.2"/>
|
42524
|
+
<property name="inputDevices" value="touchscreen"/>
|
42525
|
+
<property name="dual_orientation" value="true"/>
|
42526
|
+
<property name="ajax_support_javascript" value="true"/>
|
42527
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42528
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42529
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42530
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42531
|
+
<property name="ajax_support_events" value="true"/>
|
42532
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42533
|
+
<property name="image_inlining" value="true"/>
|
42534
|
+
<property name="from" value="devicemap"/>
|
42535
|
+
</device>
|
42536
|
+
<device id="SM-G130" parentId="genericSamsung">
|
42537
|
+
<property name="model" value="SM-G130"/>
|
42538
|
+
<property name="marketing_name" value="Galaxy Young 2"/>
|
42539
|
+
<property name="displayWidth" value="320"/>
|
42540
|
+
<property name="displayHeight" value="480"/>
|
42541
|
+
<property name="pixel_density_ppi" value="165"/>
|
42542
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42543
|
+
<property name="device_os" value="Android"/>
|
42544
|
+
<property name="device_os_version" value="4.4.2"/>
|
42545
|
+
<property name="inputDevices" value="touchscreen"/>
|
42546
|
+
<property name="dual_orientation" value="true"/>
|
42547
|
+
<property name="ajax_support_javascript" value="true"/>
|
42548
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42549
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42550
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42551
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42552
|
+
<property name="ajax_support_events" value="true"/>
|
42553
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42554
|
+
<property name="image_inlining" value="true"/>
|
42555
|
+
<property name="from" value="devicemap"/>
|
42556
|
+
</device>
|
42557
|
+
<device id="SM-G130E" parentId="SM-G130">
|
42558
|
+
<property name="model" value="SM-G130E"/>
|
42559
|
+
<property name="marketing_name" value="Galaxy Star 2"/>
|
42560
|
+
</device>
|
42561
|
+
<device id="SM-G310" parentId="genericSamsung">
|
42562
|
+
<property name="model" value="SM-G310"/>
|
42563
|
+
<property name="marketing_name" value="Galaxy Ace 4"/>
|
42564
|
+
<property name="displayWidth" value="480"/>
|
42565
|
+
<property name="displayHeight" value="800"/>
|
42566
|
+
<property name="pixel_density_ppi" value="233"/>
|
42567
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42568
|
+
<property name="device_os" value="Android"/>
|
42569
|
+
<property name="device_os_version" value="4.4.2"/>
|
42570
|
+
<property name="inputDevices" value="touchscreen"/>
|
42571
|
+
<property name="dual_orientation" value="true"/>
|
42572
|
+
<property name="ajax_support_javascript" value="true"/>
|
42573
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42574
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42575
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42576
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42577
|
+
<property name="ajax_support_events" value="true"/>
|
42578
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42579
|
+
<property name="image_inlining" value="true"/>
|
42580
|
+
<property name="from" value="devicemap"/>
|
42581
|
+
</device>
|
42582
|
+
<device id="SM-G350" parentId="genericSamsung">
|
42583
|
+
<property name="model" value="SM-G350"/>
|
42584
|
+
<property name="marketing_name" value="Galaxy Core Plus"/>
|
42585
|
+
<property name="displayWidth" value="480"/>
|
42586
|
+
<property name="displayHeight" value="800"/>
|
42587
|
+
<property name="pixel_density_ppi" value="217"/>
|
42588
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42589
|
+
<property name="device_os" value="Android"/>
|
42590
|
+
<property name="device_os_version" value="4.2"/>
|
42591
|
+
<property name="inputDevices" value="touchscreen"/>
|
42592
|
+
<property name="dual_orientation" value="true"/>
|
42593
|
+
<property name="ajax_support_javascript" value="true"/>
|
42594
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42595
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42596
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42597
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42598
|
+
<property name="ajax_support_events" value="true"/>
|
42599
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42600
|
+
<property name="image_inlining" value="true"/>
|
42601
|
+
<property name="from" value="devicemap"/>
|
42602
|
+
</device>
|
42603
|
+
<device id="SM-G3502" parentId="SM-G350">
|
42604
|
+
<property name="model" value="SM-G3502"/>
|
42605
|
+
<property name="marketing_name" value="Galaxy Trend 3"/>
|
42606
|
+
<property name="device_os_version" value="4.3"/>
|
42607
|
+
</device>
|
42608
|
+
<device id="SM-G350E" parentId="SM-G350">
|
42609
|
+
<property name="model" value="SM-G350E"/>
|
42610
|
+
<property name="marketing_name" value="Galaxy Star Advance"/>
|
42611
|
+
<property name="device_os_version" value="4.4.2"/>
|
42612
|
+
</device>
|
42613
|
+
<device id="SM-G3509" parentId="SM-G350">
|
42614
|
+
<property name="model" value="SM-G3509"/>
|
42615
|
+
<property name="device_os_version" value="4.1.2"/>
|
42616
|
+
</device>
|
42617
|
+
<device id="SM-G350H" parentId="SM-G350">
|
42618
|
+
<property name="model" value="SM-G350H"/>
|
42619
|
+
<property name="marketing_name" value="Galaxy Core 2"/>
|
42620
|
+
<property name="device_os_version" value="4.4.2"/>
|
42621
|
+
</device>
|
42622
|
+
<device id="SM-G357FZ" parentId="SM-G350">
|
42623
|
+
<property name="model" value="SM-G357FZ"/>
|
42624
|
+
<property name="marketing_name" value="Galaxy Ace 4"/>
|
42625
|
+
<property name="device_os_version" value="4.4.4"/>
|
42626
|
+
</device>
|
42627
|
+
<device id="SM-G3589W" parentId="SM-G350">
|
42628
|
+
<property name="model" value="SM-G3589W"/>
|
42629
|
+
<property name="marketing_name" value="Galaxy Core Lite"/>
|
42630
|
+
<property name="device_os_version" value="4.3"/>
|
42631
|
+
</device>
|
42632
|
+
<device id="SM-G3812B" parentId="SM-G350">
|
42633
|
+
<property name="model" value="SM-G3812B"/>
|
42634
|
+
<property name="marketing_name" value="Galaxy S3 Slim"/>
|
42635
|
+
</device>
|
42636
|
+
<device id="SM-G3818" parentId="SM-G350">
|
42637
|
+
<property name="model" value="SM-G3818"/>
|
42638
|
+
<property name="marketing_name" value="Galaxy Win Pro"/>
|
42639
|
+
<property name="displayWidth" value="540"/>
|
42640
|
+
<property name="displayHeight" value="960"/>
|
42641
|
+
<property name="pixel_density_ppi" value="245"/>
|
42642
|
+
</device>
|
42643
|
+
<device id="SM-G386F" parentId="SM-G350">
|
42644
|
+
<property name="model" value="SM-G386F"/>
|
42645
|
+
<property name="marketing_name" value="Galaxy Core LTE"/>
|
42646
|
+
<property name="displayWidth" value="540"/>
|
42647
|
+
<property name="displayHeight" value="960"/>
|
42648
|
+
<property name="pixel_density_ppi" value="245"/>
|
42649
|
+
</device>
|
42650
|
+
<device id="SM-G386T" parentId="SM-G350">
|
42651
|
+
<property name="model" value="SM-G386T"/>
|
42652
|
+
<property name="marketing_name" value="Galaxy Avant"/>
|
42653
|
+
<property name="displayWidth" value="540"/>
|
42654
|
+
<property name="displayHeight" value="960"/>
|
42655
|
+
<property name="pixel_density_ppi" value="245"/>
|
42656
|
+
</device>
|
42657
|
+
<device id="SM-G386W" parentId="SM-G386F">
|
42658
|
+
<property name="model" value="SM-G386W"/>
|
42659
|
+
<property name="device_os_version" value="4.4.2"/>
|
42660
|
+
</device>
|
42661
|
+
<device id="SM-G530" parentId="genericSamsung">
|
42662
|
+
<property name="model" value="SM-G530"/>
|
42663
|
+
<property name="marketing_name" value="Grand Prime"/>
|
42664
|
+
<property name="displayWidth" value="540"/>
|
42665
|
+
<property name="displayHeight" value="960"/>
|
42666
|
+
<property name="pixel_density_ppi" value="220"/>
|
42667
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42668
|
+
<property name="device_os" value="Android"/>
|
42669
|
+
<property name="device_os_version" value="4.4.4"/>
|
42670
|
+
<property name="dual_orientation" value="true"/>
|
42671
|
+
<property name="ajax_support_javascript" value="true"/>
|
42672
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42673
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42674
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42675
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42676
|
+
<property name="ajax_support_events" value="true"/>
|
42677
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42678
|
+
<property name="image_inlining" value="true"/>
|
42679
|
+
<property name="inputDevices" value="touchscreen"/>
|
42680
|
+
<property name="from" value="devicemap"/>
|
42681
|
+
</device>
|
42682
|
+
<device id="SM-G530BT" parentId="SM-G530">
|
42683
|
+
<property name="model" value="SM-G530BT"/>
|
42684
|
+
<property name="marketing_name" value="Grand Prime Duos TV"/>
|
42685
|
+
<property name="device_os_version" value="4.4.2"/>
|
42686
|
+
</device>
|
42468
42687
|
<device id="SM-G710S" parentId="genericSamsung">
|
42469
42688
|
<property name="model" value="SM-G710S"/>
|
42470
42689
|
<property name="marketing_name" value="Galaxy Grand 2"/>
|
@@ -42485,6 +42704,164 @@
|
|
42485
42704
|
<property name="inputDevices" value="touchscreen"/>
|
42486
42705
|
<property name="from" value="oddr"/>
|
42487
42706
|
</device>
|
42707
|
+
<device id="SM-G710" parentId="genericSamsung">
|
42708
|
+
<property name="model" value="SM-G710"/>
|
42709
|
+
<property name="marketing_name" value="Galaxy Grand 2"/>
|
42710
|
+
<property name="displayWidth" value="720"/>
|
42711
|
+
<property name="displayHeight" value="1280"/>
|
42712
|
+
<property name="pixel_density_ppi" value="280"/>
|
42713
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42714
|
+
<property name="device_os" value="Android"/>
|
42715
|
+
<property name="device_os_version" value="4.3"/>
|
42716
|
+
<property name="dual_orientation" value="true"/>
|
42717
|
+
<property name="ajax_support_javascript" value="true"/>
|
42718
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42719
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42720
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42721
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42722
|
+
<property name="ajax_support_events" value="true"/>
|
42723
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42724
|
+
<property name="image_inlining" value="true"/>
|
42725
|
+
<property name="inputDevices" value="touchscreen"/>
|
42726
|
+
<property name="from" value="devicemap"/>
|
42727
|
+
</device>
|
42728
|
+
<device id="SM-G7102" parentId="SM-G710">
|
42729
|
+
<property name="model" value="SM-G7102"/>
|
42730
|
+
<property name="marketing_name" value="Galaxy Grand 2 Duos"/>
|
42731
|
+
</device>
|
42732
|
+
<device id="SM-G7102T" parentId="SM-G710">
|
42733
|
+
<property name="model" value="SM-G7102T"/>
|
42734
|
+
<property name="marketing_name" value="Galaxy Grand 2 TV"/>
|
42735
|
+
</device>
|
42736
|
+
<device id="SM-G7105" parentId="SM-G710">
|
42737
|
+
<property name="model" value="SM-G7105"/>
|
42738
|
+
<property name="marketing_name" value="Galaxy Grand 2 LTE"/>
|
42739
|
+
</device>
|
42740
|
+
<device id="SM-G730W8" parentId="genericSamsung">
|
42741
|
+
<property name="model" value="SM-G730W8"/>
|
42742
|
+
<property name="marketing_name" value="Galaxy S3 Mini LTE"/>
|
42743
|
+
<property name="displayWidth" value="480"/>
|
42744
|
+
<property name="displayHeight" value="800"/>
|
42745
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42746
|
+
<property name="device_os" value="Android"/>
|
42747
|
+
<property name="device_os_version" value="4.2.2"/>
|
42748
|
+
<property name="dual_orientation" value="true"/>
|
42749
|
+
<property name="ajax_support_javascript" value="true"/>
|
42750
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42751
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42752
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42753
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42754
|
+
<property name="ajax_support_events" value="true"/>
|
42755
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42756
|
+
<property name="image_inlining" value="true"/>
|
42757
|
+
<property name="inputDevices" value="touchscreen"/>
|
42758
|
+
<property name="from" value="devicemap"/>
|
42759
|
+
</device>
|
42760
|
+
<device id="SM-G800F" parentId="genericSamsung">
|
42761
|
+
<property name="model" value="SM-G800F"/>
|
42762
|
+
<property name="marketing_name" value="Galaxy S5 Mini"/>
|
42763
|
+
<property name="displayWidth" value="720"/>
|
42764
|
+
<property name="displayHeight" value="1280"/>
|
42765
|
+
<property name="pixel_density_ppi" value="326"/>
|
42766
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42767
|
+
<property name="device_os" value="Android"/>
|
42768
|
+
<property name="device_os_version" value="4.4.2"/>
|
42769
|
+
<property name="dual_orientation" value="true"/>
|
42770
|
+
<property name="ajax_support_javascript" value="true"/>
|
42771
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42772
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42773
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42774
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42775
|
+
<property name="ajax_support_events" value="true"/>
|
42776
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42777
|
+
<property name="image_inlining" value="true"/>
|
42778
|
+
<property name="inputDevices" value="touchscreen"/>
|
42779
|
+
<property name="from" value="devicemap"/>
|
42780
|
+
</device>
|
42781
|
+
<device id="SM-G870" parentId="genericSamsung">
|
42782
|
+
<property name="model" value="SM-G870"/>
|
42783
|
+
<property name="marketing_name" value="Galaxy S5 Active"/>
|
42784
|
+
<property name="displayWidth" value="1080"/>
|
42785
|
+
<property name="displayHeight" value="1920"/>
|
42786
|
+
<property name="pixel_density_ppi" value="432"/>
|
42787
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42788
|
+
<property name="device_os" value="Android"/>
|
42789
|
+
<property name="device_os_version" value="4.4.2"/>
|
42790
|
+
<property name="dual_orientation" value="true"/>
|
42791
|
+
<property name="ajax_support_javascript" value="true"/>
|
42792
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42793
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42794
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42795
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42796
|
+
<property name="ajax_support_events" value="true"/>
|
42797
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42798
|
+
<property name="image_inlining" value="true"/>
|
42799
|
+
<property name="inputDevices" value="touchscreen"/>
|
42800
|
+
<property name="from" value="devicemap"/>
|
42801
|
+
</device>
|
42802
|
+
<device id="SM-G906L" parentId="genericSamsung">
|
42803
|
+
<property name="model" value="SM-G906L"/>
|
42804
|
+
<property name="marketing_name" value="Galaxy S5 LTE-A"/>
|
42805
|
+
<property name="displayWidth" value="1440"/>
|
42806
|
+
<property name="displayHeight" value="2560"/>
|
42807
|
+
<property name="pixel_density_ppi" value="368"/>
|
42808
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42809
|
+
<property name="device_os" value="Android"/>
|
42810
|
+
<property name="device_os_version" value="4.4.3"/>
|
42811
|
+
<property name="dual_orientation" value="true"/>
|
42812
|
+
<property name="ajax_support_javascript" value="true"/>
|
42813
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42814
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42815
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42816
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42817
|
+
<property name="ajax_support_events" value="true"/>
|
42818
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42819
|
+
<property name="image_inlining" value="true"/>
|
42820
|
+
<property name="inputDevices" value="touchscreen"/>
|
42821
|
+
<property name="from" value="devicemap"/>
|
42822
|
+
</device>
|
42823
|
+
<device id="SM-G910S" parentId="genericSamsung">
|
42824
|
+
<property name="model" value="SM-G910S"/>
|
42825
|
+
<property name="marketing_name" value="Galaxy Round"/>
|
42826
|
+
<property name="displayWidth" value="1080"/>
|
42827
|
+
<property name="displayHeight" value="1920"/>
|
42828
|
+
<property name="pixel_density_ppi" value="386"/>
|
42829
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42830
|
+
<property name="device_os" value="Android"/>
|
42831
|
+
<property name="device_os_version" value="4.3"/>
|
42832
|
+
<property name="dual_orientation" value="true"/>
|
42833
|
+
<property name="ajax_support_javascript" value="true"/>
|
42834
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42835
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42836
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42837
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42838
|
+
<property name="ajax_support_events" value="true"/>
|
42839
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42840
|
+
<property name="image_inlining" value="true"/>
|
42841
|
+
<property name="inputDevices" value="touchscreen"/>
|
42842
|
+
<property name="from" value="devicemap"/>
|
42843
|
+
</device>
|
42844
|
+
<device id="SM-S801" parentId="genericSamsung">
|
42845
|
+
<property name="model" value="SM-S801"/>
|
42846
|
+
<property name="marketing_name" value="Galaxy Alpha"/>
|
42847
|
+
<property name="displayWidth" value="720"/>
|
42848
|
+
<property name="displayHeight" value="1280"/>
|
42849
|
+
<property name="pixel_density_ppi" value="312"/>
|
42850
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
42851
|
+
<property name="device_os" value="Android"/>
|
42852
|
+
<property name="device_os_version" value="4.4.4"/>
|
42853
|
+
<property name="dual_orientation" value="true"/>
|
42854
|
+
<property name="ajax_support_javascript" value="true"/>
|
42855
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
42856
|
+
<property name="ajax_support_inner_html" value="true"/>
|
42857
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
42858
|
+
<property name="ajax_manipulate_css" value="true"/>
|
42859
|
+
<property name="ajax_support_events" value="true"/>
|
42860
|
+
<property name="ajax_support_event_listener" value="true"/>
|
42861
|
+
<property name="image_inlining" value="true"/>
|
42862
|
+
<property name="inputDevices" value="touchscreen"/>
|
42863
|
+
<property name="from" value="devicemap"/>
|
42864
|
+
</device>
|
42488
42865
|
<device id="XT937C" parentId="genericMotorola">
|
42489
42866
|
<property name="model" value="XT937C"/>
|
42490
42867
|
<property name="marketing_name" value="Moto G"/>
|
@@ -44775,26 +45152,6 @@
|
|
44775
45152
|
<property name="image_inlining" value="true"/>
|
44776
45153
|
<property name="from" value="oddr"/>
|
44777
45154
|
</device>
|
44778
|
-
<device id="SM-G386F" parentId="genericSamsung">
|
44779
|
-
<property name="model" value="SM-G386F"/>
|
44780
|
-
<property name="marketing_name" value="Galaxy Core LTE"/>
|
44781
|
-
<property name="displayWidth" value="540"/>
|
44782
|
-
<property name="displayHeight" value="960"/>
|
44783
|
-
<property name="mobile_browser" value="Android Webkit"/>
|
44784
|
-
<property name="device_os" value="Android"/>
|
44785
|
-
<property name="device_os_version" value="4.2.2"/>
|
44786
|
-
<property name="inputDevices" value="touchscreen"/>
|
44787
|
-
<property name="dual_orientation" value="true"/>
|
44788
|
-
<property name="ajax_support_javascript" value="true"/>
|
44789
|
-
<property name="ajax_support_getelementbyid" value="true"/>
|
44790
|
-
<property name="ajax_support_inner_html" value="true"/>
|
44791
|
-
<property name="ajax_manipulate_dom" value="true"/>
|
44792
|
-
<property name="ajax_manipulate_css" value="true"/>
|
44793
|
-
<property name="ajax_support_events" value="true"/>
|
44794
|
-
<property name="ajax_support_event_listener" value="true"/>
|
44795
|
-
<property name="image_inlining" value="true"/>
|
44796
|
-
<property name="from" value="oddr"/>
|
44797
|
-
</device>
|
44798
45155
|
<device id="ALCATEL ONETOUCH 6036A" parentId="genericAlcatel">
|
44799
45156
|
<property name="model" value="6036A"/>
|
44800
45157
|
<property name="marketing_name" value="One Touch Idol 2 mini s"/>
|
@@ -5,11 +5,7 @@ RSpec.describe DeviceMap::DeviceData::Builder do
|
|
5
5
|
|
6
6
|
let(:device_id) { 'device_id' }
|
7
7
|
let(:keywords) { ['keyword1', 'keyword2'] }
|
8
|
-
|
9
|
-
def builder
|
10
|
-
default_priority = 1
|
11
|
-
described_class.new(default_priority)
|
12
|
-
end
|
8
|
+
let(:default_priority) { 1 }
|
13
9
|
|
14
10
|
describe '.find' do
|
15
11
|
it 'returns builder object' do
|
@@ -36,6 +32,7 @@ RSpec.describe DeviceMap::DeviceData::Builder do
|
|
36
32
|
|
37
33
|
describe '#patterns' do
|
38
34
|
it 'maps single pattern object to each device keyword' do
|
35
|
+
builder = described_class.new(default_priority)
|
39
36
|
patterns = builder.patterns(device_id, keywords)
|
40
37
|
|
41
38
|
expect(patterns.size).to eq keywords.size
|
@@ -53,6 +50,7 @@ RSpec.describe DeviceMap::DeviceData::Builder do
|
|
53
50
|
|
54
51
|
describe '#patterns' do
|
55
52
|
it 'maps all device keywords to single pattern object' do
|
53
|
+
builder = described_class.new(default_priority)
|
56
54
|
patterns = builder.patterns(device_id, keywords)
|
57
55
|
|
58
56
|
expect(patterns.size).to eq 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: device_map
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Konstantin Papkovskiy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|