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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc5a4b134b1f0a23a45d4a2d07257ad79c319f98
4
- data.tar.gz: 39834bd3d6963ee0cfad12e5722e2be67642b80c
3
+ metadata.gz: 10a94eb3cccbbe20cb85b93dded6f33d131ef39f
4
+ data.tar.gz: f3fa06eacc12e06e94b64459e4091ae63ab59703
5
5
  SHA512:
6
- metadata.gz: e8222ac9bd98214e1760b4a0bbe9e0cca7c56d0721ac0db94291710bfe4f981f061e86ab552aeeed0cc9d4e5099a4881cb284a3426d04b7ac74a33b2f0bc78f1
7
- data.tar.gz: 9c7414c8a9a7fcff282d09639a84a22a0687803333f334bda05d2167f8bea703264b7b4ae80c04615f92c75ae03117471d4a42c252063661b61805c218771cdf
6
+ metadata.gz: 3fb67fd64dff9ee815c00c937b56324793372005d1b43d09ea9f9a88db4e6a51c365cf734420dae176c2a3f017402cb1bef0fa9204a10b2c695504f71af94d96
7
+ data.tar.gz: f94a398b2e2842b0ada602bc5ca8e954eaa3b7eeb20b2a60d988bf725384e2b493aa0c51e986a441726606ab8f3467ced96f2427219d6351726703af6e1446af
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- version-serializer (0.0.2)
4
+ version-serializer (1.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -69,3 +69,6 @@ DEPENDENCIES
69
69
  simplecov
70
70
  terminal-notifier-guard
71
71
  version-serializer!
72
+
73
+ BUNDLED WITH
74
+ 1.12.3
@@ -17,7 +17,11 @@ module VersionSerializer
17
17
  def self.dump (object)
18
18
  return nil if object.nil?
19
19
 
20
- ("%d.%03d" % [object.major, object.minor]).to_f
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
@@ -1,3 +1,3 @@
1
1
  module VersionSerializer
2
- VERSION = "0.0.2"
2
+ VERSION = "1.0.0"
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.2
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: 2015-06-21 00:00:00.000000000 Z
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.4.5
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: