ios-devices 0.2.12 → 0.2.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3cf6d8d06671beb890e9cc864cf712fca234af0b6f9461401c25de94d0df38ed
4
- data.tar.gz: 677afe123d1dd0176e4f3327663f2e201beacfd595f8014c49ecfb7e7d7d5fe7
3
+ metadata.gz: '097138863ae81d07c5060ab426bc5cb7249fff2fff608310e500e3ebdd80d036'
4
+ data.tar.gz: ecf13be69c71effe1c7dd542e2c0db6ea550a5cca456ba2d69197ea806f4e2df
5
5
  SHA512:
6
- metadata.gz: 91385c843626292640096c7a201cb709f1db6beb055e3670d52089d49a4c7e18c46485d2c707404629eeb79df717cea6152f03d628367a973f1df23e57d8be52
7
- data.tar.gz: a8faa04d4cc7af46d144ee4009f6729a9696060f542d17e154d13854b65317fcc7579c34fb522888a1f64c3c84439b622446e5b15ee97e542a0d17ab336a2d67
6
+ metadata.gz: 32eeed954a8a23a9603dbb58f43f7d50c6b9158035b41dd3e1dda56379e41547f5dd9e7cdeae8987a73becadc5e6af6d1c914e340c7235550b6b2ae63d10683b
7
+ data.tar.gz: 34a24d1babd3a516940995414fd1f07a036b781142debc5fb2920d1debbc274f563310d292b48ad9ee2c99f4391447c08995ca6c4da6271f5b0e345067595a0c
data/.gitignore CHANGED
@@ -13,3 +13,4 @@
13
13
  *.o
14
14
  *.a
15
15
  mkmf.log
16
+ .DS_Store
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ios
4
4
  module Devices
5
- VERSION = '0.2.12'
5
+ VERSION = '0.2.13'
6
6
  end
7
7
  end
data/lib/ios/devices.rb CHANGED
@@ -18,7 +18,7 @@ module Ios
18
18
  # This list was taken from here:
19
19
  # http://support.hockeyapp.net/kb/client-integration-ios-mac-os-x/ios-device-types
20
20
  case device_type
21
- when 'x86_64'
21
+ when 'i386', 'x86_64', 'arm64'
22
22
  Model.new(device_type, 'iOS Simulator')
23
23
  when 'iPhone1,1'
24
24
  Model.new(device_type, 'iPhone')
@@ -28,6 +28,8 @@ module Ios
28
28
  Model.new(device_type, 'iPhone 3GS')
29
29
  when 'iPhone3,1'
30
30
  Model.new(device_type, 'iPhone 4', 'GSM')
31
+ when 'iPhone3,2'
32
+ Model.new(device_type, 'iPhone 4', 'GSM Rev A')
31
33
  when 'iPhone3,3'
32
34
  Model.new(device_type, 'iPhone 4', 'CDMA')
33
35
  when 'iPhone4,1'
@@ -60,7 +62,7 @@ module Ios
60
62
  Model.new(device_type, 'iPhone X')
61
63
  when 'iPhone11,2'
62
64
  Model.new(device_type, 'iPhone XS')
63
- when 'iPhone11,6'
65
+ when 'iPhone11,4', 'iPhone11,6'
64
66
  Model.new(device_type, 'iPhone XS Max')
65
67
  when 'iPhone11,8'
66
68
  Model.new(device_type, 'iPhone XR')
@@ -80,6 +82,14 @@ module Ios
80
82
  Model.new(device_type, 'iPhone 12 Pro')
81
83
  when 'iPhone13,4'
82
84
  Model.new(device_type, 'iPhone 12 Pro Max')
85
+ when 'iPhone14,2'
86
+ Model.new(device_type, 'iPhone 13 Pro')
87
+ when 'iPhone14,3'
88
+ Model.new(device_type, 'iPhone 13 Pro Max')
89
+ when 'iPhone14,4'
90
+ Model.new(device_type, 'iPhone 13 Mini')
91
+ when 'iPhone14,5'
92
+ Model.new(device_type, 'iPhone 13')
83
93
  when 'iPad1,1'
84
94
  Model.new(device_type, 'iPad')
85
95
  when 'iPad2,1'
@@ -172,6 +182,14 @@ module Ios
172
182
  Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi+LTE')
173
183
  when 'iPad8,8'
174
184
  Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi+LTE')
185
+ when 'iPad8,9'
186
+ Model.new(device_type, 'iPad Pro 11"', '2nd gen, Wi-Fi')
187
+ when 'iPad8,10'
188
+ Model.new(device_type, 'iPad Pro 11"', '2nd gen, Wi-Fi+LTE')
189
+ when 'iPad8,11'
190
+ Model.new(device_type, 'iPad Pro 12.9"', '4th gen, Wi-Fi')
191
+ when 'iPad8,12'
192
+ Model.new(device_type, 'iPad Pro 12.9"', '4th gen, Wi-Fi+LTE')
175
193
  when 'iPad11,1'
176
194
  Model.new(device_type, 'iPad mini 5', 'Wi-Fi')
177
195
  when 'iPad11,2'
@@ -184,10 +202,26 @@ module Ios
184
202
  Model.new(device_type, 'iPad', '8th gen, Wi-Fi')
185
203
  when 'iPad11,7'
186
204
  Model.new(device_type, 'iPad', '8th gen, Wi-Fi+LTE')
205
+ when 'iPad12,1'
206
+ Model.new(device_type, 'iPad', '9th gen, Wi-Fi')
207
+ when 'iPad12,2'
208
+ Model.new(device_type, 'iPad', '9th gen, Wi-Fi+LTE')
187
209
  when 'iPad13,1'
188
210
  Model.new(device_type, 'iPad Air 4', 'Wi-Fi')
189
211
  when 'iPad13,2'
190
212
  Model.new(device_type, 'iPad Air 4', 'Wi-Fi+LTE')
213
+ when 'iPad13,4'
214
+ Model.new(device_type, 'iPad Pro 11"', '3rd gen, Wi-Fi')
215
+ when 'iPad13,5', 'iPad13,6', 'iPad13,7'
216
+ Model.new(device_type, 'iPad Pro 11"', '3rd gen, Wi-Fi+LTE')
217
+ when 'iPad13,8'
218
+ Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi')
219
+ when 'iPad13,9', 'iPad13,10', 'iPad13,11'
220
+ Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi+LTE')
221
+ when 'iPad14,1'
222
+ Model.new(device_type, 'iPad mini 6', 'Wi-Fi')
223
+ when 'iPad14,2'
224
+ Model.new(device_type, 'iPad mini 6', 'Wi-Fi+LTE')
191
225
  when 'iPod1,1'
192
226
  Model.new(device_type, 'iPod touch')
193
227
  when 'iPod2,1'
@@ -238,6 +272,30 @@ module Ios
238
272
  Model.new(device_type, 'Apple Watch', 'Series 5, 40mm, GPS+Cellular')
239
273
  when 'Watch5,4'
240
274
  Model.new(device_type, 'Apple Watch', 'Series 5, 44mm, GPS+Cellular')
275
+ when 'Watch5,9'
276
+ Model.new(device_type, 'Apple Watch', 'SE, 40mm, GPS')
277
+ when 'Watch5,10'
278
+ Model.new(device_type, 'Apple Watch', 'SE, 44mm, GPS')
279
+ when 'Watch5,11'
280
+ Model.new(device_type, 'Apple Watch', 'SE, 40mm, GPS+Cellular')
281
+ when 'Watch5,12'
282
+ Model.new(device_type, 'Apple Watch', 'SE, 44mm, GPS+Cellular')
283
+ when 'Watch6,1'
284
+ Model.new(device_type, 'Apple Watch', 'Series 6, 40mm, GPS')
285
+ when 'Watch6,2'
286
+ Model.new(device_type, 'Apple Watch', 'Series 6, 44mm, GPS')
287
+ when 'Watch6,3'
288
+ Model.new(device_type, 'Apple Watch', 'Series 6, 40mm, GPS+Cellular')
289
+ when 'Watch6,4'
290
+ Model.new(device_type, 'Apple Watch', 'Series 6, 44mm, GPS+Cellular')
291
+ when 'Watch6,6'
292
+ Model.new(device_type, 'Apple Watch', 'Series 7, 41mm, GPS')
293
+ when 'Watch6,7'
294
+ Model.new(device_type, 'Apple Watch', 'Series 7, 45mm, GPS')
295
+ when 'Watch6,8'
296
+ Model.new(device_type, 'Apple Watch', 'Series 7, 41mm, GPS+Cellular')
297
+ when 'Watch6,9'
298
+ Model.new(device_type, 'Apple Watch', 'Series 7, 45mm, GPS+Cellular')
241
299
  else
242
300
  Model.new(device_type, 'Unknown iOS device')
243
301
  end
@@ -20,7 +20,7 @@ describe Ios::Devices do
20
20
  end
21
21
 
22
22
  it 'returns a model object with "Unknown iOS device" for unknown device types' do
23
- model = Ios::Devices.search('iPad8,9')
23
+ model = Ios::Devices.search('iPad8,13')
24
24
 
25
25
  expect(model.name).to eq('Unknown iOS device')
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios-devices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2021-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler