ios-devices 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 41c2505bea9c84e5cca0ef25816c096628153dcf5a846f00b93995e6db2ffc05
4
- data.tar.gz: 8cb2024ca512a2b82adfe1dbd8776370d8a9f916aa42bb12c02968b794132704
3
+ metadata.gz: 4be93ce92a279c60e3a57a3995a7cf0dcb936e23c2fca20fcdf43cccfb762c7b
4
+ data.tar.gz: 0b816ec49c89589786ef4b2e79f05eb1378cfc5c80807c379fce4e1d39d23b6a
5
5
  SHA512:
6
- metadata.gz: 66bb4f23232590a42806b2dff02fca37c4a49d2f2120331a1ead572a6fc584e91d869a213d351442381c678db5cce3ba441a9d0d960957e2c03ff6c834f42eb7
7
- data.tar.gz: b922ee39ad26632673ef45c5e4a201eaa8b56a5f0f9a81c6f44738d129ee7229ba4235f442e89fc644accab2488c86b7d3f56c8a2019df96aa300e7374111da9
6
+ metadata.gz: cef778ad25443f3371da0ee0d3a1c2cc2ff7cb2027bae5678ffe37ec1848016a2e5da4ef686b9c65942c96fe0dda5cc452dd5828b9900c8e0f8db2385c72f012
7
+ data.tar.gz: bc4816e9f7d6d526b746c1b7a988962d060009ef0dfa44806d3b7d9aa8dd15d4941af2f5f79b2d174ec953f2007f2a0a5f914a4319346294cda21f30d10dc819
@@ -1,38 +1,33 @@
1
+ ---
1
2
  # This workflow uses actions that are not certified by GitHub.
2
3
  # They are provided by a third-party and are governed by
3
4
  # separate terms of service, privacy policy, and support
4
5
  # documentation.
5
6
  # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
6
7
  # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
7
-
8
8
  name: Ruby
9
-
10
9
  on:
11
10
  push:
12
- branches: [ "master" ]
11
+ branches: [master]
13
12
  pull_request:
14
- branches: [ "master" ]
15
-
13
+ branches: [master]
16
14
  permissions:
17
15
  contents: read
18
-
19
16
  jobs:
20
17
  test:
21
-
22
18
  runs-on: ubuntu-latest
23
19
  strategy:
24
20
  matrix:
25
- ruby-version: ['2.6', '2.7', '3.0']
26
-
21
+ ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
27
22
  steps:
28
- - uses: actions/checkout@v3
29
- - name: Set up Ruby
23
+ - uses: actions/checkout@v4
24
+ - name: Set up Ruby
30
25
  # To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
31
26
  # change this to (see https://github.com/ruby/setup-ruby#versioning):
32
27
  # uses: ruby/setup-ruby@v1
33
- uses: ruby/setup-ruby@2b019609e2b0f1ea1a2bc8ca11cb82ab46ada124
34
- with:
35
- ruby-version: ${{ matrix.ruby-version }}
36
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
37
- - name: Run tests
38
- run: bundle exec rake
28
+ uses: ruby/setup-ruby@v1
29
+ with:
30
+ ruby-version: ${{ matrix.ruby }}
31
+ bundler-cache: false # runs 'bundle install' and caches installed gems automatically
32
+ - name: Run tests
33
+ run: bundle install && bundle exec rake
data/ios-devices.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('../lib', __FILE__)
3
+ lib = File.expand_path('lib', __dir__)
4
4
 
5
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
6
6
 
@@ -11,9 +11,9 @@ Gem::Specification.new do |spec|
11
11
  spec.version = Ios::Devices::VERSION
12
12
  spec.authors = ['Ricardo Otero']
13
13
  spec.email = ['oterosantos@gmail.com']
14
- spec.summary = %q{iOS device model translation from Apple device types.}
15
- spec.description = %q{With this gem you can read the device type that every iOS device can send
16
- and translate it to a proper model name.}
14
+ spec.summary = 'iOS device model translation from Apple device types.'
15
+ spec.description = 'With this gem you can read the device type that every iOS device can send
16
+ and translate it to a proper model name.'
17
17
  spec.homepage = 'http://github.com/rikas/iosdevices'
18
18
  spec.license = 'MIT'
19
19
 
@@ -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.4.7'
26
- spec.add_development_dependency 'rake', '~> 13.0.6'
25
+ spec.add_development_dependency 'bundler'
27
26
  spec.add_development_dependency 'pry'
27
+ spec.add_development_dependency 'rake', '~> 13.0.6'
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.3.1'
5
+ VERSION = '0.3.2'
6
6
  end
7
7
  end
data/lib/ios/devices.rb CHANGED
@@ -4,6 +4,8 @@ require 'ios/devices/version'
4
4
  require 'ios/devices/model'
5
5
 
6
6
  module Ios
7
+ UNKNOWN_IOS_DEVICE = 'Unknown iOS device'
8
+
7
9
  module Devices
8
10
  # Gets the official device for the given device type from the iOS devices.
9
11
  #
@@ -110,6 +112,8 @@ module Ios
110
112
  Model.new(device_type, 'iPhone 15 Pro Max')
111
113
  when 'iPad1,1'
112
114
  Model.new(device_type, 'iPad')
115
+ when 'iPad1,2'
116
+ Model.new(device_type, 'iPad', '3G')
113
117
  when 'iPad2,1'
114
118
  Model.new(device_type, 'iPad 2', 'Wi-Fi')
115
119
  when 'iPad2,2'
@@ -236,6 +240,14 @@ module Ios
236
240
  Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi')
237
241
  when 'iPad13,9', 'iPad13,10', 'iPad13,11'
238
242
  Model.new(device_type, 'iPad Pro 12.9"', '5th gen, Wi-Fi+LTE')
243
+ when 'iPad13,16'
244
+ Model.new(device_type, 'iPad Air', '5th gen, Wi-Fi')
245
+ when 'iPad13,17'
246
+ Model.new(device_type, 'iPad Air', '5th gen, Wi-Fi+LTE')
247
+ when 'iPad13,18'
248
+ Model.new(device_type, 'iPad', '10th gen, Wi-Fi')
249
+ when 'iPad13,19'
250
+ Model.new(device_type, 'iPad', '10th gen, Wi-Fi+LTE')
239
251
  when 'iPad14,1'
240
252
  Model.new(device_type, 'iPad mini 6', 'Wi-Fi')
241
253
  when 'iPad14,2'
@@ -322,8 +334,38 @@ module Ios
322
334
  Model.new(device_type, 'Apple Watch', 'Series 7, 41mm, GPS+Cellular')
323
335
  when 'Watch6,9'
324
336
  Model.new(device_type, 'Apple Watch', 'Series 7, 45mm, GPS+Cellular')
337
+ when 'Watch6,10'
338
+ Model.new(device_type, 'Apple Watch', 'SE 2, 40mm, GPS')
339
+ when 'Watch6,10'
340
+ Model.new(device_type, 'Apple Watch', 'SE 2, 40mm, GPS')
341
+ when 'Watch6,11'
342
+ Model.new(device_type, 'Apple Watch', 'SE 2, 44mm, GPS')
343
+ when 'Watch6,12'
344
+ Model.new(device_type, 'Apple Watch', 'SE 2, 40mm, GPS+Cellular')
345
+ when 'Watch6,13'
346
+ Model.new(device_type, 'Apple Watch', 'SE 2, 44mm, GPS+Cellular')
347
+ when 'Watch6,14'
348
+ Model.new(device_type, 'Apple Watch', 'Series 8, 41mm, GPS')
349
+ when 'Watch6,15'
350
+ Model.new(device_type, 'Apple Watch', 'Series 8, 45mm, GPS')
351
+ when 'Watch6,16'
352
+ Model.new(device_type, 'Apple Watch', 'Series 8, 41mm, GPS+Cellular')
353
+ when 'Watch6,17'
354
+ Model.new(device_type, 'Apple Watch', 'Series 8, 45mm, GPS+Cellular')
355
+ when 'Watch6,18'
356
+ Model.new(device_type, 'Apple Watch', 'Ultra')
357
+ when 'Watch7,1'
358
+ Model.new(device_type, 'Apple Watch', 'Series 9, 41mm, GPS')
359
+ when 'Watch7,2'
360
+ Model.new(device_type, 'Apple Watch', 'Series 9, 45mm, GPS')
361
+ when 'Watch7,3'
362
+ Model.new(device_type, 'Apple Watch', 'Series 9, 41mm, GPS+Cellular')
363
+ when 'Watch7,4'
364
+ Model.new(device_type, 'Apple Watch', 'Series 9, 45mm, GPS+Cellular')
365
+ when 'Watch7,5'
366
+ Model.new(device_type, 'Apple Watch', 'Ultra 2')
325
367
  else
326
- Model.new(device_type, 'Unknown iOS device')
368
+ Model.new(device_type, UNKNOWN_IOS_DEVICE)
327
369
  end
328
370
  end
329
371
  end
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios-devices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-04 00:00:00.000000000 Z
11
+ date: 2024-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 2.4.7
19
+ version: '0'
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.4.7
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: rake
28
+ name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 13.0.6
33
+ version: '0'
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: 13.0.6
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: pry
42
+ name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 13.0.6
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 13.0.6
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement