ios-devices 0.2.11 → 0.2.14

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: 7b9201f839cd6293997793c10432240e311965dbaa6b5777575b481ca7ef9e7a
4
- data.tar.gz: 01e5fd22e7b7e84a74fe2fa16d024b8629c886faae07b378162cb5b722339129
3
+ metadata.gz: 4546ac099857b3320b2c63fde3b18a16ba0f1dca96e906b1896b5d12c3b72ea4
4
+ data.tar.gz: 33195cde6f2874e9236543fdcd57b2085736c78c7c56f92e855fd5b013f350f5
5
5
  SHA512:
6
- metadata.gz: 0412322bf61a8ba11eb00c9dc5a5e463763e3f7c6237bff1acc493effe9b14bbfdf0c82bd026aa8feaa1ea09f2023180f0f1dc981d6cd1cab75459d47ea5d257
7
- data.tar.gz: 1c2cf90ec2c5b508399b297b2ca50b059b5aee6b8f2c447f18a4c802d27340a9c156feccffa1249bdcd13b93ebb3797d8f7d31dc46962b07889bc4da9d319a7f
6
+ metadata.gz: 9b1259ca9628d0425020c2a44756853839c253c758aae98147b1228b86917d088e320c4ce984a9d767f57c060bce23c6efb3f8967c0e0f9829d6521be9d4042e
7
+ data.tar.gz: 27ab89749971e2f9a5b6874e0cd0ee1a98cb108043c95a7aad29b9e3732e9523199c7481cf21188942361becf549ded67d428cdf7b70e0543ea3ede78127f1a6
data/.gitignore CHANGED
@@ -13,3 +13,4 @@
13
13
  *.o
14
14
  *.a
15
15
  mkmf.log
16
+ .DS_Store
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.8
1
+ 2.6.6
data/.travis.yml CHANGED
@@ -5,4 +5,4 @@ rvm:
5
5
  - 2.4.1
6
6
  - 2.3.0
7
7
  script: bundle exec rspec
8
- before_install: gem install bundler -v 2.1.2
8
+ before_install: gem install bundler -v 2.2.5
data/ios-devices.gemspec CHANGED
@@ -22,8 +22,8 @@ Gem::Specification.new do |spec|
22
22
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
23
23
  spec.require_paths = ['lib']
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 2.1.2'
26
- spec.add_development_dependency 'rake', '>= 12.3.3'
25
+ spec.add_development_dependency 'bundler', '~> 2.3.10'
26
+ spec.add_development_dependency 'rake', '~> 13.0.6'
27
27
  spec.add_development_dependency 'pry'
28
28
  spec.add_development_dependency 'rspec'
29
29
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ios
4
4
  module Devices
5
- VERSION = '0.2.11'
5
+ VERSION = '0.2.14'
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,16 @@ 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')
93
+ when 'iPhone14,6'
94
+ Model.new(device_type, 'iPhone SE', '3rd gen')
83
95
  when 'iPad1,1'
84
96
  Model.new(device_type, 'iPad')
85
97
  when 'iPad2,1'
@@ -152,6 +164,10 @@ module Ios
152
164
  Model.new(device_type, 'iPad', '6rd gen, Wi-Fi')
153
165
  when 'iPad7,6'
154
166
  Model.new(device_type, 'iPad', '6rd gen, Wi-Fi+LTE')
167
+ when 'iPad7,11'
168
+ Model.new(device_type, 'iPad 10.2"', '7th gen, Wi-Fi')
169
+ when 'iPad7,12'
170
+ Model.new(device_type, 'iPad 10.2"', '7th gen, Wi-Fi+LTE')
155
171
  when 'iPad8,1'
156
172
  Model.new(device_type, 'iPad Pro 11"', 'Wi-Fi')
157
173
  when 'iPad8,2'
@@ -168,6 +184,14 @@ module Ios
168
184
  Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi+LTE')
169
185
  when 'iPad8,8'
170
186
  Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi+LTE')
187
+ when 'iPad8,9'
188
+ Model.new(device_type, 'iPad Pro 11"', '2nd gen, Wi-Fi')
189
+ when 'iPad8,10'
190
+ Model.new(device_type, 'iPad Pro 11"', '2nd gen, Wi-Fi+LTE')
191
+ when 'iPad8,11'
192
+ Model.new(device_type, 'iPad Pro 12.9"', '4th gen, Wi-Fi')
193
+ when 'iPad8,12'
194
+ Model.new(device_type, 'iPad Pro 12.9"', '4th gen, Wi-Fi+LTE')
171
195
  when 'iPad11,1'
172
196
  Model.new(device_type, 'iPad mini 5', 'Wi-Fi')
173
197
  when 'iPad11,2'
@@ -176,6 +200,30 @@ module Ios
176
200
  Model.new(device_type, 'iPad Air 3', 'Wi-Fi')
177
201
  when 'iPad11,4'
178
202
  Model.new(device_type, 'iPad Air 3', 'Wi-Fi+LTE')
203
+ when 'iPad11,6'
204
+ Model.new(device_type, 'iPad', '8th gen, Wi-Fi')
205
+ when 'iPad11,7'
206
+ Model.new(device_type, 'iPad', '8th gen, Wi-Fi+LTE')
207
+ when 'iPad12,1'
208
+ Model.new(device_type, 'iPad', '9th gen, Wi-Fi')
209
+ when 'iPad12,2'
210
+ Model.new(device_type, 'iPad', '9th gen, Wi-Fi+LTE')
211
+ when 'iPad13,1'
212
+ Model.new(device_type, 'iPad Air 4', 'Wi-Fi')
213
+ when 'iPad13,2'
214
+ Model.new(device_type, 'iPad Air 4', 'Wi-Fi+LTE')
215
+ when 'iPad13,4'
216
+ Model.new(device_type, 'iPad Pro 11"', '3rd gen, Wi-Fi')
217
+ when 'iPad13,5', 'iPad13,6', 'iPad13,7'
218
+ Model.new(device_type, 'iPad Pro 11"', '3rd gen, Wi-Fi+LTE')
219
+ when 'iPad13,8'
220
+ Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi')
221
+ when 'iPad13,9', 'iPad13,10', 'iPad13,11'
222
+ Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi+LTE')
223
+ when 'iPad14,1'
224
+ Model.new(device_type, 'iPad mini 6', 'Wi-Fi')
225
+ when 'iPad14,2'
226
+ Model.new(device_type, 'iPad mini 6', 'Wi-Fi+LTE')
179
227
  when 'iPod1,1'
180
228
  Model.new(device_type, 'iPod touch')
181
229
  when 'iPod2,1'
@@ -226,6 +274,30 @@ module Ios
226
274
  Model.new(device_type, 'Apple Watch', 'Series 5, 40mm, GPS+Cellular')
227
275
  when 'Watch5,4'
228
276
  Model.new(device_type, 'Apple Watch', 'Series 5, 44mm, GPS+Cellular')
277
+ when 'Watch5,9'
278
+ Model.new(device_type, 'Apple Watch', 'SE, 40mm, GPS')
279
+ when 'Watch5,10'
280
+ Model.new(device_type, 'Apple Watch', 'SE, 44mm, GPS')
281
+ when 'Watch5,11'
282
+ Model.new(device_type, 'Apple Watch', 'SE, 40mm, GPS+Cellular')
283
+ when 'Watch5,12'
284
+ Model.new(device_type, 'Apple Watch', 'SE, 44mm, GPS+Cellular')
285
+ when 'Watch6,1'
286
+ Model.new(device_type, 'Apple Watch', 'Series 6, 40mm, GPS')
287
+ when 'Watch6,2'
288
+ Model.new(device_type, 'Apple Watch', 'Series 6, 44mm, GPS')
289
+ when 'Watch6,3'
290
+ Model.new(device_type, 'Apple Watch', 'Series 6, 40mm, GPS+Cellular')
291
+ when 'Watch6,4'
292
+ Model.new(device_type, 'Apple Watch', 'Series 6, 44mm, GPS+Cellular')
293
+ when 'Watch6,6'
294
+ Model.new(device_type, 'Apple Watch', 'Series 7, 41mm, GPS')
295
+ when 'Watch6,7'
296
+ Model.new(device_type, 'Apple Watch', 'Series 7, 45mm, GPS')
297
+ when 'Watch6,8'
298
+ Model.new(device_type, 'Apple Watch', 'Series 7, 41mm, GPS+Cellular')
299
+ when 'Watch6,9'
300
+ Model.new(device_type, 'Apple Watch', 'Series 7, 45mm, GPS+Cellular')
229
301
  else
230
302
  Model.new(device_type, 'Unknown iOS device')
231
303
  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.11
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-20 00:00:00.000000000 Z
11
+ date: 2022-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 2.1.2
19
+ version: 2.3.10
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 2.1.2
26
+ version: 2.3.10
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 12.3.3
33
+ version: 13.0.6
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 12.3.3
40
+ version: 13.0.6
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -93,7 +93,7 @@ homepage: http://github.com/rikas/iosdevices
93
93
  licenses:
94
94
  - MIT
95
95
  metadata: {}
96
- post_install_message:
96
+ post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths:
99
99
  - lib
@@ -108,9 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubyforge_project:
112
- rubygems_version: 2.7.6.2
113
- signing_key:
111
+ rubygems_version: 3.0.3
112
+ signing_key:
114
113
  specification_version: 4
115
114
  summary: iOS device model translation from Apple device types.
116
115
  test_files: