version-serializer 0.0.1 → 0.0.2

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
2
  SHA1:
3
- metadata.gz: 3a1c93ff123d96780d5df5ce2b56f4acdf0d2b53
4
- data.tar.gz: bb3d3efb2ec5b35f668eeb173480c50eb3d92e91
3
+ metadata.gz: fc5a4b134b1f0a23a45d4a2d07257ad79c319f98
4
+ data.tar.gz: 39834bd3d6963ee0cfad12e5722e2be67642b80c
5
5
  SHA512:
6
- metadata.gz: 3945dfff56e60e53c4e52b2ab009ed4669f4d336b804e110c94b771f7d689b5ae5d9ac09734c27a6153baf4f453aa4e4af3c8c7ff1cfa81ca01556311be058b3
7
- data.tar.gz: 4e1370319f3c9b0d745758d0293ab243701830d5cbaf31e1c19e1babb44ff9682f15f6986d0a69e020ab173529ae93636bb9c8ae2cbd92e2bf337519df372d4c
6
+ metadata.gz: e8222ac9bd98214e1760b4a0bbe9e0cca7c56d0721ac0db94291710bfe4f981f061e86ab552aeeed0cc9d4e5099a4881cb284a3426d04b7ac74a33b2f0bc78f1
7
+ data.tar.gz: 9c7414c8a9a7fcff282d09639a84a22a0687803333f334bda05d2167f8bea703264b7b4ae80c04615f92c75ae03117471d4a42c252063661b61805c218771cdf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- version-serializer (0.0.1)
4
+ version-serializer (0.0.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -31,6 +31,8 @@ module VersionSerializer
31
31
 
32
32
  include Comparable
33
33
  def <=> other
34
+ return nil if other.nil?
35
+
34
36
  [major, minor] <=> [other.major, other.minor]
35
37
  end
36
38
 
@@ -44,4 +46,4 @@ module VersionSerializer
44
46
  "%d.%d" % [major, minor]
45
47
  end
46
48
  end
47
- end
49
+ end
@@ -1,3 +1,3 @@
1
1
  module VersionSerializer
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: version-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - NDrive DevOps Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-21 00:00:00.000000000 Z
11
+ date: 2015-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -76,11 +76,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  version: '0'
77
77
  requirements: []
78
78
  rubyforge_project:
79
- rubygems_version: 2.2.2
79
+ rubygems_version: 2.4.5
80
80
  signing_key:
81
81
  specification_version: 4
82
82
  summary: Serialize version
83
83
  test_files:
84
84
  - test/test_helper.rb
85
85
  - test/unit/version_test.rb
86
- has_rdoc: