ios-devices 0.2.7 → 0.2.12

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
- SHA1:
3
- metadata.gz: 74fd1b34b019151cece2a508d85ea161e7ee2efb
4
- data.tar.gz: cae6212e9ac87b2a6192faad043d6a20372ee0b0
2
+ SHA256:
3
+ metadata.gz: 3cf6d8d06671beb890e9cc864cf712fca234af0b6f9461401c25de94d0df38ed
4
+ data.tar.gz: 677afe123d1dd0176e4f3327663f2e201beacfd595f8014c49ecfb7e7d7d5fe7
5
5
  SHA512:
6
- metadata.gz: 8fe6169d552e3ac15fecfdf7cf66075893de6c19b83ec27fc583ca7dd5c0b7a697d13f4faa11a368f948b5b5760ded611242af21b347206d8bc515ec9f28b931
7
- data.tar.gz: 3a1c9688f939755856bbe1261bdfae810ea49d0ef756d69a32afa4959c4dcf3cc8e5331477ad4acd470a2552027d7f621eae32ec0bf2c25038c7ce5d9d16a290
6
+ metadata.gz: 91385c843626292640096c7a201cb709f1db6beb055e3670d52089d49a4c7e18c46485d2c707404629eeb79df717cea6152f03d628367a973f1df23e57d8be52
7
+ data.tar.gz: a8faa04d4cc7af46d144ee4009f6729a9696060f542d17e154d13854b65317fcc7579c34fb522888a1f64c3c84439b622446e5b15ee97e542a0d17ab336a2d67
@@ -1 +1 @@
1
- 2.4.4
1
+ 2.5.8
@@ -1,9 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.6.5
4
+ - 2.5.8
3
5
  - 2.4.1
4
6
  - 2.3.0
5
- - 2.2.3
6
- - 2.1.0
7
- - 1.9.3
8
7
  script: bundle exec rspec
9
- before_install: gem install bundler -v 1.10.6
8
+ before_install: gem install bundler -v 2.2.5
@@ -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', '~> 1.6'
26
- spec.add_development_dependency 'rake', '~> 10.0'
25
+ spec.add_development_dependency 'bundler', '~> 2.2.5'
26
+ spec.add_development_dependency 'rake', '>= 12.3.3'
27
27
  spec.add_development_dependency 'pry'
28
28
  spec.add_development_dependency 'rspec'
29
29
  end
@@ -64,6 +64,22 @@ module Ios
64
64
  Model.new(device_type, 'iPhone XS Max')
65
65
  when 'iPhone11,8'
66
66
  Model.new(device_type, 'iPhone XR')
67
+ when 'iPhone12,1'
68
+ Model.new(device_type, 'iPhone 11')
69
+ when 'iPhone12,3'
70
+ Model.new(device_type, 'iPhone 11 Pro')
71
+ when 'iPhone12,5'
72
+ Model.new(device_type, 'iPhone 11 Pro Max')
73
+ when 'iPhone12,8'
74
+ Model.new(device_type, 'iPhone SE', '2nd gen')
75
+ when 'iPhone13,1'
76
+ Model.new(device_type, 'iPhone 12 Mini')
77
+ when 'iPhone13,2'
78
+ Model.new(device_type, 'iPhone 12')
79
+ when 'iPhone13,3'
80
+ Model.new(device_type, 'iPhone 12 Pro')
81
+ when 'iPhone13,4'
82
+ Model.new(device_type, 'iPhone 12 Pro Max')
67
83
  when 'iPad1,1'
68
84
  Model.new(device_type, 'iPad')
69
85
  when 'iPad2,1'
@@ -132,6 +148,46 @@ module Ios
132
148
  Model.new(device_type, 'iPad Pro 10.5"', 'Wi-Fi')
133
149
  when 'iPad7,4'
134
150
  Model.new(device_type, 'iPad Pro 10.5"', 'Wi-Fi+LTE')
151
+ when 'iPad7,5'
152
+ Model.new(device_type, 'iPad', '6rd gen, Wi-Fi')
153
+ when 'iPad7,6'
154
+ Model.new(device_type, 'iPad', '6rd gen, Wi-Fi+LTE')
155
+ when 'iPad7,11'
156
+ Model.new(device_type, 'iPad 10.2"', '7th gen, Wi-Fi')
157
+ when 'iPad7,12'
158
+ Model.new(device_type, 'iPad 10.2"', '7th gen, Wi-Fi+LTE')
159
+ when 'iPad8,1'
160
+ Model.new(device_type, 'iPad Pro 11"', 'Wi-Fi')
161
+ when 'iPad8,2'
162
+ Model.new(device_type, 'iPad Pro 11"', 'Wi-Fi')
163
+ when 'iPad8,3'
164
+ Model.new(device_type, 'iPad Pro 11"', 'Wi-Fi+LTE')
165
+ when 'iPad8,4'
166
+ Model.new(device_type, 'iPad Pro 11"', 'Wi-Fi+LTE')
167
+ when 'iPad8,5'
168
+ Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi')
169
+ when 'iPad8,6'
170
+ Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi')
171
+ when 'iPad8,7'
172
+ Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi+LTE')
173
+ when 'iPad8,8'
174
+ Model.new(device_type, 'iPad Pro 12.9"', '3nd gen, Wi-Fi+LTE')
175
+ when 'iPad11,1'
176
+ Model.new(device_type, 'iPad mini 5', 'Wi-Fi')
177
+ when 'iPad11,2'
178
+ Model.new(device_type, 'iPad mini 5', 'Wi-Fi+LTE')
179
+ when 'iPad11,3'
180
+ Model.new(device_type, 'iPad Air 3', 'Wi-Fi')
181
+ when 'iPad11,4'
182
+ Model.new(device_type, 'iPad Air 3', 'Wi-Fi+LTE')
183
+ when 'iPad11,6'
184
+ Model.new(device_type, 'iPad', '8th gen, Wi-Fi')
185
+ when 'iPad11,7'
186
+ Model.new(device_type, 'iPad', '8th gen, Wi-Fi+LTE')
187
+ when 'iPad13,1'
188
+ Model.new(device_type, 'iPad Air 4', 'Wi-Fi')
189
+ when 'iPad13,2'
190
+ Model.new(device_type, 'iPad Air 4', 'Wi-Fi+LTE')
135
191
  when 'iPod1,1'
136
192
  Model.new(device_type, 'iPod touch')
137
193
  when 'iPod2,1'
@@ -142,10 +198,46 @@ module Ios
142
198
  Model.new(device_type, 'iPod touch', '4th gen')
143
199
  when 'iPod5,1'
144
200
  Model.new(device_type, 'iPod touch', '5th gen')
145
- when 'iPod6,1'
146
- Model.new(device_type, 'iPod touch', '6th gen')
147
201
  when 'iPod7,1'
202
+ Model.new(device_type, 'iPod touch', '6th gen')
203
+ when 'iPod9,1'
148
204
  Model.new(device_type, 'iPod touch', '7th gen')
205
+ when 'Watch1,1'
206
+ Model.new(device_type, 'Apple Watch', '38mm')
207
+ when 'Watch1,2'
208
+ Model.new(device_type, 'Apple Watch', '42mm')
209
+ when 'Watch2,6'
210
+ Model.new(device_type, 'Apple Watch', 'Series 1, 38mm')
211
+ when 'Watch2,7'
212
+ Model.new(device_type, 'Apple Watch', 'Series 1, 42mm')
213
+ when 'Watch2,3'
214
+ Model.new(device_type, 'Apple Watch', 'Series 2, 38mm')
215
+ when 'Watch2,4'
216
+ Model.new(device_type, 'Apple Watch', 'Series 2, 42mm')
217
+ when 'Watch3,1'
218
+ Model.new(device_type, 'Apple Watch', 'Series 3, 38mm, GPS+Cellular')
219
+ when 'Watch3,2'
220
+ Model.new(device_type, 'Apple Watch', 'Series 3, 42mm, GPS+Cellular')
221
+ when 'Watch3,3'
222
+ Model.new(device_type, 'Apple Watch', 'Series 3, 38mm, GPS')
223
+ when 'Watch3,4'
224
+ Model.new(device_type, 'Apple Watch', 'Series 3, 42mm, GPS')
225
+ when 'Watch4,1'
226
+ Model.new(device_type, 'Apple Watch', 'Series 4, 40mm, GPS')
227
+ when 'Watch4,2'
228
+ Model.new(device_type, 'Apple Watch', 'Series 4, 44mm, GPS')
229
+ when 'Watch4,3'
230
+ Model.new(device_type, 'Apple Watch', 'Series 4, 40mm, GPS+Cellular')
231
+ when 'Watch4,4'
232
+ Model.new(device_type, 'Apple Watch', 'Series 4, 44mm, GPS+Cellular')
233
+ when 'Watch5,1'
234
+ Model.new(device_type, 'Apple Watch', 'Series 5, 40mm, GPS')
235
+ when 'Watch5,2'
236
+ Model.new(device_type, 'Apple Watch', 'Series 5, 44mm, GPS')
237
+ when 'Watch5,3'
238
+ Model.new(device_type, 'Apple Watch', 'Series 5, 40mm, GPS+Cellular')
239
+ when 'Watch5,4'
240
+ Model.new(device_type, 'Apple Watch', 'Series 5, 44mm, GPS+Cellular')
149
241
  else
150
242
  Model.new(device_type, 'Unknown iOS device')
151
243
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ios
4
4
  module Devices
5
- VERSION = '0.2.7'
5
+ VERSION = '0.2.12'
6
6
  end
7
7
  end
@@ -4,6 +4,8 @@ require 'spec_helper'
4
4
 
5
5
  describe Ios::Devices do
6
6
  describe '.search' do
7
+ subject(:model) { Ios::Devices.search(input) }
8
+
7
9
  it 'returns a model object' do
8
10
  model = Ios::Devices.search('iPhone6,2')
9
11
 
@@ -22,5 +24,12 @@ describe Ios::Devices do
22
24
 
23
25
  expect(model.name).to eq('Unknown iOS device')
24
26
  end
27
+
28
+ context 'with Apple Watch5,4' do
29
+ let(:input) { 'Watch5,4' }
30
+
31
+ it { expect(model.name).to eq('Apple Watch') }
32
+ it { expect(model.extra).to eq('Series 5, 44mm, GPS+Cellular') }
33
+ end
25
34
  end
26
35
  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.7
4
+ version: 0.2.12
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: 2019-01-13 00:00:00.000000000 Z
11
+ date: 2021-01-12 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: '1.6'
19
+ version: 2.2.5
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: '1.6'
26
+ version: 2.2.5
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: '10.0'
33
+ version: 12.3.3
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: '10.0'
40
+ version: 12.3.3
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,9 @@ 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.6.14.1
113
- signing_key:
111
+ rubyforge_project:
112
+ rubygems_version: 2.7.6.2
113
+ signing_key:
114
114
  specification_version: 4
115
115
  summary: iOS device model translation from Apple device types.
116
116
  test_files: