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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 73115e9aa26016d602956dcb7bab55853636d325
4
- data.tar.gz: de7e0c1894fb8a4b74932f10bb286c43b688fead
3
+ metadata.gz: 70e1c464916a7bec7aac3a4d67f255efd263170e
4
+ data.tar.gz: 90d25d494ecb5a2b7a74757fcba6fb7511b1d844
5
5
  SHA512:
6
- metadata.gz: 06388e3bb2a4336f6f85ba49848a257ad5016eddb869410f4696cbb3e0fab01eb190023c3035274e2b11f6f658be4350be8b5b2a7d4f6184eaa33714a79f1d9e
7
- data.tar.gz: a9904b90cad141b75379e287e2f611d780282ddffc9239f43538d620a9d1c00536d2d4088e641b8aaf1cd0e552c56a0425f1bb53bd5fe1ab0638f3fc463fb7fc
6
+ metadata.gz: 36fe387fcd057d4b0da13632dd887cc2299b44b03fe0bafde42e077798df643ae75355bde9d8af6910b10790b17d8d830ec1d0becee812cec72e8447259177d0
7
+ data.tar.gz: 94e6e71387f3f53ad4445181725f3647cf0844a955948bba8d1d13deb9c2391f7b422c269d38710177dcacf22e585c92f60cb0db5993f060803f2fb230feb544
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.4.33 / 2014-05-27
2
+
3
+ * [bugfix] Show info about Windows support
4
+ * [improvement] Remove REE/1.8.7 and 1.9.2 support, add 2.1.2.
5
+
1
6
  ## 0.4.32 / 2014-04-29
2
7
 
3
8
  * [bugfix] Use proper remote name if user starts cloud without pushed code
@@ -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)
@@ -16,6 +16,8 @@ module Shelly
16
16
  end
17
17
 
18
18
  def start
19
+ show_windows_warning if Gem.win_platform?
20
+
19
21
  Shelly::CLI::Main.start(args)
20
22
  rescue SystemExit; raise
21
23
  rescue Client::UnauthorizedException
@@ -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.0, 2.0.0, jruby, rbx, 1.9.3, 1.9.2 or ree-1.8.7
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| -%>
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.4.32"
2
+ VERSION = "0.4.33"
3
3
  end
@@ -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.2'))
1752
+ and_return(mock(:engine => 'ruby', :version => '1.9.3'))
1753
1753
 
1754
- $stdout.should_receive(:puts).with(" #{green("✓")} ruby 1.9.2 is supported")
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.8.7'))
1762
+ and_return(mock(:engine => 'ruby', :version => '1.9.2'))
1763
1763
 
1764
- $stdout.should_receive(:puts).with(" #{red("✗")} ruby 1.8.7 is currently unsupported\n See more at https://shellycloud.com/documentation/requirements#ruby_versions")
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.0, 2.0.0, jruby, rbx, 1.9.3, 1.9.2 or ree-1.8.7
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.0, 2.0.0, jruby, rbx, 1.9.3, 1.9.2 or ree-1.8.7
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.32
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-04-29 00:00:00.000000000 Z
11
+ date: 2014-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec