device_map 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/device_map.gemspec +2 -0
- data/lib/device_map/device_data/device.rb +5 -3
- data/lib/device_map/properties/dsl.rb +5 -5
- data/lib/device_map/properties/property.rb +1 -1
- data/lib/device_map/version.rb +2 -2
- data/lib/resources/BuilderDataSource.xml +185 -5
- data/lib/resources/DeviceDataSource.xml +235 -3
- data/spec/properties/dsl_spec.rb +5 -5
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0392b633519e80e2023b83b0043fe5dd5838ff8b
|
4
|
+
data.tar.gz: 3a5ec12190d3892682bc6e3ff7295c6ccbc52329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b54b2910f64eacd95915918044bb929e2c34b2a8210b5d9090c7043c8f839b25983ae3e87f69e78d17ad2799dbfb72080ab2e4d66d650d11df63c19b8fb5b480
|
7
|
+
data.tar.gz: 4c0093cf0ab615275cd70e7ff1cb4f78651fcafa97da6f10cf2620dd7f0ec48ea1725a0d8db1cbe75ab802d93227cf5505fbed4e7b7023128461581cd3312df4
|
data/device_map.gemspec
CHANGED
@@ -12,13 +12,13 @@ module DeviceMap
|
|
12
12
|
property :ajax_support_javascript, type: :boolean
|
13
13
|
property :device_os, type: :string
|
14
14
|
property :device_os_version, type: :string
|
15
|
-
property :
|
16
|
-
property :
|
15
|
+
property :display_height, type: :integer, source_name: :displayHeight
|
16
|
+
property :display_width, type: :integer, source_name: :displayWidth
|
17
17
|
property :dual_orientation, type: :boolean
|
18
18
|
property :from, type: :string
|
19
19
|
property :id, type: :string
|
20
20
|
property :image_inlining, type: :boolean
|
21
|
-
property :
|
21
|
+
property :input_devices, type: :string, source_name: :inputDevices
|
22
22
|
property :is_bot, type: :boolean
|
23
23
|
property :is_desktop, type: :boolean
|
24
24
|
property :is_tablet, type: :boolean
|
@@ -29,6 +29,8 @@ module DeviceMap
|
|
29
29
|
property :model, type: :string
|
30
30
|
property :nokia_edition, type: :string
|
31
31
|
property :nokia_series, type: :string
|
32
|
+
property :pixel_density_ppi, type: :integer
|
33
|
+
property :release_year, type: :integer, source_name: :'release-year'
|
32
34
|
property :vendor, type: :string
|
33
35
|
property :xhtml_format_as_attribute, type: :boolean
|
34
36
|
property :xhtml_format_as_css_property, type: :boolean
|
@@ -4,9 +4,9 @@ module DeviceMap
|
|
4
4
|
|
5
5
|
module DSL
|
6
6
|
module ClassMethods
|
7
|
-
def property(name, type: :string,
|
8
|
-
attr_reader
|
9
|
-
properties[
|
7
|
+
def property(name, type: :string, source_name: name)
|
8
|
+
attr_reader name
|
9
|
+
properties[source_name] = Property.new(name, type, source_name)
|
10
10
|
end
|
11
11
|
|
12
12
|
# FIXME: This method should not be public
|
@@ -25,7 +25,7 @@ module DeviceMap
|
|
25
25
|
fail UnknownProperty, "Property #{name} is not defined"
|
26
26
|
end
|
27
27
|
|
28
|
-
attr_name = property.
|
28
|
+
attr_name = property.name
|
29
29
|
casted_value = property.cast(value)
|
30
30
|
instance_variable_set(:"@#{attr_name}", casted_value)
|
31
31
|
end
|
@@ -33,7 +33,7 @@ module DeviceMap
|
|
33
33
|
|
34
34
|
def ==(other)
|
35
35
|
properties.all? do |_, property|
|
36
|
-
attr_name = property.
|
36
|
+
attr_name = property.name
|
37
37
|
public_send(attr_name) == other.public_send(attr_name)
|
38
38
|
end
|
39
39
|
end
|
data/lib/device_map/version.rb
CHANGED
@@ -17,9 +17,9 @@
|
|
17
17
|
-->
|
18
18
|
<ODDR>
|
19
19
|
<version>
|
20
|
-
<ver>1.0.
|
21
|
-
<last_updated>
|
22
|
-
<official_url>http://
|
20
|
+
<ver>1.0.2</ver>
|
21
|
+
<last_updated>2015-02-05 18:41:31</last_updated>
|
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>
|
25
25
|
<Builders>
|
@@ -173,6 +173,35 @@
|
|
173
173
|
<value>SM-G900M</value>
|
174
174
|
</list>
|
175
175
|
</device>
|
176
|
+
<device id="SM-G900">
|
177
|
+
<list>
|
178
|
+
<value>SM-G900</value>
|
179
|
+
<value>SM-G9006V</value>
|
180
|
+
<value>SM-G9008V</value>
|
181
|
+
<value>SM-G9009D</value>
|
182
|
+
<value>SM-G9009W</value>
|
183
|
+
<value>SM-G900A</value>
|
184
|
+
<value>SM-G900AZ</value>
|
185
|
+
<value>SM-G900F</value>
|
186
|
+
<value>SM-G900FD</value>
|
187
|
+
<value>SM-G900FQ</value>
|
188
|
+
<value>SM-G900H</value>
|
189
|
+
<value>SM-G900I</value>
|
190
|
+
<value>SM-G900K</value>
|
191
|
+
<value>SM-G900MD</value>
|
192
|
+
<value>SM-G900P</value>
|
193
|
+
<value>SM-G900R4</value>
|
194
|
+
<value>SM-G900R6</value>
|
195
|
+
<value>SM-G900R7</value>
|
196
|
+
<value>SM-G900S</value>
|
197
|
+
<value>SM-G900T1</value>
|
198
|
+
<value>SM-G900V</value>
|
199
|
+
<value>SM-G900W</value>
|
200
|
+
<value>SM-G900W8</value>
|
201
|
+
<value>SM-G900X</value>
|
202
|
+
<value>SM-G901F</value>
|
203
|
+
</list>
|
204
|
+
</device>
|
176
205
|
<device id="HuaweiU8180">
|
177
206
|
<list>
|
178
207
|
<value>U8180</value>
|
@@ -680,7 +709,7 @@
|
|
680
709
|
</device>
|
681
710
|
<device id="SAMSUNG SM-P901">
|
682
711
|
<list>
|
683
|
-
<value>
|
712
|
+
<value>SM-P901</value>
|
684
713
|
</list>
|
685
714
|
</device>
|
686
715
|
<device id="EK-GC200">
|
@@ -853,6 +882,34 @@
|
|
853
882
|
<value>XT1032</value>
|
854
883
|
</list>
|
855
884
|
</device>
|
885
|
+
<device id="SM-N910">
|
886
|
+
<list>
|
887
|
+
<value>SM-N910</value>
|
888
|
+
<value>SM-N910A</value>
|
889
|
+
<value>SM-N910C</value>
|
890
|
+
<value>SM-N910D</value>
|
891
|
+
<value>SM-N910F</value>
|
892
|
+
<value>SM-N910G</value>
|
893
|
+
<value>SM-N910H</value>
|
894
|
+
<value>SM-N910J</value>
|
895
|
+
<value>SM-N910K</value>
|
896
|
+
<value>SM-N910L</value>
|
897
|
+
<value>SM-N910P</value>
|
898
|
+
<value>SM-N910R4</value>
|
899
|
+
<value>SM-N910T</value>
|
900
|
+
<value>SM-N910U</value>
|
901
|
+
<value>SM-N910S</value>
|
902
|
+
<value>SM-N910V</value>
|
903
|
+
<value>SM-N910W8</value>
|
904
|
+
<value>SM-N915F</value>
|
905
|
+
<value>SM-N915S</value>
|
906
|
+
<value>SM-N9106V</value>
|
907
|
+
<value>SM-N9106W</value>
|
908
|
+
<value>SM-N9108V</value>
|
909
|
+
<value>SM-N9108W</value>
|
910
|
+
<value>SM-N9109W</value>
|
911
|
+
</list>
|
912
|
+
</device>
|
856
913
|
<device id="SM-N9008V">
|
857
914
|
<list>
|
858
915
|
<value>SM-N9008V</value>
|
@@ -1348,6 +1405,16 @@
|
|
1348
1405
|
<value>Xperia Tablet Z LTE</value>
|
1349
1406
|
</list>
|
1350
1407
|
</device>
|
1408
|
+
<device id="SGP311">
|
1409
|
+
<list>
|
1410
|
+
<value>SGP311</value>
|
1411
|
+
</list>
|
1412
|
+
</device>
|
1413
|
+
<device id="SGP312">
|
1414
|
+
<list>
|
1415
|
+
<value>SGP312</value>
|
1416
|
+
</list>
|
1417
|
+
</device>
|
1351
1418
|
<device id="LG-P880">
|
1352
1419
|
<list>
|
1353
1420
|
<value>Optimus 4X HD</value>
|
@@ -1496,6 +1563,7 @@
|
|
1496
1563
|
<device id="SM-P905">
|
1497
1564
|
<list>
|
1498
1565
|
<value>SM-P905</value>
|
1566
|
+
<value>SM-P905M</value>
|
1499
1567
|
</list>
|
1500
1568
|
</device>
|
1501
1569
|
<device id="LG-V507L">
|
@@ -1538,6 +1606,17 @@
|
|
1538
1606
|
<value>SM-P601</value>
|
1539
1607
|
</list>
|
1540
1608
|
</device>
|
1609
|
+
<device id="SM-P602">
|
1610
|
+
<list>
|
1611
|
+
<value>SM-P602</value>
|
1612
|
+
</list>
|
1613
|
+
</device>
|
1614
|
+
<device id="SM-P607">
|
1615
|
+
<list>
|
1616
|
+
<value>SM-P607</value>
|
1617
|
+
<value>SM-P607T</value>
|
1618
|
+
</list>
|
1619
|
+
</device>
|
1541
1620
|
<device id="SM-T217S">
|
1542
1621
|
<list>
|
1543
1622
|
<value>SM-T217S</value>
|
@@ -1708,6 +1787,77 @@
|
|
1708
1787
|
<value>SM-T210</value>
|
1709
1788
|
</list>
|
1710
1789
|
</device>
|
1790
|
+
<device id="SM-T212">
|
1791
|
+
<list>
|
1792
|
+
<value>SM-T212</value>
|
1793
|
+
</list>
|
1794
|
+
</device>
|
1795
|
+
<device id="SM-T312">
|
1796
|
+
<list>
|
1797
|
+
<value>SM-T312</value>
|
1798
|
+
</list>
|
1799
|
+
</device>
|
1800
|
+
<device id="SM-T230">
|
1801
|
+
<list>
|
1802
|
+
<value>SM-T230</value>
|
1803
|
+
<value>SM-T230NU</value>
|
1804
|
+
<value>SM-T230NT</value>
|
1805
|
+
<value>SM-T231</value>
|
1806
|
+
<value>SM-T235</value>
|
1807
|
+
<value>SM-T235Y</value>
|
1808
|
+
</list>
|
1809
|
+
</device>
|
1810
|
+
<device id="SM-T330">
|
1811
|
+
<list>
|
1812
|
+
<value>SM-T330</value>
|
1813
|
+
<value>SM-T330NU</value>
|
1814
|
+
<value>SM-T331</value>
|
1815
|
+
<value>SM-T335</value>
|
1816
|
+
<value>SM-T337A</value>
|
1817
|
+
<value>SM-T337T</value>
|
1818
|
+
<value>SM-T337V</value>
|
1819
|
+
</list>
|
1820
|
+
</device>
|
1821
|
+
<device id="SM-T530">
|
1822
|
+
<list>
|
1823
|
+
<value>SM-T530</value>
|
1824
|
+
<value>SM-T530NU</value>
|
1825
|
+
<value>SM-T531</value>
|
1826
|
+
<value>SM-T535</value>
|
1827
|
+
<value>SM-T537A</value>
|
1828
|
+
<value>SM-T537V</value>
|
1829
|
+
</list>
|
1830
|
+
</device>
|
1831
|
+
<device id="SM-T320">
|
1832
|
+
<list>
|
1833
|
+
<value>SM-T320</value>
|
1834
|
+
</list>
|
1835
|
+
</device>
|
1836
|
+
<device id="SM-T365">
|
1837
|
+
<list>
|
1838
|
+
<value>SM-T365</value>
|
1839
|
+
</list>
|
1840
|
+
</device>
|
1841
|
+
<device id="SM-T700">
|
1842
|
+
<list>
|
1843
|
+
<value>SM-T700</value>
|
1844
|
+
<value>SM-T705</value>
|
1845
|
+
<value>SM-T705M</value>
|
1846
|
+
<value>SM-T705C</value>
|
1847
|
+
<value>SM-T705Y</value>
|
1848
|
+
</list>
|
1849
|
+
</device>
|
1850
|
+
<device id="SM-T800">
|
1851
|
+
<list>
|
1852
|
+
<value>SM-T800</value>
|
1853
|
+
<value>SM-T800X</value>
|
1854
|
+
<value>SM-T805</value>
|
1855
|
+
<value>SM-T805M</value>
|
1856
|
+
<value>SM-T805W</value>
|
1857
|
+
<value>SM-T805Y</value>
|
1858
|
+
<value>SM-T807P</value>
|
1859
|
+
</list>
|
1860
|
+
</device>
|
1711
1861
|
<device id="GT-N7108D">
|
1712
1862
|
<list>
|
1713
1863
|
<value>GT-N7108D</value>
|
@@ -2108,6 +2258,26 @@
|
|
2108
2258
|
<value>SM-C101</value>
|
2109
2259
|
</list>
|
2110
2260
|
</device>
|
2261
|
+
<device id="SM-C105">
|
2262
|
+
<list>
|
2263
|
+
<value>SM-C105</value>
|
2264
|
+
<value>SM-C105L</value>
|
2265
|
+
<value>SM-C105S</value>
|
2266
|
+
</list>
|
2267
|
+
</device>
|
2268
|
+
<device id="SM-C111">
|
2269
|
+
<list>
|
2270
|
+
<value>SM-C111</value>
|
2271
|
+
<value>SM-C111M</value>
|
2272
|
+
</list>
|
2273
|
+
</device>
|
2274
|
+
<device id="SM-C115">
|
2275
|
+
<list>
|
2276
|
+
<value>SM-C115</value>
|
2277
|
+
<value>SM-C115L</value>
|
2278
|
+
<value>SM-C115M</value>
|
2279
|
+
</list>
|
2280
|
+
</device>
|
2111
2281
|
<device id="SH-05E">
|
2112
2282
|
<list>
|
2113
2283
|
<value>SH-05E</value>
|
@@ -2593,6 +2763,11 @@
|
|
2593
2763
|
<value>LG-E977</value>
|
2594
2764
|
</list>
|
2595
2765
|
</device>
|
2766
|
+
<device id="ME102">
|
2767
|
+
<list>
|
2768
|
+
<value>K00F</value>
|
2769
|
+
</list>
|
2770
|
+
</device>
|
2596
2771
|
<device id="ME301T">
|
2597
2772
|
<list>
|
2598
2773
|
<value>ME301T</value>
|
@@ -4133,6 +4308,11 @@
|
|
4133
4308
|
<value>Nexus 7</value>
|
4134
4309
|
</list>
|
4135
4310
|
</device>
|
4311
|
+
<device id="Nexus9">
|
4312
|
+
<list>
|
4313
|
+
<value>Nexus 9</value>
|
4314
|
+
</list>
|
4315
|
+
</device>
|
4136
4316
|
<device id="ST21i2">
|
4137
4317
|
<list>
|
4138
4318
|
<value>ST21i2</value>
|
@@ -4545,7 +4725,7 @@
|
|
4545
4725
|
</device>
|
4546
4726
|
<device id="DROID X2">
|
4547
4727
|
<list>
|
4548
|
-
<value>
|
4728
|
+
<value>DROID X2</value>
|
4549
4729
|
</list>
|
4550
4730
|
</device>
|
4551
4731
|
<device id="SonyEricssonLT22i">
|
@@ -17,9 +17,9 @@
|
|
17
17
|
-->
|
18
18
|
<ODDR>
|
19
19
|
<version>
|
20
|
-
<ver>1.0.
|
21
|
-
<last_updated>
|
22
|
-
<official_url>http://
|
20
|
+
<ver>1.0.2</ver>
|
21
|
+
<last_updated>2015-02-05 18:41:31</last_updated>
|
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>
|
25
25
|
<Devices>
|
@@ -29087,6 +29087,26 @@
|
|
29087
29087
|
<property name="inputDevices" value="touchscreen"/>
|
29088
29088
|
<property name="from" value="oddr"/>
|
29089
29089
|
</device>
|
29090
|
+
<device id="Nexus9" parentId="genericGoogle">
|
29091
|
+
<property name="model" value="Nexus 9"/>
|
29092
|
+
<property name="displayWidth" value="1536"/>
|
29093
|
+
<property name="displayHeight" value="2048"/>
|
29094
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
29095
|
+
<property name="device_os" value="Android"/>
|
29096
|
+
<property name="device_os_version" value="5.0"/>
|
29097
|
+
<property name="dual_orientation" value="true"/>
|
29098
|
+
<property name="is_tablet" value="true"/>
|
29099
|
+
<property name="ajax_support_javascript" value="true"/>
|
29100
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
29101
|
+
<property name="ajax_support_inner_html" value="true"/>
|
29102
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
29103
|
+
<property name="ajax_manipulate_css" value="true"/>
|
29104
|
+
<property name="ajax_support_events" value="true"/>
|
29105
|
+
<property name="ajax_support_event_listener" value="true"/>
|
29106
|
+
<property name="image_inlining" value="true"/>
|
29107
|
+
<property name="inputDevices" value="touchscreen"/>
|
29108
|
+
<property name="from" value="devicemap"/>
|
29109
|
+
</device>
|
29090
29110
|
<device id="SCH-S720C" parentId="genericSamsung">
|
29091
29111
|
<property name="model" value="SCH-S720C"/>
|
29092
29112
|
<property name="marketing_name" value="Galaxy Proclaim"/>
|
@@ -35173,6 +35193,27 @@
|
|
35173
35193
|
<property name="image_inlining" value="true"/>
|
35174
35194
|
<property name="from" value="oddr"/>
|
35175
35195
|
</device>
|
35196
|
+
<device id="ME102" parentId="genericAsus">
|
35197
|
+
<property name="model" value="ME102"/>
|
35198
|
+
<property name="marketing_name" value="MeMO Pad"/>
|
35199
|
+
<property name="displayWidth" value="800"/>
|
35200
|
+
<property name="displayHeight" value="1280"/>
|
35201
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
35202
|
+
<property name="device_os" value="Android"/>
|
35203
|
+
<property name="device_os_version" value="4.1.1"/>
|
35204
|
+
<property name="inputDevices" value="touchscreen"/>
|
35205
|
+
<property name="dual_orientation" value="true"/>
|
35206
|
+
<property name="is_tablet" value="true"/>
|
35207
|
+
<property name="ajax_support_javascript" value="true"/>
|
35208
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
35209
|
+
<property name="ajax_support_inner_html" value="true"/>
|
35210
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
35211
|
+
<property name="ajax_manipulate_css" value="true"/>
|
35212
|
+
<property name="ajax_support_events" value="true"/>
|
35213
|
+
<property name="ajax_support_event_listener" value="true"/>
|
35214
|
+
<property name="image_inlining" value="true"/>
|
35215
|
+
<property name="from" value="devicemap"/>
|
35216
|
+
</device>
|
35176
35217
|
<device id="ME301T" parentId="genericAsus">
|
35177
35218
|
<property name="model" value="ME301T"/>
|
35178
35219
|
<property name="marketing_name" value="MeMO Pad"/>
|
@@ -35414,6 +35455,30 @@
|
|
35414
35455
|
<property name="image_inlining" value="true"/>
|
35415
35456
|
<property name="from" value="oddr"/>
|
35416
35457
|
</device>
|
35458
|
+
<device id="SGP311" parentId="genericSonyEricsson">
|
35459
|
+
<property name="model" value="SGP311"/>
|
35460
|
+
<property name="marketing_name" value="Xperia Tablet Z"/>
|
35461
|
+
<property name="displayWidth" value="1200"/>
|
35462
|
+
<property name="displayHeight" value="1920"/>
|
35463
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
35464
|
+
<property name="device_os" value="Android"/>
|
35465
|
+
<property name="device_os_version" value="4.1.2"/>
|
35466
|
+
<property name="dual_orientation" value="true"/>
|
35467
|
+
<property name="inputDevices" value="touchscreen"/>
|
35468
|
+
<property name="is_tablet" value="true"/>
|
35469
|
+
<property name="ajax_support_javascript" value="true"/>
|
35470
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
35471
|
+
<property name="ajax_support_inner_html" value="true"/>
|
35472
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
35473
|
+
<property name="ajax_manipulate_css" value="true"/>
|
35474
|
+
<property name="ajax_support_events" value="true"/>
|
35475
|
+
<property name="ajax_support_event_listener" value="true"/>
|
35476
|
+
<property name="image_inlining" value="true"/>
|
35477
|
+
<property name="from" value="devicemap"/>
|
35478
|
+
</device>
|
35479
|
+
<device id="SGP312" parentId="SGP311">
|
35480
|
+
<property name="model" value="SGP312"/>
|
35481
|
+
</device>
|
35417
35482
|
<device id="GT-I9505" parentId="genericSamsung">
|
35418
35483
|
<property name="model" value="GT-I9505"/>
|
35419
35484
|
<property name="marketing_name" value="Galaxy S IV"/>
|
@@ -37071,6 +37136,33 @@
|
|
37071
37136
|
<property name="inputDevices" value="touchscreen"/>
|
37072
37137
|
<property name="from" value="oddr"/>
|
37073
37138
|
</device>
|
37139
|
+
<device id="SM-C105" parentId="SM-C101">
|
37140
|
+
<property name="model" value="SM-C105"/>
|
37141
|
+
<property name="from" value="devicemap"/>
|
37142
|
+
</device>
|
37143
|
+
<device id="SM-C111" parentId="genericSamsung">
|
37144
|
+
<property name="model" value="SM-C111"/>
|
37145
|
+
<property name="marketing_name" value="Galaxy K Zoom"/>
|
37146
|
+
<property name="displayWidth" value="720"/>
|
37147
|
+
<property name="displayHeight" value="1280"/>
|
37148
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
37149
|
+
<property name="device_os" value="Android"/>
|
37150
|
+
<property name="device_os_version" value="4.2.2"/>
|
37151
|
+
<property name="dual_orientation" value="true"/>
|
37152
|
+
<property name="ajax_support_javascript" value="true"/>
|
37153
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
37154
|
+
<property name="ajax_support_inner_html" value="true"/>
|
37155
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
37156
|
+
<property name="ajax_manipulate_css" value="true"/>
|
37157
|
+
<property name="ajax_support_events" value="true"/>
|
37158
|
+
<property name="ajax_support_event_listener" value="true"/>
|
37159
|
+
<property name="image_inlining" value="true"/>
|
37160
|
+
<property name="inputDevices" value="touchscreen"/>
|
37161
|
+
<property name="from" value="devicemap"/>
|
37162
|
+
</device>
|
37163
|
+
<device id="SM-C115" parentId="SM-C111">
|
37164
|
+
<property name="model" value="SM-C115"/>
|
37165
|
+
</device>
|
37074
37166
|
<device id="F-06E" parentId="genericFujitsu">
|
37075
37167
|
<property name="model" value="F-06E"/>
|
37076
37168
|
<property name="marketing_name" value="Arrows NX"/>
|
@@ -38419,6 +38511,26 @@
|
|
38419
38511
|
<property name="inputDevices" value="touchscreen"/>
|
38420
38512
|
<property name="from" value="oddr"/>
|
38421
38513
|
</device>
|
38514
|
+
<device id="SM-N910" parentId="genericSamsung">
|
38515
|
+
<property name="model" value="SM-N910"/>
|
38516
|
+
<property name="marketing_name" value="Galaxy Note 4"/>
|
38517
|
+
<property name="displayWidth" value="1440"/>
|
38518
|
+
<property name="displayHeight" value="2560"/>
|
38519
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
38520
|
+
<property name="device_os" value="Android"/>
|
38521
|
+
<property name="device_os_version" value="4.4"/>
|
38522
|
+
<property name="dual_orientation" value="true"/>
|
38523
|
+
<property name="ajax_support_javascript" value="true"/>
|
38524
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
38525
|
+
<property name="ajax_support_inner_html" value="true"/>
|
38526
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
38527
|
+
<property name="ajax_manipulate_css" value="true"/>
|
38528
|
+
<property name="ajax_support_events" value="true"/>
|
38529
|
+
<property name="ajax_support_event_listener" value="true"/>
|
38530
|
+
<property name="image_inlining" value="true"/>
|
38531
|
+
<property name="inputDevices" value="touchscreen"/>
|
38532
|
+
<property name="from" value="devicemap"/>
|
38533
|
+
</device>
|
38422
38534
|
<device id="SM-N900T" parentId="genericSamsung">
|
38423
38535
|
<property name="model" value="SM-N900T"/>
|
38424
38536
|
<property name="marketing_name" value="Galaxy Note 3"/>
|
@@ -38560,6 +38672,14 @@
|
|
38560
38672
|
<property name="inputDevices" value="touchscreen"/>
|
38561
38673
|
<property name="from" value="oddr"/>
|
38562
38674
|
</device>
|
38675
|
+
<device id="SM-P602" parentId="SM-P600">
|
38676
|
+
<property name="model" value="SM-P602"/>
|
38677
|
+
<property name="from" value="devicemap"/>
|
38678
|
+
</device>
|
38679
|
+
<device id="SM-P607" parentId="SM-P600">
|
38680
|
+
<property name="model" value="SM-P607"/>
|
38681
|
+
<property name="from" value="devicemap"/>
|
38682
|
+
</device>
|
38563
38683
|
<device id="SM-P605" parentId="genericSamsung">
|
38564
38684
|
<property name="model" value="SM-P605"/>
|
38565
38685
|
<property name="marketing_name" value="Galaxy Note 10.1 2014 LTE"/>
|
@@ -39363,6 +39483,97 @@
|
|
39363
39483
|
<property name="inputDevices" value="touchscreen"/>
|
39364
39484
|
<property name="from" value="oddr"/>
|
39365
39485
|
</device>
|
39486
|
+
<device id="genericGalaxyTab" parentId="genericSamsung">
|
39487
|
+
<property name="model" value="SM-T"/>
|
39488
|
+
<property name="marketing_name" value="Galaxy Tab" />
|
39489
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
39490
|
+
<property name="device_os" value="Android"/>
|
39491
|
+
<property name="device_os_version" value="4.2"/>
|
39492
|
+
<property name="dual_orientation" value="true"/>
|
39493
|
+
<property name="is_tablet" value="true"/>
|
39494
|
+
<property name="ajax_support_javascript" value="true"/>
|
39495
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
39496
|
+
<property name="ajax_support_inner_html" value="true"/>
|
39497
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
39498
|
+
<property name="ajax_manipulate_css" value="true"/>
|
39499
|
+
<property name="ajax_support_events" value="true"/>
|
39500
|
+
<property name="ajax_support_event_listener" value="true"/>
|
39501
|
+
<property name="image_inlining" value="true"/>
|
39502
|
+
<property name="inputDevices" value="touchscreen"/>
|
39503
|
+
<property name="from" value="devicemap"/>
|
39504
|
+
</device>
|
39505
|
+
<device id="SM-T212" parentId="genericGalaxyTab">
|
39506
|
+
<property name="model" value="SM-T212"/>
|
39507
|
+
<property name="marketing_name" value="Galaxy Tab 3 7.0" />
|
39508
|
+
<property name="displayWidth" value="600"/>
|
39509
|
+
<property name="displayHeight" value="1024"/>
|
39510
|
+
<property name="pixel_density_ppi" value="170"/>
|
39511
|
+
<property name="release-year" value="2013"/>
|
39512
|
+
</device>
|
39513
|
+
<device id="SM-T312" parentId="genericGalaxyTab">
|
39514
|
+
<property name="model" value="SM-T312"/>
|
39515
|
+
<property name="marketing_name" value="Galaxy Tab 3 8.0" />
|
39516
|
+
<property name="displayWidth" value="800"/>
|
39517
|
+
<property name="displayHeight" value="1280"/>
|
39518
|
+
<property name="pixel_density_ppi" value="189"/>
|
39519
|
+
<property name="release-year" value="2013"/>
|
39520
|
+
</device>
|
39521
|
+
<device id="SM-T230" parentId="genericGalaxyTab">
|
39522
|
+
<property name="model" value="SM-T230"/>
|
39523
|
+
<property name="marketing_name" value="Galaxy Tab 4 7.0" />
|
39524
|
+
<property name="displayWidth" value="800"/>
|
39525
|
+
<property name="displayHeight" value="1280"/>
|
39526
|
+
<property name="pixel_density_ppi" value="216"/>
|
39527
|
+
<property name="release-year" value="2014"/>
|
39528
|
+
</device>
|
39529
|
+
<device id="SM-T330" parentId="genericGalaxyTab">
|
39530
|
+
<property name="model" value="SM-T330"/>
|
39531
|
+
<property name="marketing_name" value="Galaxy Tab 4 8.0" />
|
39532
|
+
<property name="displayWidth" value="800"/>
|
39533
|
+
<property name="displayHeight" value="1280"/>
|
39534
|
+
<property name="pixel_density_ppi" value="189"/>
|
39535
|
+
<property name="release-year" value="2014"/>
|
39536
|
+
</device>
|
39537
|
+
<device id="SM-T530" parentId="genericGalaxyTab">
|
39538
|
+
<property name="model" value="SM-T530"/>
|
39539
|
+
<property name="marketing_name" value="Galaxy Tab 4 10.1" />
|
39540
|
+
<property name="displayWidth" value="800"/>
|
39541
|
+
<property name="displayHeight" value="1280"/>
|
39542
|
+
<property name="pixel_density_ppi" value="149"/>
|
39543
|
+
<property name="release-year" value="2014"/>
|
39544
|
+
</device>
|
39545
|
+
<device id="SM-T320" parentId="genericGalaxyTab">
|
39546
|
+
<property name="model" value="SM-T320"/>
|
39547
|
+
<property name="marketing_name" value="Galaxy Tab Pro 8.4" />
|
39548
|
+
<property name="displayWidth" value="1600"/>
|
39549
|
+
<property name="displayHeight" value="2560"/>
|
39550
|
+
<property name="pixel_density_ppi" value="359"/>
|
39551
|
+
<property name="release-year" value="2014"/>
|
39552
|
+
</device>
|
39553
|
+
<device id="SM-T365" parentId="genericGalaxyTab">
|
39554
|
+
<property name="model" value="SM-T365"/>
|
39555
|
+
<property name="marketing_name" value="Galaxy Tab Active" />
|
39556
|
+
<property name="displayWidth" value="800"/>
|
39557
|
+
<property name="displayHeight" value="1200"/>
|
39558
|
+
<property name="pixel_density_ppi" value="189"/>
|
39559
|
+
<property name="release-year" value="2014"/>
|
39560
|
+
</device>
|
39561
|
+
<device id="SM-T700" parentId="genericGalaxyTab">
|
39562
|
+
<property name="model" value="SM-T700"/>
|
39563
|
+
<property name="marketing_name" value="Galaxy Tab S 8.4" />
|
39564
|
+
<property name="displayWidth" value="1600"/>
|
39565
|
+
<property name="displayHeight" value="2560"/>
|
39566
|
+
<property name="pixel_density_ppi" value="359"/>
|
39567
|
+
<property name="release-year" value="2014"/>
|
39568
|
+
</device>
|
39569
|
+
<device id="SM-T800" parentId="genericGalaxyTab">
|
39570
|
+
<property name="model" value="SM-T800"/>
|
39571
|
+
<property name="marketing_name" value="Galaxy Tab S 10.5" />
|
39572
|
+
<property name="displayWidth" value="1600"/>
|
39573
|
+
<property name="displayHeight" value="2560"/>
|
39574
|
+
<property name="pixel_density_ppi" value="288"/>
|
39575
|
+
<property name="release-year" value="2014"/>
|
39576
|
+
</device>
|
39366
39577
|
<device id="SM-T217S" parentId="genericSamsung">
|
39367
39578
|
<property name="model" value="SM-T217S"/>
|
39368
39579
|
<property name="marketing_name" value="Galaxy Tab 3 7.0" />
|
@@ -44463,6 +44674,27 @@
|
|
44463
44674
|
<property name="image_inlining" value="true"/>
|
44464
44675
|
<property name="from" value="oddr"/>
|
44465
44676
|
</device>
|
44677
|
+
<device id="SM-G900" parentId="genericSamsung">
|
44678
|
+
<property name="model" value="SM-G900"/>
|
44679
|
+
<property name="marketing_name" value="Galaxy S5"/>
|
44680
|
+
<property name="displayWidth" value="1080"/>
|
44681
|
+
<property name="displayHeight" value="1920"/>
|
44682
|
+
<property name="pixel_density_ppi" value="432"/>
|
44683
|
+
<property name="mobile_browser" value="Android Webkit"/>
|
44684
|
+
<property name="device_os" value="Android"/>
|
44685
|
+
<property name="device_os_version" value="4.4.2"/>
|
44686
|
+
<property name="inputDevices" value="touchscreen"/>
|
44687
|
+
<property name="dual_orientation" value="true"/>
|
44688
|
+
<property name="ajax_support_javascript" value="true"/>
|
44689
|
+
<property name="ajax_support_getelementbyid" value="true"/>
|
44690
|
+
<property name="ajax_support_inner_html" value="true"/>
|
44691
|
+
<property name="ajax_manipulate_dom" value="true"/>
|
44692
|
+
<property name="ajax_manipulate_css" value="true"/>
|
44693
|
+
<property name="ajax_support_events" value="true"/>
|
44694
|
+
<property name="ajax_support_event_listener" value="true"/>
|
44695
|
+
<property name="image_inlining" value="true"/>
|
44696
|
+
<property name="from" value="devicemap"/>
|
44697
|
+
</device>
|
44466
44698
|
<device id="SAMSUNG GT-I8200" parentId="genericSamsung">
|
44467
44699
|
<property name="model" value="GT-I8200"/>
|
44468
44700
|
<property name="marketing_name" value="Galaxy S III Mini"/>
|
data/spec/properties/dsl_spec.rb
CHANGED
@@ -16,11 +16,11 @@ RSpec.describe DeviceMap::Properties::DSL do
|
|
16
16
|
expect(model_instance.property).to eq property_value
|
17
17
|
end
|
18
18
|
|
19
|
-
it 'allows to change
|
20
|
-
|
21
|
-
model.property :property,
|
22
|
-
model_instance = model.new(
|
23
|
-
expect(model_instance.
|
19
|
+
it 'allows to change source propery name' do
|
20
|
+
other_property_name, other_property_value = 'other_property', 'test'
|
21
|
+
model.property :property, source_name: other_property_name.to_sym
|
22
|
+
model_instance = model.new(other_property_name => other_property_value)
|
23
|
+
expect(model_instance.property).to eq other_property_value
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'can cast property value to integer' do
|
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.1
|
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-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -152,7 +152,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
152
152
|
requirements:
|
153
153
|
- - ">="
|
154
154
|
- !ruby/object:Gem::Version
|
155
|
-
version: '0'
|
155
|
+
version: '2.0'
|
156
156
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
157
|
requirements:
|
158
158
|
- - ">="
|