auto_tagger 0.2.7 → 0.2.8

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/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ 2012-08-29
2
+ - Fix bug where refs wouldn't be pushed in capistrano because of setting nil values instead of allow defaults (elliterate)
3
+
1
4
  2012-04-23
2
5
  - Fix problem with cd'ing into directories with characters that need to be escaped (niedfelj)
3
6
 
@@ -41,14 +41,14 @@ module AutoTagger
41
41
  if ! variables[:auto_tagger_dry_run].nil?
42
42
  options[:dry_run] = variables[:auto_tagger_dry_run]
43
43
  else
44
- options[:dry_run] = variables[:dry_run]
44
+ options[:dry_run] = variables[:dry_run] if variables.has_key?(:dry_run)
45
45
  end
46
46
 
47
47
  [
48
48
  :date_separator, :push_refs, :fetch_refs, :remote, :ref_path, :offline,
49
49
  :verbose, :refs_to_keep, :executable, :opts_file
50
50
  ].each do |key|
51
- options[key] = variables[:"auto_tagger_#{key}"]
51
+ options[key] = variables[:"auto_tagger_#{key}"] if variables.has_key?(:"auto_tagger_#{key}")
52
52
  end
53
53
 
54
54
  options
@@ -1,3 +1,3 @@
1
1
  module AutoTagger
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
@@ -82,8 +82,12 @@ describe AutoTagger::CapistranoHelper do
82
82
  :executable,
83
83
  :opts_file
84
84
  ].each do |key|
85
- it "includes :#{key}" do
86
- helper = AutoTagger::CapistranoHelper.new :"auto_tagger_#{key}" => "value"
85
+ it "includes :#{key} when specified" do
86
+ helper = AutoTagger::CapistranoHelper.new({})
87
+ helper.auto_tagger_options.should_not have_key(key)
88
+
89
+ helper = AutoTagger::CapistranoHelper.new(:"auto_tagger_#{key}" => "value")
90
+ helper.auto_tagger_options.should have_key(key)
87
91
  helper.auto_tagger_options[key].should == "value"
88
92
  end
89
93
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auto_tagger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -24,7 +24,7 @@ date: 2011-09-15 00:00:00.000000000Z
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: capistrano
27
- requirement: &70110686954380 !ruby/object:Gem::Requirement
27
+ requirement: &70248314650400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 2.5.3
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70110686954380
35
+ version_requirements: *70248314650400
36
36
  description:
37
37
  email: jeff@zilkey.com
38
38
  executables: