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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/version_serializer.rb +3 -1
- data/lib/version_serializer/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc5a4b134b1f0a23a45d4a2d07257ad79c319f98
|
4
|
+
data.tar.gz: 39834bd3d6963ee0cfad12e5722e2be67642b80c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8222ac9bd98214e1760b4a0bbe9e0cca7c56d0721ac0db94291710bfe4f981f061e86ab552aeeed0cc9d4e5099a4881cb284a3426d04b7ac74a33b2f0bc78f1
|
7
|
+
data.tar.gz: 9c7414c8a9a7fcff282d09639a84a22a0687803333f334bda05d2167f8bea703264b7b4ae80c04615f92c75ae03117471d4a42c252063661b61805c218771cdf
|
data/Gemfile.lock
CHANGED
data/lib/version_serializer.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
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:
|