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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29915a675f25e8b4e55b92e325464a4e70be1f2f
4
- data.tar.gz: 3b51e9177e3e68eb00a06b6947300d01fc49b989
3
+ metadata.gz: 14cab4f32b372c2476f5025e805385caa89c35ce
4
+ data.tar.gz: b967dfd636799e8c7a6552129f3f6d4e1dc6edf2
5
5
  SHA512:
6
- metadata.gz: e09fcb5fb7c34952bfee897b30b51f07469a75894436bd4421531042b1d7e28beb025bac229635a4b42160df02a12b2b444cd0e49093864c67438ffcf4e12cc5
7
- data.tar.gz: a93e840a3042c19a7ce3d0860d4bb4e1f30af696685954335a2b9c03750d90ba180570a320b54cd747fff91d5a4aa5cef9d3173cb7d8b46b3817092311921449
6
+ metadata.gz: 60b10f7544fdc19bb992186087c8a82b37b752be92802f1f84308dda41953aea1d742938b6f520d86a6b3b6ab62717f60deba3be9eea1cb65b16182621746068
7
+ data.tar.gz: cfc1d5624c92bd5d00050b0637d260077415840c04d864646c47447ea87e96f9e207691123773d8194e406b1bcf3df7b80b0f0efc608062a2feffcc7750a1b07
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in ios-devices.gemspec
data/Rakefile CHANGED
@@ -1,2 +1,3 @@
1
- require "bundler/gem_tasks"
1
+ # frozen_string_literal: true
2
2
 
3
+ require 'bundler/gem_tasks'
@@ -1,4 +1,5 @@
1
- # coding: utf-8
1
+ # frozen_string_literal: true
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
 
4
5
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
@@ -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
@@ -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 of them also have
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
 
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Ios
2
4
  module Devices
3
- VERSION = '0.2.5'
5
+ VERSION = '0.2.6'
4
6
  end
5
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'spec_helper'
2
4
 
3
5
  describe Ios::Devices do
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'ios/devices'
2
4
  require 'rspec'
3
5
 
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.5
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: 2017-10-13 00:00:00.000000000 Z
11
+ date: 2018-02-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler