ios-devices 0.2.13 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +38 -0
- data/.ruby-version +1 -1
- data/README.md +2 -2
- data/Rakefile +5 -0
- data/ios-devices.gemspec +2 -2
- data/lib/ios/devices/version.rb +1 -1
- data/lib/ios/devices.rb +8 -6
- metadata +10 -11
- data/.travis.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a0cb80f57b77ab0887551347e40db1333c2620ed664f7c2805de1974051acda
|
4
|
+
data.tar.gz: fdbe9faab5d2159e138a7e6d72bc0eae6f8e9fb963d4cd2b211edb332b35e01b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1af2a76e8b664faa69472423a15036e3e53643e8d3af1edf2ff74b015656e988a94ea59922c3a984870a9ae1ab070b318217314e86528fa4e9dad80a924f255
|
7
|
+
data.tar.gz: 7143fd7cdb3d6d5400858e7e07b6f4567f4b57c35281d42172b611bf781ca3eed38a70986d68845ec1477e351465631d514b5058a5520a0652f5a6998f50b6cb
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ "master" ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ "master" ]
|
15
|
+
|
16
|
+
permissions:
|
17
|
+
contents: read
|
18
|
+
|
19
|
+
jobs:
|
20
|
+
test:
|
21
|
+
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
strategy:
|
24
|
+
matrix:
|
25
|
+
ruby-version: ['2.6', '2.7', '3.0']
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v3
|
29
|
+
- name: Set up Ruby
|
30
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
31
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
32
|
+
# 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
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
[![Gem Version](https://badge.fury.io/rb/ios-devices.svg)](https://badge.fury.io/rb/ios-devices)
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/ios-devices.svg)](https://badge.fury.io/rb/ios-devices)
|
2
2
|
|
3
|
-
#
|
3
|
+
# iOS Devices
|
4
4
|
|
5
5
|
This is a little Gem used to translate Apple iOS device types (like "iPhone6,1") to proper device
|
6
6
|
names that you can use.
|
data/Rakefile
CHANGED
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.
|
26
|
-
spec.add_development_dependency 'rake', '
|
25
|
+
spec.add_development_dependency 'bundler', '~> 2.4.7'
|
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
|
data/lib/ios/devices/version.rb
CHANGED
data/lib/ios/devices.rb
CHANGED
@@ -90,6 +90,8 @@ module Ios
|
|
90
90
|
Model.new(device_type, 'iPhone 13 Mini')
|
91
91
|
when 'iPhone14,5'
|
92
92
|
Model.new(device_type, 'iPhone 13')
|
93
|
+
when 'iPhone14,6'
|
94
|
+
Model.new(device_type, 'iPhone SE', '3rd gen')
|
93
95
|
when 'iPad1,1'
|
94
96
|
Model.new(device_type, 'iPad')
|
95
97
|
when 'iPad2,1'
|
@@ -159,9 +161,9 @@ module Ios
|
|
159
161
|
when 'iPad7,4'
|
160
162
|
Model.new(device_type, 'iPad Pro 10.5"', 'Wi-Fi+LTE')
|
161
163
|
when 'iPad7,5'
|
162
|
-
Model.new(device_type, 'iPad', '
|
164
|
+
Model.new(device_type, 'iPad', '6th gen, Wi-Fi')
|
163
165
|
when 'iPad7,6'
|
164
|
-
Model.new(device_type, 'iPad', '
|
166
|
+
Model.new(device_type, 'iPad', '6th gen, Wi-Fi+LTE')
|
165
167
|
when 'iPad7,11'
|
166
168
|
Model.new(device_type, 'iPad 10.2"', '7th gen, Wi-Fi')
|
167
169
|
when 'iPad7,12'
|
@@ -175,13 +177,13 @@ module Ios
|
|
175
177
|
when 'iPad8,4'
|
176
178
|
Model.new(device_type, 'iPad Pro 11"', 'Wi-Fi+LTE')
|
177
179
|
when 'iPad8,5'
|
178
|
-
Model.new(device_type, 'iPad Pro 12.9"', '
|
180
|
+
Model.new(device_type, 'iPad Pro 12.9"', '3rd gen, Wi-Fi')
|
179
181
|
when 'iPad8,6'
|
180
|
-
Model.new(device_type, 'iPad Pro 12.9"', '
|
182
|
+
Model.new(device_type, 'iPad Pro 12.9"', '3rd gen, Wi-Fi')
|
181
183
|
when 'iPad8,7'
|
182
|
-
Model.new(device_type, 'iPad Pro 12.9"', '
|
184
|
+
Model.new(device_type, 'iPad Pro 12.9"', '3rd gen, Wi-Fi+LTE')
|
183
185
|
when 'iPad8,8'
|
184
|
-
Model.new(device_type, 'iPad Pro 12.9"', '
|
186
|
+
Model.new(device_type, 'iPad Pro 12.9"', '3rd gen, Wi-Fi+LTE')
|
185
187
|
when 'iPad8,9'
|
186
188
|
Model.new(device_type, 'iPad Pro 11"', '2nd gen, Wi-Fi')
|
187
189
|
when 'iPad8,10'
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo Otero
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-02 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.
|
19
|
+
version: 2.4.7
|
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.
|
26
|
+
version: 2.4.7
|
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:
|
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:
|
40
|
+
version: 13.0.6
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pry
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,10 +75,10 @@ executables: []
|
|
75
75
|
extensions: []
|
76
76
|
extra_rdoc_files: []
|
77
77
|
files:
|
78
|
+
- ".github/workflows/ruby.yml"
|
78
79
|
- ".gitignore"
|
79
80
|
- ".rspec"
|
80
81
|
- ".ruby-version"
|
81
|
-
- ".travis.yml"
|
82
82
|
- Gemfile
|
83
83
|
- LICENSE.txt
|
84
84
|
- README.md
|
@@ -108,8 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
|
112
|
-
rubygems_version: 2.7.6.2
|
111
|
+
rubygems_version: 3.3.7
|
113
112
|
signing_key:
|
114
113
|
specification_version: 4
|
115
114
|
summary: iOS device model translation from Apple device types.
|