gem_version 0.0.4 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -3
- data/README.rdoc +19 -2
- data/Rakefile +3 -1
- data/lib/gem_version.rb +2 -1
- data/lib/tasks/gem_version.rake +3 -0
- metadata +11 -4
data/.gitignore
CHANGED
data/README.rdoc
CHANGED
@@ -52,9 +52,26 @@ See my Rakefile[http://github.com/jeffp/gem_version/blob/master/Rakefile] for an
|
|
52
52
|
|
53
53
|
== Bumping or resetting the next gem version
|
54
54
|
|
55
|
-
GemVersion creates a file named 'next_gem_version' in the root directory of your project which contains the 'next' gem version. Edit the version in this file to bump or
|
55
|
+
GemVersion creates a file named 'next_gem_version' in the root directory of your project which contains the 'next' gem version. Edit the version in this file or use the rake tasks to bump or set the version for the next build.
|
56
|
+
|
57
|
+
GemVersion increments the last component of your version. If you need to bump from 0.1.x to 0.2.x, you'll need to bump the version manually.
|
58
|
+
|
59
|
+
== Rake tasks
|
60
|
+
|
61
|
+
Two rake tasks gem:clean and gem:version are available whenever you require gem_version.
|
62
|
+
|
63
|
+
* Clean the project root of .gem and .gemspec files.
|
64
|
+
|
65
|
+
rake gem:clean
|
66
|
+
|
67
|
+
* Get the next gem version
|
68
|
+
|
69
|
+
rake gem:version
|
70
|
+
|
71
|
+
* Set the next gem version
|
72
|
+
|
73
|
+
rake gem:version set=0.1.0
|
56
74
|
|
57
|
-
GemVersion increments the last component of your version. If you need to bump from 0.1.x to 0.2.x, you'll need to make the change in the file.
|
58
75
|
|
59
76
|
== Dependencies
|
60
77
|
|
data/Rakefile
CHANGED
data/lib/gem_version.rb
CHANGED
@@ -57,9 +57,10 @@ module GemVersion
|
|
57
57
|
file.close
|
58
58
|
end
|
59
59
|
|
60
|
-
def self.commit_and_push(project_directory = nil, msg = nil)
|
60
|
+
def self.commit_and_push(project_directory = nil, msg = nil, &block)
|
61
61
|
g=Git.open(project_directory || Dir.pwd, :log=>Logger.new(STDOUT))
|
62
62
|
g.add(@@gem_version_file)
|
63
|
+
yield(g) if block_given?
|
63
64
|
g.commit(msg || @@default_commit_message)
|
64
65
|
g.push
|
65
66
|
end
|
data/lib/tasks/gem_version.rake
CHANGED
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gem_version
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
4
5
|
prerelease: false
|
5
6
|
segments:
|
6
7
|
- 0
|
7
8
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Jeff Patmon
|
@@ -14,16 +15,18 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-04
|
18
|
+
date: 2010-06-04 00:00:00 -07:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
21
22
|
name: git
|
22
23
|
prerelease: false
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
24
26
|
requirements:
|
25
27
|
- - ">="
|
26
28
|
- !ruby/object:Gem::Version
|
29
|
+
hash: 21
|
27
30
|
segments:
|
28
31
|
- 1
|
29
32
|
- 2
|
@@ -60,25 +63,29 @@ rdoc_options: []
|
|
60
63
|
require_paths:
|
61
64
|
- lib
|
62
65
|
required_ruby_version: !ruby/object:Gem::Requirement
|
66
|
+
none: false
|
63
67
|
requirements:
|
64
68
|
- - ">="
|
65
69
|
- !ruby/object:Gem::Version
|
70
|
+
hash: 59
|
66
71
|
segments:
|
67
72
|
- 1
|
68
73
|
- 8
|
69
74
|
- 6
|
70
75
|
version: 1.8.6
|
71
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
72
78
|
requirements:
|
73
79
|
- - ">="
|
74
80
|
- !ruby/object:Gem::Version
|
81
|
+
hash: 3
|
75
82
|
segments:
|
76
83
|
- 0
|
77
84
|
version: "0"
|
78
85
|
requirements: []
|
79
86
|
|
80
87
|
rubyforge_project:
|
81
|
-
rubygems_version: 1.3.
|
88
|
+
rubygems_version: 1.3.7
|
82
89
|
signing_key:
|
83
90
|
specification_version: 3
|
84
91
|
summary: Never bother updating the version for your next gem build by hand. Configured in your Rakefile, gem_version provides the next Gem version and stores it to the repository.
|