useragent 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/user_agent/version.rb +4 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecc00650c07d846ea38bcb5cd16475b84d51915e
4
- data.tar.gz: befbabc6d8c1df3cf374401a79f146a6c99e4528
3
+ metadata.gz: 6bd2fddf09bf699480234fa4a5dd23ac9483fbb3
4
+ data.tar.gz: 96c418dd604d71880768970b1d4daac20f4bcc59
5
5
  SHA512:
6
- metadata.gz: ff947472eb8e67b26049dc96b36ac5915131d8d69c4e8aea9f132133c1b1530363dd9835e0affec2e5e34c6c04e398b9655b4a92d8110a7b20fe0c1e37bb5e7a
7
- data.tar.gz: e9b0f2fff90b7a38cbeaa05da2dc0e73d30113f8a1ce109457c1c22547325141c0186761eb6a335bfccb2fa43b818004ab0d265b3e99b5d70e51e8b9e0ff523a
6
+ metadata.gz: 06ecace6200dc406daf59dcd4caf10027df2dc1f09f45102573e6832c89fe1c48f70207dffb774463f1ced31f34d15fd4ef109d879169f7bdfb05cc2ada7303f
7
+ data.tar.gz: 6ae18611dd35bf799b55fba0a7ea226f33aeda55d488ed4766e5d22b5ac4cd9ea4d7afdf1de0257a175e204c1824c0258ce3189d6c260f11ac90837a83e5e1ae
@@ -67,13 +67,15 @@ class UserAgent
67
67
  end
68
68
  end
69
69
  0
70
+ elsif to_s == other.to_s
71
+ return 0
70
72
  else
71
- to_s == other.to_s ? 0 : nil
73
+ return -1
72
74
  end
73
75
  when String
74
76
  self <=> self.class.new(other)
75
77
  else
76
- raise ArgumentError, "comparison of Version with #{other.inspect} failed"
78
+ nil
77
79
  end
78
80
  end
79
81
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useragent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Peek
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-03-23 00:00:00.000000000 Z
11
+ date: 2013-04-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake