useragent 0.16.9 → 0.16.10

This diff has not been reviewed by any users.
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
- SHA256:
3
- metadata.gz: 64bfee85542d4ece03b3cfadba380ee0c3c2c818156819b9b232efc8cfc667f2
4
- data.tar.gz: 6100170424fff8e81d6c5bcf172082e437678001d31dd2bfd53c4c7e71b4b68d
2
+ SHA1:
3
+ metadata.gz: 774dec0fef9df469fd9a9f612242cecc728c1b0e
4
+ data.tar.gz: e0cbcc3f2f1bf8f9f9aa884f2bbc8fc8d70f88af
5
5
  SHA512:
6
- metadata.gz: e48abbfba06c115f025b7391d3221dcdf6911f6c551e7cc448dad342ece1a3f14fa765272b39c9b5515bc926d4420ebfbc03e76c90dbdbdc8c67e5df4a1a37a5
7
- data.tar.gz: 8c8df910df7390a378770eef344416bf88ba578c5c43f7ac6c306548e243c07eb1005598e34bfe55f15070e86ece85099309cd77f31d17929055a56a81e397b3
6
+ metadata.gz: da563b140191a37af5e8f1414c092bc79ed54f130b8e232820b55bee4f39ef52db74af6caed3057369989d2740912e8e5feee8773e9d68fc4674e741143508b9
7
+ data.tar.gz: b678b858e3d2ec88797fe6822589e751b6dce1466d8d456ca53d6f66d409e5424d303ca32c73553f1b482b2c89af88937076733d5a9863f7d8901f9b37b3316b
@@ -15,7 +15,7 @@ class UserAgent
15
15
  end
16
16
 
17
17
  def platform
18
- return unless application
18
+ return unless application && application.comment
19
19
 
20
20
  if application.comment[0] =~ /iPhone/
21
21
  'iPhone'
@@ -27,7 +27,7 @@ class UserAgent
27
27
  end
28
28
 
29
29
  def os
30
- return unless application
30
+ return unless application && application.comment
31
31
 
32
32
  if application.comment[0] =~ /Windows NT/
33
33
  OperatingSystems.normalize_os(application.comment[0])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.9
4
+ version: 0.16.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
@@ -9,34 +9,34 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-01-12 00:00:00.000000000 Z
12
+ date: 2018-02-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ~>
19
19
  - !ruby/object:Gem::Version
20
20
  version: '10.0'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ~>
26
26
  - !ruby/object:Gem::Version
27
27
  version: '10.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rspec
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ~>
33
33
  - !ruby/object:Gem::Version
34
34
  version: '3.0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ~>
40
40
  - !ruby/object:Gem::Version
41
41
  version: '3.0'
42
42
  description: HTTP User Agent parser
@@ -78,17 +78,17 @@ require_paths:
78
78
  - lib
79
79
  required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
81
+ - - '>='
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ">="
86
+ - - '>='
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.7.3
91
+ rubygems_version: 2.4.8
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: HTTP User Agent parser