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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18473df45643ba28520b8290e44302de24a98206
4
- data.tar.gz: 1f30d683bd3f207f2cc71d4b6e4666cb8b904491
3
+ metadata.gz: c138c3ee50ab9c75d16064cae2d8f99d3485ed91
4
+ data.tar.gz: 1840eabba60c23f559a18c6fed0a3c78f29ec0fb
5
5
  SHA512:
6
- metadata.gz: e7f8da9077e3e11fd3d19906ee1b6c0764704723c67c70b6654d5da4899a7c133017e614970d7ef83798e42642bd7938aa19214ce8e2ba46d8d1a8d9610aae13
7
- data.tar.gz: e9d8faf7dff0ace05b716cce2a653cd707cd1778a70423850647eda35ae41f500428d383719b0167836495900097105f23faf779b35368f5426d3fe1a3428582
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 = platform['Extra']['hd_specs']['general_platform'].downcase.strip if platform['Extra']['hd_specs'].include? 'general_platform'
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 = specs['general_platform'].downcase.strip
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.6
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: 2016-12-04 00:00:00.000000000 Z
11
+ date: 2017-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dalli