shelly 0.4.32 → 0.4.33
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/shelly/cli/main/check.rb +1 -1
- data/lib/shelly/cli/runner.rb +2 -0
- data/lib/shelly/helpers.rb +6 -0
- data/lib/shelly/templates/Cloudfile.erb +1 -1
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/main_spec.rb +4 -4
- data/spec/shelly/cli/runner_spec.rb +12 -0
- data/spec/shelly/cloudfile_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 70e1c464916a7bec7aac3a4d67f255efd263170e
|
4
|
+
data.tar.gz: 90d25d494ecb5a2b7a74757fcba6fb7511b1d844
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36fe387fcd057d4b0da13632dd887cc2299b44b03fe0bafde42e077798df643ae75355bde9d8af6910b10790b17d8d830ec1d0becee812cec72e8447259177d0
|
7
|
+
data.tar.gz: 94e6e71387f3f53ad4445181725f3647cf0844a955948bba8d1d13deb9c2391f7b422c269d38710177dcacf22e585c92f60cb0db5993f060803f2fb230feb544
|
data/CHANGELOG.md
CHANGED
@@ -29,7 +29,7 @@ module Shelly
|
|
29
29
|
|
30
30
|
if structure.gemfile_ruby_version?
|
31
31
|
if structure.gemfile_engine == 'ruby'
|
32
|
-
print_check(!['1.8.7'].include?(structure.gemfile_ruby_version),
|
32
|
+
print_check(!['1.8.7', '1.9.2'].include?(structure.gemfile_ruby_version),
|
33
33
|
"#{structure.gemfile_engine} #{structure.gemfile_ruby_version} is supported",
|
34
34
|
"#{structure.gemfile_engine} #{structure.gemfile_ruby_version} is currently unsupported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions",
|
35
35
|
:show_fulfilled => verbose)
|
data/lib/shelly/cli/runner.rb
CHANGED
data/lib/shelly/helpers.rb
CHANGED
@@ -204,5 +204,11 @@ More info at http://git-scm.com/book/en/Git-Basics-Getting-a-Git-Repository}
|
|
204
204
|
|
205
205
|
"#{number.round(2)} #{UNITS[exponent]}"
|
206
206
|
end
|
207
|
+
|
208
|
+
def show_windows_warning
|
209
|
+
say_warning "shelly gem does not support Windows. More info at:"
|
210
|
+
say_warning "https://shellycloud.com/documentation/faq#windows"
|
211
|
+
say_new_line
|
212
|
+
end
|
207
213
|
end
|
208
214
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<%= @code_name %>:
|
2
|
-
ruby_version: <%= @ruby_version %> # 2.1.
|
2
|
+
ruby_version: <%= @ruby_version %> # 2.1.2, 2.1.1, 2.1.0, 2.0.0, 1.9.3, jruby or rbx
|
3
3
|
environment: <%= @environment %> # RAILS_ENV
|
4
4
|
domains:
|
5
5
|
<%- @domains.each do |domain| -%>
|
data/lib/shelly/version.rb
CHANGED
@@ -1749,9 +1749,9 @@ Wait until cloud is in 'turned off' state and try again.")
|
|
1749
1749
|
context "supported version" do
|
1750
1750
|
it "should show checked message" do
|
1751
1751
|
Bundler::Definition.stub_chain(:build, :ruby_version).
|
1752
|
-
and_return(mock(:engine => 'ruby', :version => '1.9.
|
1752
|
+
and_return(mock(:engine => 'ruby', :version => '1.9.3'))
|
1753
1753
|
|
1754
|
-
$stdout.should_receive(:puts).with(" #{green("✓")} ruby 1.9.
|
1754
|
+
$stdout.should_receive(:puts).with(" #{green("✓")} ruby 1.9.3 is supported")
|
1755
1755
|
invoke(@main, :check)
|
1756
1756
|
end
|
1757
1757
|
end
|
@@ -1759,9 +1759,9 @@ Wait until cloud is in 'turned off' state and try again.")
|
|
1759
1759
|
context "unsupported version" do
|
1760
1760
|
it "should show error message" do
|
1761
1761
|
Bundler::Definition.stub_chain(:build, :ruby_version).
|
1762
|
-
and_return(mock(:engine => 'ruby', :version => '1.
|
1762
|
+
and_return(mock(:engine => 'ruby', :version => '1.9.2'))
|
1763
1763
|
|
1764
|
-
$stdout.should_receive(:puts).with(" #{red("✗")} ruby 1.
|
1764
|
+
$stdout.should_receive(:puts).with(" #{red("✗")} ruby 1.9.2 is currently unsupported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
|
1765
1765
|
invoke(@main, :check)
|
1766
1766
|
end
|
1767
1767
|
end
|
@@ -65,6 +65,18 @@ describe Shelly::CLI::Runner do
|
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
68
|
+
describe "windows development" do
|
69
|
+
it "should show warning message" do
|
70
|
+
Gem.stub(:win_platform?).and_return(true)
|
71
|
+
$stdout.should_receive(:puts).with("shelly gem does not support Windows. More info at:")
|
72
|
+
$stdout.should_receive(:puts).with("https://shellycloud.com/documentation/faq#windows")
|
73
|
+
$stdout.should_receive(:puts).with("\n")
|
74
|
+
$stdout.should_receive(:puts).with("shelly version #{Shelly::VERSION}")
|
75
|
+
|
76
|
+
Shelly::CLI::Runner.new(%w(version --debug)).start
|
77
|
+
end
|
78
|
+
end
|
79
|
+
|
68
80
|
describe "API exception handling" do
|
69
81
|
before do
|
70
82
|
@client = mock
|
@@ -104,7 +104,7 @@ config
|
|
104
104
|
FakeFS.deactivate!
|
105
105
|
expected = <<-config
|
106
106
|
foo-staging:
|
107
|
-
ruby_version: 1.9.3 # 2.1.
|
107
|
+
ruby_version: 1.9.3 # 2.1.2, 2.1.1, 2.1.0, 2.0.0, 1.9.3, jruby or rbx
|
108
108
|
environment: production # RAILS_ENV
|
109
109
|
domains:
|
110
110
|
- foo-staging.winniecloud.com
|
@@ -135,7 +135,7 @@ config
|
|
135
135
|
@cloudfile.thin = 2
|
136
136
|
expected = <<-config
|
137
137
|
foo-staging:
|
138
|
-
ruby_version: 1.9.3 # 2.1.
|
138
|
+
ruby_version: 1.9.3 # 2.1.2, 2.1.1, 2.1.0, 2.0.0, 1.9.3, jruby or rbx
|
139
139
|
environment: production # RAILS_ENV
|
140
140
|
domains:
|
141
141
|
- foo-staging.winniecloud.com
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.33
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shelly Cloud team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|