ios-devices 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +2 -0
- data/Rakefile +2 -1
- data/ios-devices.gemspec +2 -1
- data/lib/ios/devices.rb +12 -0
- data/lib/ios/devices/model.rb +4 -2
- data/lib/ios/devices/version.rb +3 -1
- data/spec/ios_devices_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14cab4f32b372c2476f5025e805385caa89c35ce
|
4
|
+
data.tar.gz: b967dfd636799e8c7a6552129f3f6d4e1dc6edf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 60b10f7544fdc19bb992186087c8a82b37b752be92802f1f84308dda41953aea1d742938b6f520d86a6b3b6ab62717f60deba3be9eea1cb65b16182621746068
|
7
|
+
data.tar.gz: cfc1d5624c92bd5d00050b0637d260077415840c04d864646c47447ea87e96f9e207691123773d8194e406b1bcf3df7b80b0f0efc608062a2feffcc7750a1b07
|
data/Gemfile
CHANGED
data/Rakefile
CHANGED
data/ios-devices.gemspec
CHANGED
data/lib/ios/devices.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'ios/devices/version'
|
2
4
|
require 'ios/devices/model'
|
3
5
|
|
@@ -50,6 +52,12 @@ module Ios
|
|
50
52
|
Model.new(device_type, 'iPhone 7')
|
51
53
|
when 'iPhone9,2', 'iPhone9,4'
|
52
54
|
Model.new(device_type, 'iPhone 7 Plus')
|
55
|
+
when 'iPhone10,1', 'iPhone10,4'
|
56
|
+
Model.new(device_type, 'iPhone 8')
|
57
|
+
when 'iPhone10,2', 'iPhone10,5'
|
58
|
+
Model.new(device_type, 'iPhone 8 Plus')
|
59
|
+
when 'iPhone10,3', 'iPhone10,6'
|
60
|
+
Model.new(device_type, 'iPhone X')
|
53
61
|
when 'iPad1,1'
|
54
62
|
Model.new(device_type, 'iPad')
|
55
63
|
when 'iPad2,1'
|
@@ -128,6 +136,10 @@ module Ios
|
|
128
136
|
Model.new(device_type, 'iPod touch', '4th gen')
|
129
137
|
when 'iPod5,1'
|
130
138
|
Model.new(device_type, 'iPod touch', '5th gen')
|
139
|
+
when 'iPod6,1'
|
140
|
+
Model.new(device_type, 'iPod touch', '6th gen')
|
141
|
+
when 'iPod7,1'
|
142
|
+
Model.new(device_type, 'iPod touch', '7th gen')
|
131
143
|
else
|
132
144
|
Model.new(device_type, 'Unknown iOS device')
|
133
145
|
end
|
data/lib/ios/devices/model.rb
CHANGED
@@ -1,7 +1,9 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
module Ios
|
2
4
|
module Devices
|
3
|
-
# Represents an iOS device model. Every device has a type and name and some
|
4
|
-
# extra information (Revision, Wi-fi, etc.)
|
5
|
+
# Represents an iOS device model. Every device has a type and name and some
|
6
|
+
# of them also have extra information (Revision, Wi-fi, etc.)
|
5
7
|
class Model
|
6
8
|
attr_accessor :device_type, :name, :extra
|
7
9
|
|
data/lib/ios/devices/version.rb
CHANGED
data/spec/ios_devices_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.
|
4
|
+
version: 0.2.6
|
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: 2018-02-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|