capistrano-cookbook 0.2.0 → 0.2.1

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: a8db1e37a1d94e2934595f8d547db0e7ad1cd387
4
- data.tar.gz: 3c29f39cbe2f68e7656a3136ca701807efc67865
3
+ metadata.gz: 4f162871e5691b88542a956397a7b4df77c2271c
4
+ data.tar.gz: 9952c146e703099ad3c7010c6bd33e99e20be20e
5
5
  SHA512:
6
- metadata.gz: 5c866dc7c97300bb1b7e880c827f85d2407844cf6721f796d7f381025e4edd39a3ecefedc97e68b90663d7c2a0630e120a5c78eeab6c566734102bc215ea59c0
7
- data.tar.gz: 98cec165f29f8e0633aff07045c82ea3eef5fb0289746028e9807021dc591082ad8f006a601a5e3afc28145ab59a63724ee7cde589c2b5ab9d7f307b65c8a266
6
+ metadata.gz: 486676444621788abd40123422b1cf26eb729191b338295c3372d276c35811b7f7b1e3e8be5e723481728fd46c3fd7c803077bf5ca5c6657b0a388de2df63856
7
+ data.tar.gz: 446e750c72872ec6f84a9b52e7fddb5158673e552c221503d8d93844864cfcbbfa8dcde01fc9aee69f581825d9fa0615309cb28aea33c055a1fb008a8b4af46b
data/README.md CHANGED
@@ -6,7 +6,7 @@ A collection of Capistrano 3 Compatible tasks to make deploying Rails and Sinatr
6
6
 
7
7
  Add this line to your application's Gemfile:
8
8
 
9
- gem 'capistrano-cookbook'
9
+ gem 'capistrano-cookbook', require: false, group: :development
10
10
 
11
11
  And then execute:
12
12
 
@@ -12,3 +12,5 @@ namespace :deploy do
12
12
  end
13
13
  end
14
14
  end
15
+
16
+ before 'deploy', 'deploy:check_revision'
@@ -2,7 +2,7 @@ namespace :deploy do
2
2
  desc "Runs test before deploying, can't deploy unless they pass"
3
3
  task :run_tests do
4
4
  test_log = "log/capistrano.test.log"
5
- tests = fetch(:tests)
5
+ tests = fetch(:tests, [])
6
6
  tests.each do |test|
7
7
  puts "--> Running tests: '#{test}', please wait ..."
8
8
  unless system "bundle exec rspec #{test} > #{test_log} 2>&1"
@@ -16,3 +16,5 @@ namespace :deploy do
16
16
  system "rm #{test_log}"
17
17
  end
18
18
  end
19
+
20
+ before 'deploy', 'deploy:run_tests'
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Cookbook
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-cookbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Dixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-24 00:00:00.000000000 Z
11
+ date: 2014-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano