visionmedia-release 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/History.rdoc +4 -0
  2. data/bin/re +11 -1
  3. data/release.gemspec +4 -1
  4. metadata +12 -3
data/History.rdoc CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ === 0.1.1 / date
3
+
4
+ * Added --verify-master switch
5
+
2
6
  === 0.1.0 / 2009-03-05
3
7
 
4
8
  * Added dependency of visionmedia-commander gem
data/bin/re CHANGED
@@ -5,7 +5,7 @@ require 'commander'
5
5
  require 'yaml'
6
6
 
7
7
  program :name, 'release'
8
- program :version, '0.1.0'
8
+ program :version, '0.1.1'
9
9
  program :description, 'Github release management'
10
10
 
11
11
  CONFIG_FILE = File.expand_path('~/.re-config')
@@ -57,6 +57,7 @@ def bump_options c
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
59
  c.option '-t', '--trace', 'Output callstack when an exception is raised'
60
+ c.option '-M', '--verify-master', 'Verify that master is the current branch before releasing'
60
61
  end
61
62
 
62
63
  def save_config config
@@ -83,6 +84,10 @@ def merge_options options, other_options
83
84
  a.merge! b
84
85
  end
85
86
 
87
+ def master_branch?
88
+ `git branch | grep '*' | awk '{print $2}'`.strip == 'master'
89
+ end
90
+
86
91
  command :bump do |c|
87
92
  bump_options c
88
93
  c.syntax = 're bump [level] [options]'
@@ -99,6 +104,11 @@ command :bump do |c|
99
104
  o.file = o.file || locate_version_file
100
105
  o.message = o.message || '- Release VERSION'
101
106
 
107
+ # Master verification
108
+ if o.verify_master and !master_branch?
109
+ raise 'master branch verification failed'
110
+ end
111
+
102
112
  # Configurations
103
113
  if o.config
104
114
  say "... using '#{o.config}' configuration"
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.1.0"
5
+ s.version = "0.1.1"
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"]
@@ -26,8 +26,11 @@ Gem::Specification.new do |s|
26
26
  s.specification_version = 2
27
27
 
28
28
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
29
+ s.add_runtime_dependency(%q<visionmedia-commander>, [">= 2.4.6"])
29
30
  else
31
+ s.add_dependency(%q<visionmedia-commander>, [">= 2.4.6"])
30
32
  end
31
33
  else
34
+ s.add_dependency(%q<visionmedia-commander>, [">= 2.4.6"])
32
35
  end
33
36
  end
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk
@@ -11,8 +11,17 @@ cert_chain: []
11
11
 
12
12
  date: 2009-03-05 00:00:00 -08:00
13
13
  default_executable: re
14
- dependencies: []
15
-
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: visionmedia-commander
17
+ type: :runtime
18
+ version_requirement:
19
+ version_requirements: !ruby/object:Gem::Requirement
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 2.4.6
24
+ version:
16
25
  description: Github release management system
17
26
  email: tj@vision-media.ca
18
27
  executables: