shelly 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/shelly/cli/main.rb +1 -2
- data/lib/shelly/version.rb +1 -1
- data/spec/shelly/cli/main_spec.rb +2 -9
- metadata +4 -4
data/lib/shelly/cli/main.rb
CHANGED
@@ -390,8 +390,7 @@ We have been notified about it. We will be adding new resources shortly}
|
|
390
390
|
print_check s.gemfile_exists?, "Gemfile exists"
|
391
391
|
print_check s.gems.include?("thin"), "gem 'thin' present in Gemfile"
|
392
392
|
print_check s.config_ru_exists?, "config.ru exists"
|
393
|
-
print_check
|
394
|
-
"application doesn't use mysql database"
|
393
|
+
print_check false, "application runs mysql (not supported on Shelly Cloud)" if s.gems.include?("mysql2") or s.gems.include?("mysql")
|
395
394
|
rescue Bundler::BundlerError => e
|
396
395
|
say_new_line
|
397
396
|
say_error e.message, :with_exit => false
|
data/lib/shelly/version.rb
CHANGED
@@ -1428,20 +1428,13 @@ We have been notified about it. We will be adding new resources shortly")
|
|
1428
1428
|
context "when mysql gem exists" do
|
1429
1429
|
it "should show that mysql gem is not supported by Shelly Cloud" do
|
1430
1430
|
Bundler::Definition.stub_chain(:build, :specs, :map).and_return(["mysql"])
|
1431
|
-
$stdout.should_receive(:puts).with(" #{red("-")} application
|
1431
|
+
$stdout.should_receive(:puts).with(" #{red("-")} application runs mysql (not supported on Shelly Cloud)")
|
1432
1432
|
invoke(@main, :check)
|
1433
1433
|
end
|
1434
1434
|
|
1435
1435
|
it "should show that mysql2 gem is not supported by Shelly Cloud" do
|
1436
1436
|
Bundler::Definition.stub_chain(:build, :specs, :map).and_return(["mysql2"])
|
1437
|
-
$stdout.should_receive(:puts).with(" #{red("-")} application
|
1438
|
-
invoke(@main, :check)
|
1439
|
-
end
|
1440
|
-
end
|
1441
|
-
|
1442
|
-
context "when mysql gem doesn't exist" do
|
1443
|
-
it "should show that mysql gem doesn't exist" do
|
1444
|
-
$stdout.should_receive(:puts).with(" #{green("+")} application doesn't use mysql database")
|
1437
|
+
$stdout.should_receive(:puts).with(" #{red("-")} application runs mysql (not supported on Shelly Cloud)")
|
1445
1438
|
invoke(@main, :check)
|
1446
1439
|
end
|
1447
1440
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shelly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 8
|
10
|
+
version: 0.1.8
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Shelly Cloud team
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-05-
|
18
|
+
date: 2012-05-29 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
version_requirements: &id001 !ruby/object:Gem::Requirement
|