version-serializer 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -1
- data/lib/version_serializer.rb +5 -1
- data/lib/version_serializer/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10a94eb3cccbbe20cb85b93dded6f33d131ef39f
|
4
|
+
data.tar.gz: f3fa06eacc12e06e94b64459e4091ae63ab59703
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fb67fd64dff9ee815c00c937b56324793372005d1b43d09ea9f9a88db4e6a51c365cf734420dae176c2a3f017402cb1bef0fa9204a10b2c695504f71af94d96
|
7
|
+
data.tar.gz: f94a398b2e2842b0ada602bc5ca8e954eaa3b7eeb20b2a60d988bf725384e2b493aa0c51e986a441726606ab8f3467ced96f2427219d6351726703af6e1446af
|
data/Gemfile.lock
CHANGED
data/lib/version_serializer.rb
CHANGED
@@ -17,7 +17,11 @@ module VersionSerializer
|
|
17
17
|
def self.dump (object)
|
18
18
|
return nil if object.nil?
|
19
19
|
|
20
|
-
|
20
|
+
if object.respond_to?(:major)
|
21
|
+
("%d.%03d" % [object.major, object.minor]).to_f
|
22
|
+
else
|
23
|
+
object
|
24
|
+
end
|
21
25
|
end
|
22
26
|
|
23
27
|
def self.from_string data
|
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: 1.0.0
|
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: 2016-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -76,10 +76,11 @@ 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.5.1
|
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:
|