shelly 0.0.48.pre3 → 0.0.48.pre4

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.
@@ -166,8 +166,9 @@ module Shelly
166
166
  when "not_enough_resources"
167
167
  say_error "Sorry, There are no resources for your servers. We have been notified about it. We will be adding new resources shortly"
168
168
  when "no_billing"
169
- say_error "Please fill in billing details to start foo-production. Opening browser.", :with_exit => false
170
- @app.open_billing_page
169
+ url = "#{@app.shelly.shellyapp_url}/apps/#{@app.code_name}/edit_billing"
170
+ say_error "Please fill in billing details to start foo-production.", :with_exit => false
171
+ say_error "Visit: #{url}", :with_exit => false
171
172
  end
172
173
  exit 1
173
174
  rescue Client::NotFoundException => e
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.0.48.pre3"
2
+ VERSION = "0.0.48.pre4"
3
3
  end
@@ -611,10 +611,10 @@ OUT
611
611
  lambda { invoke(@main, :start) }.should raise_error(SystemExit)
612
612
  end
613
613
 
614
- it "should open billing page" do
614
+ it "should show messages about billing" do
615
615
  raise_conflict("state" => "no_billing")
616
- $stdout.should_receive(:puts).with(red "Please fill in billing details to start foo-production. Opening browser.")
617
- @app.should_receive(:open_billing_page)
616
+ $stdout.should_receive(:puts).with(red "Please fill in billing details to start foo-production.")
617
+ @client.stub(:shellyapp_url).and_return("http://example.com")
618
618
  lambda { invoke(@main, :start) }.should raise_error(SystemExit)
619
619
  end
620
620
 
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1923832111
4
+ hash: 1923832097
5
5
  prerelease: 7
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
9
  - 48
10
10
  - pre
11
- - 3
12
- version: 0.0.48.pre3
11
+ - 4
12
+ version: 0.0.48.pre4
13
13
  platform: ruby
14
14
  authors:
15
15
  - Shelly Cloud team