heroku-commander 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/heroku/commander/version.rb +1 -1
- data/lib/heroku/runner.rb +1 -1
- data/spec/heroku/commander_spec.rb +1 -1
- data/spec/heroku/runner_spec.rb +1 -1
- metadata +3 -3
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
0.3.1 (04/16/2013)
|
2
|
+
==================
|
3
|
+
* Fixed syntax error for heroku command-line, when specifying a `size` option - [@mzikherman](https://github.com/mzikherman).
|
4
|
+
|
1
5
|
0.3.0 (04/15/2013)
|
2
6
|
==================
|
3
7
|
* Fixed an infinite loop in the tail restart method used by `Heroku::Commander.run` with `detached: true` - [@macreery](https://github.com/macreery).
|
data/lib/heroku/runner.rb
CHANGED
@@ -61,7 +61,7 @@ module Heroku
|
|
61
61
|
def cmdline(options = {})
|
62
62
|
[
|
63
63
|
"heroku", options[:detached] ? "run:detached" : "run",
|
64
|
-
@size ? "--size
|
64
|
+
@size ? "--size=#{@size}" : nil,
|
65
65
|
"\"(#{command} 2>&1 ; echo rc=\\$?)\"",
|
66
66
|
@app ? "--app #{@app}" : nil
|
67
67
|
].compact.join(" ")
|
@@ -77,7 +77,7 @@ describe Heroku::Commander do
|
|
77
77
|
subject.run("ls -1", { :detached => true, :tail_timeout => 42 }).should == [ "bin", "app" ]
|
78
78
|
end
|
79
79
|
it "passes size option" do
|
80
|
-
Heroku::Executor.stub(:run).with("heroku run --size
|
80
|
+
Heroku::Executor.stub(:run).with("heroku run --size=2X \"(ls -1 2>&1 ; echo rc=\\$?)\"", { :logger => nil }).
|
81
81
|
and_yield("Running `...` attached to terminal... up, run.1234").
|
82
82
|
and_yield("app").
|
83
83
|
and_yield("bin").
|
data/spec/heroku/runner_spec.rb
CHANGED
@@ -185,6 +185,6 @@ describe Heroku::Runner do
|
|
185
185
|
subject do
|
186
186
|
Heroku::Runner.new({ :command => "ls -1", size: "2X" })
|
187
187
|
end
|
188
|
-
its(:cmdline) { should eq "heroku run --size
|
188
|
+
its(:cmdline) { should eq "heroku run --size=2X \"(ls -1 2>&1 ; echo rc=\\$?)\"" }
|
189
189
|
end
|
190
190
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: heroku-commander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-04-
|
13
|
+
date: 2013-04-16 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: i18n
|
@@ -91,7 +91,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
segments:
|
93
93
|
- 0
|
94
|
-
hash:
|
94
|
+
hash: -1417140709281148760
|
95
95
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
96
96
|
none: false
|
97
97
|
requirements:
|