whenever 0.9.1 → 0.9.2

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: 0615f43fa1b0a98f86c01020d35ae339a2767917
4
- data.tar.gz: cb5c35a7f4703864be41ef4d5692092a190a8cd2
3
+ metadata.gz: 9b7b1f246b22c910d7f50418153572714548f3a7
4
+ data.tar.gz: cc253c6228c7e36d7f07032d5272e442d2eb6b08
5
5
  SHA512:
6
- metadata.gz: 3aefffaf5046d3501ff117d470281dad9eb079b11a979e2b810adf707f69d5dbdaffc2aac56aaed8b3125637742506e5e29129af5fc0163463e6eab42bacb416
7
- data.tar.gz: f1e06eb27177312e775da44615de0fd79a9cb8ba331f7d525cb82c28d158a0731edf5981660339a4651712667dfd9dba4dc16e04bcb2be2b90a5826dc1dbed71
6
+ metadata.gz: bccd024f09f270d95b331f2c7177dad4914865eaacb5f83392f12a30fd1272cdfb3179dfaa731d84d63796a1f12a00d38b612b220fd46373a06ed7d0eeb0c90b
7
+ data.tar.gz: 8cfcfb3ae75cf378878631528a397618f369743639e34e51a63a53b6ee0c59c919969cbb7152e59775a46478fb0b3232ec228a69c1b968668cb77a360a734106
@@ -1,3 +1,8 @@
1
+ ### 0.9.2 / March 4, 2014
2
+
3
+ * Fix issues generating arguments for `execute` in Capistrano 3 tasks. [Javan Makhmali]
4
+
5
+
1
6
  ### 0.9.1 / March 2, 2014
2
7
 
3
8
  * Pass `--roles` option to `whenever` in Capistrano 3 tasks. [betesh, Javan Makhmali]
@@ -1,12 +1,12 @@
1
1
  namespace :whenever do
2
2
  def setup_whenever_task(*args, &block)
3
- SSHKit.config.command_map[:whenever] = fetch(:whenever_command)
3
+ args = Array(fetch(:whenever_command)) + args
4
4
 
5
5
  on roles fetch(:whenever_roles) do |host|
6
- args = args + Array(yield(host)) if block_given?
6
+ host_args = Array(yield(host))
7
7
  within release_path do
8
8
  with fetch(:whenever_command_environment_variables) do
9
- execute :whenever, *args
9
+ execute *(args + host_args)
10
10
  end
11
11
  end
12
12
  end
@@ -32,7 +32,7 @@ end
32
32
  namespace :load do
33
33
  task :defaults do
34
34
  set :whenever_roles, ->{ :db }
35
- set :whenever_command, ->{ "bundle exec whenever" }
35
+ set :whenever_command, ->{ [:bundle, :exec, :whenever] }
36
36
  set :whenever_command_environment_variables, ->{ {} }
37
37
  set :whenever_identifier, ->{ fetch :application }
38
38
  set :whenever_environment, ->{ fetch :rails_env, "production" }
@@ -1,12 +1,12 @@
1
1
  namespace :whenever do
2
2
  def setup_whenever_task(*args, &block)
3
- SSHKit.config.command_map[:whenever] = fetch(:whenever_command)
3
+ args = Array(fetch(:whenever_command)) + args
4
4
 
5
5
  on roles fetch(:whenever_roles) do |host|
6
- args = args + Array(yield(host)) if block_given?
6
+ host_args = Array(yield(host))
7
7
  within release_path do
8
8
  with fetch(:whenever_command_environment_variables) do
9
- execute :whenever, *args
9
+ execute *(args + host_args)
10
10
  end
11
11
  end
12
12
  end
@@ -32,7 +32,7 @@ end
32
32
  namespace :load do
33
33
  task :defaults do
34
34
  set :whenever_roles, ->{ :db }
35
- set :whenever_command, ->{ "bundle exec whenever" }
35
+ set :whenever_command, ->{ [:bundle, :exec, :whenever] }
36
36
  set :whenever_command_environment_variables, ->{ {} }
37
37
  set :whenever_identifier, ->{ fetch :application }
38
38
  set :whenever_environment, ->{ fetch :rails_env, "production" }
@@ -1,3 +1,3 @@
1
1
  module Whenever
2
- VERSION = '0.9.1'
2
+ VERSION = '0.9.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whenever
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javan Makhmali
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-03 00:00:00.000000000 Z
11
+ date: 2014-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic