v1 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/v1.rb +6 -4
  2. data/v1.gemspec +1 -1
  3. metadata +2 -2
data/lib/v1.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  class V < Gem::Version
2
- VERSION = '0.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 patch
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, patch = segments
19
- major + 0.001 * minor + 0.000001 * patch
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "v1"
8
- s.version = "0.0.0"
8
+ s.version = "0.0.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Julian Mehnle"]
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.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: -3133513310459601738
127
+ hash: 4382742239117954086
128
128
  required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements: