useragent 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/user_agent/version.rb +5 -6
  2. metadata +4 -4
@@ -52,12 +52,11 @@ class UserAgent
52
52
  case other
53
53
  when Version
54
54
  if @comparable
55
- to_a.zip(other.to_a).each do |a, b|
56
- if b.nil?
57
- return -1
58
- elsif a.nil?
59
- return 1
60
- elsif a.is_a?(String) && b.is_a?(Integer)
55
+ ([0]*6).zip(to_a, other.to_a).each do |dump, a, b|
56
+ a ||= 0
57
+ b ||= 0
58
+
59
+ if a.is_a?(String) && b.is_a?(Integer)
61
60
  return -1
62
61
  elsif a.is_a?(Integer) && b.is_a?(String)
63
62
  return 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 6
10
- version: 0.4.6
9
+ - 7
10
+ version: 0.4.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Peek
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-27 00:00:00 -06:00
18
+ date: 2012-03-12 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency