v1 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/v1.rb +6 -4
- data/v1.gemspec +1 -1
- metadata +2 -2
data/lib/v1.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
class V < Gem::Version
|
2
|
-
VERSION = '0.0.
|
2
|
+
VERSION = '0.0.1'
|
3
3
|
|
4
4
|
def major
|
5
5
|
return segments[0]
|
@@ -9,14 +9,16 @@ class V < Gem::Version
|
|
9
9
|
return segments[1]
|
10
10
|
end
|
11
11
|
|
12
|
-
def
|
12
|
+
def build
|
13
13
|
return segments[2]
|
14
14
|
end
|
15
|
+
alias_method :patch, :build
|
16
|
+
alias_method :tiny, :build
|
15
17
|
|
16
18
|
def numeric
|
17
19
|
return @numeric ||= begin
|
18
|
-
major, minor,
|
19
|
-
major + 0.001 * minor + 0.000001 *
|
20
|
+
major, minor, build = segments
|
21
|
+
major + 0.001 * minor.to_i + 0.000001 * build.to_i
|
20
22
|
end
|
21
23
|
end
|
22
24
|
end
|
data/v1.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -124,7 +124,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
segments:
|
126
126
|
- 0
|
127
|
-
hash:
|
127
|
+
hash: 4382742239117954086
|
128
128
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
129
129
|
none: false
|
130
130
|
requirements:
|