shelly 0.1.26 → 0.1.27

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.1.27 / 2012-09-12
2
+
3
+ * [bug] shelly check - wrong method for retrieving databases from Cloudfile
4
+
1
5
  ## 0.1.26 / 2012-09-11
2
6
 
3
7
  * [bug] Fixes -c/--cloud option bug in previous version
@@ -406,25 +406,25 @@ We have been notified about it. We will be adding new resources shortly}
406
406
 
407
407
  cloudfile = Cloudfile.new
408
408
  if cloudfile.present?
409
- cloudfile.clouds.each do |cloud|
410
- if cloud.databases.include?('postgresql')
409
+ cloudfile.clouds.each do |app|
410
+ if app.cloud_databases.include?('postgresql')
411
411
  print_check(structure.gem?("pg") || structure.gem?("postgres"),
412
- "Postgresql driver is present for '#{cloud}' cloud",
413
- "Postgresql driver is missing in the Gemfile for '#{cloud}' cloud,\n we recommend adding 'pg' gem to Gemfile",
412
+ "Postgresql driver is present for '#{app}' cloud",
413
+ "Postgresql driver is missing in the Gemfile for '#{app}' cloud,\n we recommend adding 'pg' gem to Gemfile",
414
414
  :show_fulfilled => verbose)
415
415
  end
416
416
 
417
- if cloud.delayed_job?
417
+ if app.delayed_job?
418
418
  print_check(structure.gem?("delayed_job"),
419
- "Gem 'delayed_job' is present for '#{cloud}' cloud",
420
- "Gem 'delayed_job' is missing in the Gemfile for '#{cloud}' cloud",
419
+ "Gem 'delayed_job' is present for '#{app}' cloud",
420
+ "Gem 'delayed_job' is missing in the Gemfile for '#{app}' cloud",
421
421
  :show_fulfilled => verbose)
422
422
  end
423
423
 
424
- if cloud.whenever?
424
+ if app.whenever?
425
425
  print_check(structure.gem?("whenever"),
426
- "Gem 'whenever' is present for '#{cloud}' cloud",
427
- "Gem 'whenever' is missing in the Gemfile for '#{cloud}' cloud",
426
+ "Gem 'whenever' is present for '#{app}' cloud",
427
+ "Gem 'whenever' is missing in the Gemfile for '#{app}' cloud",
428
428
  :show_fulfilled => verbose)
429
429
  end
430
430
  end
@@ -1,3 +1,3 @@
1
1
  module Shelly
2
- VERSION = "0.1.26"
2
+ VERSION = "0.1.27"
3
3
  end
@@ -1348,7 +1348,7 @@ We have been notified about it. We will be adding new resources shortly")
1348
1348
 
1349
1349
  context "cloudfile" do
1350
1350
  before do
1351
- cloud = mock(:code_name => "foo-staging", :databases => ["postgresql"],
1351
+ cloud = mock(:code_name => "foo-staging", :cloud_databases => ["postgresql"],
1352
1352
  :whenever? => true, :delayed_job? => true, :to_s => "foo-staging")
1353
1353
  cloudfile = mock(:clouds => [cloud])
1354
1354
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelly
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.26
4
+ version: 0.1.27
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-11 00:00:00.000000000 Z
12
+ date: 2012-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec