visionmedia-release 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/History.rdoc +4 -0
  2. data/README.rdoc +10 -0
  3. data/Todo.rdoc +2 -2
  4. data/bin/re +9 -1
  5. data/release.gemspec +2 -2
  6. metadata +2 -1
data/History.rdoc CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ === 0.0.4 / 2009-03-05
3
+
4
+ * Added --history flag, currently tested with textmate only
5
+
2
6
  === 0.0.3 / 2009-03-05
3
7
 
4
8
  * Added --dry-run
data/README.rdoc CHANGED
@@ -8,6 +8,12 @@ Github release management system.
8
8
  Tired of altering versions?, committing, tagging, pushing, and
9
9
  pushing tags to Github manually? Never fear, release is here!
10
10
 
11
+ == Usage
12
+
13
+ In order to use the 're' command, you should be in the root
14
+ directory of your project (ie where .git, lib, etc live) because
15
+ sub-commands execute in context to this directory.
16
+
11
17
  == Features
12
18
 
13
19
  * Bump version levels [major, minor, (tiny | patch)]
@@ -30,9 +36,13 @@ Run rake tasks before releasing (defaults to manifest,gemspec)
30
36
  Specific version file
31
37
  $ re bump --file bin/re
32
38
 
39
+ Edit changelog or history (auto-locates file within the current directory) before releasing
40
+ $ re bump major --history
41
+
33
42
  == Limitations
34
43
 
35
44
  * Currently supports 'n.n.n' format only
45
+ * The --history switch has been tested with textmate only
36
46
  * Auto-locates version.rb (specify a specific file with --file switch)
37
47
 
38
48
  == License:
data/Todo.rdoc CHANGED
@@ -1,8 +1,8 @@
1
1
 
2
2
  == Major:
3
3
 
4
- * Specs
5
- * Open history / changelog in EDITOR before release
4
+ * Better specs
5
+ * When exception is raised revert all alterations made to that point
6
6
 
7
7
  == Minor:
8
8
 
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.3'
7
+ program :version, '0.0.4'
8
8
  program :description, 'Github release management'
9
9
 
10
10
  def sh command
@@ -40,6 +40,10 @@ def locate_version_file
40
40
  Dir['lib/*/**/*.rb'].grep(/version/).first
41
41
  end
42
42
 
43
+ def locate_history_file
44
+ Dir['*'].grep(/history|change/i).first
45
+ end
46
+
43
47
  command :bump do |c|
44
48
  c.syntax = 're bump [level] [options]'
45
49
  c.summary = 'Bump the version <level>, defaults to patch.'
@@ -50,6 +54,7 @@ command :bump do |c|
50
54
  c.option '-m', '--message MESSAGE', String, 'Message defaults to \'- Release VERSION\''
51
55
  c.option '-r', '--rake TASKS', Array, 'Defaults to manifest,gemspec to build manifest / gemspec before releasing'
52
56
  c.option '-R', '--no-rake', 'Disable all rake tasks'
57
+ c.option '-h', '--history', 'Edit history in EDITOR before releasing'
53
58
  c.option '-d', '--dry-run', 'Performs a dry run, without releasing'
54
59
  c.when_called do |args, o|
55
60
  # Defaults
@@ -68,6 +73,9 @@ command :bump do |c|
68
73
  else
69
74
  version = replace_version o.file, level
70
75
  end
76
+
77
+ # History
78
+ sh "$EDITOR #{locate_history_file} --wait" if o.history
71
79
 
72
80
  # Release
73
81
  say "... bumping #{level} level in #{o.file}"
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.3"
5
+ s.version = "0.0.4"
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"]
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
  s.email = %q{tj@vision-media.ca}
13
13
  s.executables = ["re"]
14
14
  s.extra_rdoc_files = ["bin/re", "README.rdoc", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake"]
15
- s.files = ["bin/re", "History.rdoc", "Manifest", "Rakefile", "README.rdoc", "release.gemspec", "spec/fixtures/bar/version.rb", "spec/fixtures/foo.rb", "spec/release_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake", "Todo.rdoc"]
15
+ s.files = ["bin/re", "History.rdoc", "Manifest", "Rakefile", "README.rdoc", "release.gemspec", "spec/fixtures/bar/version.rb", "spec/fixtures/foo.rb", "spec/release_spec.rb", "spec/spec_helper.rb", "tasks/docs.rake", "tasks/gemspec.rake", "tasks/spec.rake", "test/version.rb", "Todo.rdoc"]
16
16
  s.has_rdoc = true
17
17
  s.homepage = %q{http://github.com/visionmedia/release}
18
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Release", "--main", "README.rdoc"]
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -39,6 +39,7 @@ files:
39
39
  - tasks/docs.rake
40
40
  - tasks/gemspec.rake
41
41
  - tasks/spec.rake
42
+ - test/version.rb
42
43
  - Todo.rdoc
43
44
  has_rdoc: true
44
45
  homepage: http://github.com/visionmedia/release