handset_detection 4.1.6 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/handset_detection/extra.rb +5 -5
- 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: c138c3ee50ab9c75d16064cae2d8f99d3485ed91
|
4
|
+
data.tar.gz: 1840eabba60c23f559a18c6fed0a3c78f29ec0fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d07ac9db9108cb236ba8c36ab195d89ad58a92ff22ab566aabc5cb459755ab5c49474216403119fa0dd150bd2e7828b9373bca7e8736c13401f66b6a5af867f7
|
7
|
+
data.tar.gz: 23c47ed2bd1df3a7449d2c573d8ac3996b40eb4ea8e4bd42d39506525d237c947600b998cc5e0f520e5f74dd9fe3a81de7e7a0e9b290eaf9f49796ec1dc5dc98
|
@@ -138,15 +138,15 @@ class Extra < Base
|
|
138
138
|
platform = @data
|
139
139
|
platform = {} unless platform
|
140
140
|
if platform.include? 'Extra' and platform['Extra'].include? 'hd_specs'
|
141
|
-
platform_name
|
142
|
-
platform_version = platform['Extra']['hd_specs']['general_platform_version'].downcase.strip if platform['Extra']['hd_specs'].include? 'general_platform_version'
|
141
|
+
platform_name = platform['Extra']['hd_specs']['general_platform'] .to_s.downcase.strip if platform['Extra']['hd_specs'].include? 'general_platform'
|
142
|
+
platform_version = platform['Extra']['hd_specs']['general_platform_version'].to_s.downcase.strip if platform['Extra']['hd_specs'].include? 'general_platform_version'
|
143
143
|
else
|
144
144
|
platform_name = nil
|
145
145
|
platform_version = nil
|
146
146
|
end
|
147
|
-
device_platform_name
|
148
|
-
device_platform_version_min = specs['general_platform_version'].downcase.strip
|
149
|
-
device_platform_version_max = specs['general_platform_version_max'].downcase.strip
|
147
|
+
device_platform_name = specs['general_platform'] .to_s.downcase.strip
|
148
|
+
device_platform_version_min = specs['general_platform_version'] .to_s.downcase.strip
|
149
|
+
device_platform_version_max = specs['general_platform_version_max'].to_s.downcase.strip
|
150
150
|
|
151
151
|
# Its possible that we didnt pickup the platform correctly or the device has no platform info
|
152
152
|
# Return true in this case because we cant give a concrete false (it might run this version).
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handset_detection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1
|
4
|
+
version: 4.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Handset Detection
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dalli
|