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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '097138863ae81d07c5060ab426bc5cb7249fff2fff608310e500e3ebdd80d036'
4
- data.tar.gz: ecf13be69c71effe1c7dd542e2c0db6ea550a5cca456ba2d69197ea806f4e2df
3
+ metadata.gz: 7a0cb80f57b77ab0887551347e40db1333c2620ed664f7c2805de1974051acda
4
+ data.tar.gz: fdbe9faab5d2159e138a7e6d72bc0eae6f8e9fb963d4cd2b211edb332b35e01b
5
5
  SHA512:
6
- metadata.gz: 32eeed954a8a23a9603dbb58f43f7d50c6b9158035b41dd3e1dda56379e41547f5dd9e7cdeae8987a73becadc5e6af6d1c914e340c7235550b6b2ae63d10683b
7
- data.tar.gz: 34a24d1babd3a516940995414fd1f07a036b781142debc5fb2920d1debbc274f563310d292b48ad9ee2c99f4391447c08995ca6c4da6271f5b0e345067595a0c
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
- 2.5.8
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) [![Build Status](https://travis-ci.org/rikas/iosdevices.svg?branch=master)](https://travis-ci.org/rikas/iosdevices)
1
+ [![Gem Version](https://badge.fury.io/rb/ios-devices.svg)](https://badge.fury.io/rb/ios-devices)
2
2
 
3
- # Ios::Devices
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
@@ -1,3 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
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.2.5'
26
- spec.add_development_dependency 'rake', '>= 12.3.3'
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ios
4
4
  module Devices
5
- VERSION = '0.2.13'
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
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', '6rd gen, Wi-Fi')
164
+ Model.new(device_type, 'iPad', '6th gen, Wi-Fi')
163
165
  when 'iPad7,6'
164
- Model.new(device_type, 'iPad', '6rd gen, Wi-Fi+LTE')
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"', '3nd gen, Wi-Fi')
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"', '3nd gen, Wi-Fi')
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"', '3nd gen, Wi-Fi+LTE')
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"', '3nd gen, Wi-Fi+LTE')
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.2.13
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: 2021-11-22 00:00:00.000000000 Z
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.2.5
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.2.5
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: 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
@@ -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
- rubyforge_project:
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.
data/.travis.yml DELETED
@@ -1,8 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.6.5
4
- - 2.5.8
5
- - 2.4.1
6
- - 2.3.0
7
- script: bundle exec rspec
8
- before_install: gem install bundler -v 2.2.5