mobile_devices 0.1.0 → 0.1.1

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: fa240e6f28ebc7201a8e726db9a587a114659bc6
4
- data.tar.gz: bb1b22d362a704b77f83050c5ba426e82b122e7a
3
+ metadata.gz: b8482bbd07a8948f8744cd497793e571389a0f34
4
+ data.tar.gz: 60618c3e0208806cec1ab1eec061979cffcda87d
5
5
  SHA512:
6
- metadata.gz: 84918936d76029377039859a76760be081805c28110f84266463407dd8dcd30ff1971b2bb412c2e3370f9f461abc4ffeb8b82f189f49bedf97addc8f538bc381
7
- data.tar.gz: a83090036de3fedd74f5ef51da726c3d9de5a77dd13cc852c8e87f3b19dba25026f443b3e763a28912e81b2e17b105cbd4a367de9666cf92df25d3e8daa9b286
6
+ metadata.gz: 94ff2ad0a5adeab086f452c2667d1cd41530c7e0037e4b86861a1229138ef7f055309b6a86d6096baa9e70e76b8c9dcd92661fb78c1edfffd395c76dd3a9afbd
7
+ data.tar.gz: 2d63c0db9c39a3d8b07050426c100d8b442115c09341afd805be6c33e04f8741ed0033a452912c967f703d4e28c9d3f01757e606004763c31ddeb7d94545d9f7
@@ -0,0 +1,13 @@
1
+ # RubyGem mobile_devices
2
+
3
+ Convert code names into real names using [@rikas/iosdevices](https://github.com/rikas/iosdevices) and data from [@vinuthomas/android-devices](https://github.com/vinuthomas/android-devices).
4
+
5
+ ```
6
+ require 'mobile_devices'
7
+
8
+ puts MobileDevices.get_name('iPhone6,2')
9
+ # "iPhone 5s"
10
+
11
+ puts MobileDevices.get_name('zerofltespr')
12
+ # "Galaxy S6"
13
+ ```
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mobile_devices'
3
- s.version = '0.1.0'
3
+ s.version = '0.1.1'
4
4
  s.licenses = ['MIT']
5
5
  s.summary = "Lookup iOS devices from device type, Android from Build.PRODUCT"
6
6
  s.description = "Turn names like iPhone6,2 and zerofltespr into iPhone 5S and Galaxy S6"
@@ -1,6 +1,10 @@
1
1
 
2
- require './lib/android.rb'
3
- require './lib/ios.rb'
2
+ lib = File.expand_path('../lib', __FILE__)
3
+
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+
6
+ require 'android.rb'
7
+ require 'ios.rb'
4
8
 
5
9
  module MobileDevices
6
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobile_devices
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Sanford
@@ -32,6 +32,7 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - ".gitignore"
34
34
  - LICENSE
35
+ - README.md
35
36
  - data/android-devices-min.json
36
37
  - lib/android.rb
37
38
  - lib/ios.rb