auto_tagger 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2010-10-07
2
+ - accept capistrano's dry_run value, but still prefer auto_tagger_dry_run if it's non-nil (Mike Dalessio, aka flavorjones)
3
+
1
4
  2010-09-16
2
5
  - fixed bug where capistrano task set_branch would not set the proper branch
3
6
  - fixed bug where capistratno task print_latest_tags would blow up (thanks to Ian Zabel for help in debugging)
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
data/auto_tagger.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{auto_tagger}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Dean", "Brian Takita", "Mike Grafton", "Bruce Krysiak", "Pat Nakajima", "Jay Zeschin", "Mike Barinek", "Sarah Mei"]
12
- s.date = %q{2010-09-16}
12
+ s.date = %q{2010-10-07}
13
13
  s.default_executable = %q{autotag}
14
14
  s.email = %q{jeff@zilkey.com}
15
15
  s.executables = ["autotag"]
@@ -38,9 +38,15 @@ module AutoTagger
38
38
  options[:path] = variables[:auto_tagger_working_directory]
39
39
  end
40
40
 
41
+ if ! variables[:auto_tagger_dry_run].nil?
42
+ options[:dry_run] = variables[:auto_tagger_dry_run]
43
+ else
44
+ options[:dry_run] = variables[:dry_run]
45
+ end
46
+
41
47
  [
42
48
  :date_separator, :push_refs, :fetch_refs, :remote, :ref_path, :offline,
43
- :dry_run, :verbose, :refs_to_keep, :executable, :opts_file
49
+ :verbose, :refs_to_keep, :executable, :opts_file
44
50
  ].each do |key|
45
51
  options[key] = variables[:"auto_tagger_#{key}"]
46
52
  end
@@ -59,4 +65,4 @@ module AutoTagger
59
65
  end
60
66
 
61
67
  end
62
- end
68
+ end
@@ -26,7 +26,7 @@ Capistrano::Configuration.instance(:must_exist).load do
26
26
  set :branch, ref
27
27
  log_auto_tagger "setting branch to #{ref}"
28
28
  else
29
- log_auto_tagger "skipping auto-assignment of branch. Branch will remain the default.}"
29
+ log_auto_tagger "skipping auto-assignment of branch. Branch will remain the default."
30
30
  end
31
31
  end
32
32
 
@@ -82,12 +82,34 @@ describe AutoTagger::CapistranoHelper do
82
82
  :executable,
83
83
  :opts_file
84
84
  ].each do |key|
85
- it "incudes :#{key}" do
85
+ it "includes :#{key}" do
86
86
  helper = AutoTagger::CapistranoHelper.new :"auto_tagger_#{key}" => "value"
87
87
  helper.auto_tagger_options[key].should == "value"
88
88
  end
89
89
  end
90
90
 
91
+ it "accepts capistrano's dry_run" do
92
+ AutoTagger::CapistranoHelper.new(:dry_run => "shazbot").auto_tagger_options[:dry_run].should == "shazbot"
93
+ end
94
+
95
+ [
96
+ [nil, nil, nil],
97
+ [true, nil, true],
98
+ [false, nil, false],
99
+
100
+ [nil, false, false],
101
+ [true, false, false],
102
+ [false, false, false],
103
+
104
+ [nil, true, true],
105
+ [true, true, true],
106
+ [false, true, true],
107
+ ].each do |dry_run, auto_tagger_dry_run, preferred|
108
+ it "prefers auto_tagger_dry_run=#{auto_tagger_dry_run.inspect} to dry_run=#{dry_run.inspect}" do
109
+ helper = AutoTagger::CapistranoHelper.new(:dry_run => dry_run, :auto_tagger_dry_run => auto_tagger_dry_run)
110
+ helper.auto_tagger_options[:dry_run].should == preferred
111
+ end
112
+ end
91
113
  end
92
114
 
93
115
  describe "#stages" do
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_tagger
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jeff Dean
@@ -22,7 +22,7 @@ autorequire:
22
22
  bindir: bin
23
23
  cert_chain: []
24
24
 
25
- date: 2010-09-16 00:00:00 -04:00
25
+ date: 2010-10-07 00:00:00 -06:00
26
26
  default_executable: autotag
27
27
  dependencies:
28
28
  - !ruby/object:Gem::Dependency