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.
@@ -1,8 +1,8 @@
1
1
  rvm:
2
+ - 2.0.0
2
3
  - 1.9.2
3
4
  - 1.9.3
4
5
  - jruby
5
- - rbx
6
6
 
7
7
  notifications:
8
8
  email:
@@ -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).
@@ -1,5 +1,5 @@
1
1
  module Heroku
2
2
  class Commander
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
  end
5
5
  end
@@ -61,7 +61,7 @@ module Heroku
61
61
  def cmdline(options = {})
62
62
  [
63
63
  "heroku", options[:detached] ? "run:detached" : "run",
64
- @size ? "--size #{@size}" : nil,
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 2X \"(ls -1 2>&1 ; echo rc=\\$?)\"", { :logger => nil }).
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").
@@ -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 2X \"(ls -1 2>&1 ; echo rc=\\$?)\"" }
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.0
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-15 00:00:00.000000000 Z
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: 3343082937396916843
94
+ hash: -1417140709281148760
95
95
  required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements: