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.
Files changed (6) hide show
  1. data/History.rdoc +6 -1
  2. data/README.rdoc +6 -0
  3. data/Todo.rdoc +1 -0
  4. data/bin/re +32 -24
  5. data/release.gemspec +1 -1
  6. 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 flag, currently tested with textmate only
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
@@ -24,6 +24,12 @@ sub-commands execute in context to this directory.
24
24
 
25
25
  == Examples
26
26
 
27
+ View global help
28
+ $ re help
29
+
30
+ View help for the bump sub-command
31
+ $ re help bump
32
+
27
33
  Bump patch (tiny), auto-locates version.rb
28
34
  $ re bump
29
35
 
data/Todo.rdoc CHANGED
@@ -2,6 +2,7 @@
2
2
  == Major:
3
3
 
4
4
  * Better specs
5
+ * Datastore for config at ~/.re/config.yml
5
6
  * When exception is raised revert all alterations made to that point
6
7
 
7
8
  == Minor:
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.4'
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
- # Defaults
61
- level = args.shift || 'patch'
62
- o.rake = o.rake || %w( manifest gemspec )
63
- o.file = o.file || locate_version_file
64
- o.message = o.message || '- Release VERSION'
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
- # Dry-run
67
- if o.dry_run
68
- puts "... performing dry-run"
69
- def sh command
70
- say "... `#{command}`"
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
- # History
78
- sh "$EDITOR #{locate_history_file} --wait" if o.history
79
-
80
- # Release
81
- say "... bumping #{level} level in #{o.file}"
82
- o.rake.each { |task| sh "rake #{task}" } unless o.no_rake == false
83
- sh "git commit -a -m '#{ o.message.sub('VERSION', version) }'"
84
- sh "git tag #{version} && git push && git push --tags"
85
- say "... release #{version} complete"
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{release}
5
- s.version = "0.0.4"
5
+ s.version = "0.0.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-release
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk