auto_tagger 0.2.6 → 0.2.7

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
+ 2012-04-23
2
+ - Fix problem with cd'ing into directories with characters that need to be escaped (niedfelj)
3
+
1
4
  2011-09-15
2
5
  - Fixed broken gemspec that mistakenly included all development dependencies as live dependencies
3
6
  - Removed dependency on jeweler for creating the gemspec
@@ -23,7 +23,7 @@ module AutoTagger
23
23
  private
24
24
 
25
25
  def command_in_context(cmd)
26
- "cd #{@path} && #{cmd}"
26
+ "cd \"#{@path}\" && #{cmd}"
27
27
  end
28
28
 
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module AutoTagger
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -5,14 +5,14 @@ describe AutoTagger::Commander do
5
5
  describe "#read" do
6
6
  it "execute the command and returns the results" do
7
7
  commander = AutoTagger::Commander.new("/foo", false)
8
- commander.should_receive(:`).with("cd /foo && ls")
8
+ commander.should_receive(:`).with('cd "/foo" && ls')
9
9
  commander.read("ls")
10
10
  end
11
11
 
12
12
  it "puts the response when it's verbose" do
13
13
  commander = AutoTagger::Commander.new("/foo", true)
14
14
  commander.stub(:`)
15
- commander.should_receive(:puts).with("cd /foo && ls")
15
+ commander.should_receive(:puts).with('cd "/foo" && ls')
16
16
  commander.read("ls")
17
17
  end
18
18
  end
@@ -20,14 +20,14 @@ describe AutoTagger::Commander do
20
20
  describe "#execute" do
21
21
  it "executes and doesn't return anything" do
22
22
  commander = AutoTagger::Commander.new("/foo", false)
23
- commander.should_receive(:system).with("cd /foo && ls")
23
+ commander.should_receive(:system).with('cd "/foo" && ls')
24
24
  commander.execute("ls")
25
25
  end
26
26
 
27
27
  it "puts the response when it's verbose" do
28
28
  commander = AutoTagger::Commander.new("/foo", true)
29
29
  commander.stub(:system)
30
- commander.should_receive(:puts).with("cd /foo && ls")
30
+ commander.should_receive(:puts).with('cd "/foo" && ls')
31
31
  commander.execute("ls")
32
32
  end
33
33
  end
@@ -35,7 +35,7 @@ describe AutoTagger::Commander do
35
35
  describe "#print" do
36
36
  it "returns the command to be run" do
37
37
  commander = AutoTagger::Commander.new("/foo", false)
38
- commander.should_receive(:puts).with("cd /foo && ls")
38
+ commander.should_receive(:puts).with('cd "/foo" && ls')
39
39
  commander.print("ls")
40
40
  end
41
41
  end
metadata CHANGED
@@ -1,15 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: auto_tagger
3
- version: !ruby/object:Gem::Version
4
- hash: 27
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.7
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 6
10
- version: 0.2.6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Jeff Dean
14
9
  - Brian Takita
15
10
  - Mike Grafton
@@ -25,34 +20,27 @@ authors:
25
20
  autorequire:
26
21
  bindir: bin
27
22
  cert_chain: []
28
-
29
- date: 2011-09-15 00:00:00 Z
30
- dependencies:
31
- - !ruby/object:Gem::Dependency
23
+ date: 2011-09-15 00:00:00.000000000Z
24
+ dependencies:
25
+ - !ruby/object:Gem::Dependency
32
26
  name: capistrano
33
- prerelease: false
34
- requirement: &id001 !ruby/object:Gem::Requirement
27
+ requirement: &70110686954380 !ruby/object:Gem::Requirement
35
28
  none: false
36
- requirements:
37
- - - ">="
38
- - !ruby/object:Gem::Version
39
- hash: 29
40
- segments:
41
- - 2
42
- - 5
43
- - 3
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
44
32
  version: 2.5.3
45
33
  type: :runtime
46
- version_requirements: *id001
34
+ prerelease: false
35
+ version_requirements: *70110686954380
47
36
  description:
48
37
  email: jeff@zilkey.com
49
- executables:
38
+ executables:
50
39
  - autotag
51
40
  extensions: []
52
-
53
- extra_rdoc_files:
41
+ extra_rdoc_files:
54
42
  - README.md
55
- files:
43
+ files:
56
44
  - bin/autotag
57
45
  - lib/auto_tagger/base.rb
58
46
  - lib/auto_tagger/capistrano_helper.rb
@@ -83,38 +71,31 @@ files:
83
71
  - spec/spec_helper.rb
84
72
  homepage: http://github.com/zilkey/auto_tagger
85
73
  licenses: []
86
-
87
74
  post_install_message:
88
- rdoc_options:
75
+ rdoc_options:
89
76
  - --charset=UTF-8
90
- require_paths:
77
+ require_paths:
91
78
  - lib
92
- required_ruby_version: !ruby/object:Gem::Requirement
79
+ required_ruby_version: !ruby/object:Gem::Requirement
93
80
  none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- hash: 3
98
- segments:
99
- - 0
100
- version: "0"
101
- required_rubygems_version: !ruby/object:Gem::Requirement
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
102
86
  none: false
103
- requirements:
104
- - - ">="
105
- - !ruby/object:Gem::Version
106
- hash: 3
107
- segments:
108
- - 0
109
- version: "0"
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
110
91
  requirements: []
111
-
112
92
  rubyforge_project:
113
- rubygems_version: 1.8.6
93
+ rubygems_version: 1.8.10
114
94
  signing_key:
115
95
  specification_version: 3
116
- summary: Helps you automatically create tags for each stage in a multi-stage deploment and deploy from the latest tag from the previous environment
117
- test_files:
96
+ summary: Helps you automatically create tags for each stage in a multi-stage deploment
97
+ and deploy from the latest tag from the previous environment
98
+ test_files:
118
99
  - spec/auto_tagger/base_spec.rb
119
100
  - spec/auto_tagger/capistrano_helper_spec.rb
120
101
  - spec/auto_tagger/command_line_spec.rb