version 1.0.0a → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +15 -0
  2. data/VERSION +1 -1
  3. data/lib/version.rb +1 -1
  4. metadata +5 -5
@@ -33,6 +33,21 @@ automatically. Place the following in a Rakefile:
33
33
  You're all set up.
34
34
 
35
35
  $ rake version:create VERSION=0.1.0 # => 0.1.0
36
+
37
+ Now `rake -T version` will tell you what all you can do.
38
+
39
+ $ version [master *$%]$ rake -T version
40
+ rake version # Print the current version number (0.1.0)
41
+ rake version:bump # Bump to 0.1.1
42
+ rake version:bump:major # Bump to 1.0.0
43
+ rake version:bump:minor # Bump to 0.2.0
44
+ rake version:bump:pre # Bump to 0.1.1a
45
+ rake version:bump:pre:major # Bump to 1.0.0a
46
+ rake version:bump:pre:minor # Bump to 0.2.0a
47
+ rake version:bump:pre:revision # Bump to 0.1.1a
48
+ rake version:bump:revision # Bump to 0.1.1
49
+ rake version:create # Creates a version file with an optional VERSION parameter
50
+
36
51
  $ rake version # => 0.1.0
37
52
  $ rake version:bump # => 0.1.1
38
53
  $ rake version:bump:minor # => 0.2.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0a
1
+ 1.0.0
@@ -130,7 +130,7 @@ class Version
130
130
  self[0...component].each(&:unprerelease!)
131
131
 
132
132
  # I don't even understand this part any more; god help you
133
- self[component] = self[component].next if pre and self.prerelease? and component == self.length - 1
133
+ self[component] = self[component].next if pre and self.prerelease? and component == self.length - 1
134
134
  self[component] = self[component].next unless pre and self.prerelease? and component == -1
135
135
  self[-1] = self[-1].next(true) if pre
136
136
  self
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: version
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: 5
5
- version: 1.0.0a
4
+ prerelease:
5
+ version: 1.0.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - Stephen Touset
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-05-02 00:00:00 -04:00
13
+ date: 2011-05-10 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -70,9 +70,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
70
70
  required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  none: false
72
72
  requirements:
73
- - - ">"
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
- version: 1.3.1
75
+ version: "0"
76
76
  requirements: []
77
77
 
78
78
  rubyforge_project: