visionmedia-release 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.rdoc +6 -1
- data/README.rdoc +6 -0
- data/Todo.rdoc +1 -0
- data/bin/re +32 -24
- data/release.gemspec +1 -1
- metadata +1 -1
data/History.rdoc
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
|
2
|
+
=== 0.0.5 / 2009-03-05
|
3
|
+
|
4
|
+
* Added git log pretty=oneline to take a look at commits while editing history
|
5
|
+
* Added --trace switch
|
6
|
+
|
2
7
|
=== 0.0.4 / 2009-03-05
|
3
8
|
|
4
|
-
* Added --history
|
9
|
+
* Added --history switch, currently tested with textmate only
|
5
10
|
|
6
11
|
=== 0.0.3 / 2009-03-05
|
7
12
|
|
data/README.rdoc
CHANGED
data/Todo.rdoc
CHANGED
data/bin/re
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
require 'commander'
|
5
5
|
|
6
6
|
program :name, 'release'
|
7
|
-
program :version, '0.0.
|
7
|
+
program :version, '0.0.5'
|
8
8
|
program :description, 'Github release management'
|
9
9
|
|
10
10
|
def sh command
|
@@ -56,32 +56,40 @@ command :bump do |c|
|
|
56
56
|
c.option '-R', '--no-rake', 'Disable all rake tasks'
|
57
57
|
c.option '-h', '--history', 'Edit history in EDITOR before releasing'
|
58
58
|
c.option '-d', '--dry-run', 'Performs a dry run, without releasing'
|
59
|
+
c.option '-t', '--trace', 'Output callstack when an exception is raised'
|
59
60
|
c.when_called do |args, o|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
61
|
+
begin
|
62
|
+
# Defaults
|
63
|
+
level = args.shift || 'patch'
|
64
|
+
o.rake = o.rake || %w( manifest gemspec )
|
65
|
+
o.file = o.file || locate_version_file
|
66
|
+
o.message = o.message || '- Release VERSION'
|
65
67
|
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
68
|
+
# Dry-run
|
69
|
+
if o.dry_run
|
70
|
+
puts "... performing dry-run"
|
71
|
+
def sh command
|
72
|
+
say "... `#{command}`"
|
73
|
+
end
|
74
|
+
version = bump_version(o.file, level).join '.'
|
75
|
+
else
|
76
|
+
version = replace_version o.file, level
|
71
77
|
end
|
72
|
-
version = bump_version(o.file, level).join '.'
|
73
|
-
else
|
74
|
-
version = replace_version o.file, level
|
75
|
-
end
|
76
78
|
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
79
|
+
# History
|
80
|
+
if o.history
|
81
|
+
sh "git log pretty=online"
|
82
|
+
sh "$EDITOR #{locate_history_file} --wait"
|
83
|
+
end
|
84
|
+
|
85
|
+
# Release
|
86
|
+
say "... bumping #{level} level in #{o.file}"
|
87
|
+
o.rake.each { |task| sh "rake #{task}" } unless o.no_rake == false
|
88
|
+
sh "git commit -a -m '#{ o.message.sub('VERSION', version) }'"
|
89
|
+
sh "git tag #{version} && git push && git push --tags"
|
90
|
+
say "... release #{version} complete"
|
91
|
+
rescue Exception => e
|
92
|
+
o.trace ? raise : say("... release failed: #{e}")
|
93
|
+
end
|
86
94
|
end
|
87
95
|
end
|
data/release.gemspec
CHANGED