ios-devices 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +1 -0
- data/README.md +12 -3
- data/lib/ios/devices.rb +4 -0
- data/lib/ios/devices/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 670b7821cb2b706b9214c022c2c9fc370f79732c
|
4
|
+
data.tar.gz: 4204782d088a1a8baed94fb762f2ef1fafda5b1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 382972b3e4562c97fb6a6d6c826db529f548e0fb999367c96446efc22094e425541c25a88f7b8fb4907a8203688c151786c35e910c7d2237fb1bef794aa816ee
|
7
|
+
data.tar.gz: 2cb86fa4cdcc4466cc368082daa4a300b7b0fcc16d763e7b3a7822b69b530ac861e4e3347c6bff90150605015308e3a5b3fc1cbecfdc15c3ee1eb6cca0533a0e
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2.
|
1
|
+
2.2.2
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -28,16 +28,25 @@ Just use the `Ios::Devices.search` method with the Apple string and you should g
|
|
28
28
|
connection, revision model, etc.
|
29
29
|
|
30
30
|
```ruby
|
31
|
-
Ios::Devices.search('iPhone6,1')
|
31
|
+
device = Ios::Devices.search('iPhone6,1')
|
32
32
|
=> #<Ios::Devices::Model:0x007fa55ba1a948 @extra=nil, @name="iPhone 5s", @device_type="iPhone6,1">
|
33
|
+
|
34
|
+
device.name
|
35
|
+
=> "iPhone 5s"
|
33
36
|
|
34
|
-
Ios::Devices.search('iPad2,2')
|
37
|
+
device = Ios::Devices.search('iPad2,2')
|
35
38
|
=> #<Ios::Devices::Model:0x007fa55b957308 @extra="GSM", @name="iPad 2", @device_type="iPad2,2">
|
39
|
+
|
40
|
+
device.name
|
41
|
+
=> "iPad 2"
|
42
|
+
|
43
|
+
device.extra
|
44
|
+
=> "GSM"
|
36
45
|
```
|
37
46
|
|
38
47
|
## Contributing
|
39
48
|
|
40
|
-
1. Fork it ( https://github.com/rikas/
|
49
|
+
1. Fork it ( https://github.com/rikas/iosdevices/fork )
|
41
50
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
42
51
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
43
52
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/lib/ios/devices.rb
CHANGED
@@ -80,6 +80,10 @@ module Ios
|
|
80
80
|
Model.new(device_type, 'iPad mini 3', 'Wi-Fi')
|
81
81
|
when 'iPad4,8', 'iPad4,9'
|
82
82
|
Model.new(device_type, 'iPad mini 3')
|
83
|
+
when 'iPad5,1'
|
84
|
+
Model.new(device_type, 'iPad mini 4', 'Wi-Fi')
|
85
|
+
when 'iPad5,2'
|
86
|
+
Model.new(device_type, 'iPad mini 4', 'Wi-Fi+LTE')
|
83
87
|
when 'iPad5,3'
|
84
88
|
Model.new(device_type, 'iPad Air 2', 'Wi-Fi')
|
85
89
|
when 'iPad5,4'
|
data/lib/ios/devices/version.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.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: 2015-
|
11
|
+
date: 2015-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -110,10 +110,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
110
|
version: '0'
|
111
111
|
requirements: []
|
112
112
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.4.
|
113
|
+
rubygems_version: 2.4.8
|
114
114
|
signing_key:
|
115
115
|
specification_version: 4
|
116
116
|
summary: iOS device model translation from Apple device types.
|
117
117
|
test_files:
|
118
118
|
- spec/ios_devices_spec.rb
|
119
119
|
- spec/spec_helper.rb
|
120
|
+
has_rdoc:
|