whenever 0.9.3 → 0.9.4

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: a1b180d6b22aaf3199ec47903e36483b327aeafd
4
- data.tar.gz: 91102f27ed51d7821ff1888ea73e92a65e402bb5
3
+ metadata.gz: 45d31ad9d0535d3e5b79e9420714c159a44266b8
4
+ data.tar.gz: e9e99760aca30abb3ae2b7a7569d77166d11e205
5
5
  SHA512:
6
- metadata.gz: f7044dac57adb8271c293e67efca30307731b7107415daa144e7dbd86cd273631df06d4cfda5142a592b936c0c06dcb44b2902969be837a304a57d86e2bf4022
7
- data.tar.gz: d8f94fb6114a737eb9b5d17c9884deba827057763b0c45af7e04e6ed5971101142f2df3bfc7bf37b75015f8d844e08f0ff3fd985f3214f61fc4e0d5748a1b929
6
+ metadata.gz: b3f29312f580f5b9a934fa690a1de8f968ae0f7c6219205ac4a8e5fcaf787a6ea1e50a1495ba5f2c82bd4ab4da3d28804344c61228c651221f6c5ee235aee623
7
+ data.tar.gz: 03570878c3907abc60ccac4ccd744449e7899db91bef4790b03b3313e5188cb1d04352533597d7c0939de11bd95ffe26e071821e1e020eb99b650f7fb7db71f0
@@ -1,3 +1,10 @@
1
+ ### 0.9.4 / October 24, 2014
2
+
3
+ * Fix duplicated command line arguments when deploying to multiple servers with Cap 3. [betesh]
4
+
5
+ * Set `whenever_environment` to the current stage before defaulting to production in Cap 3 tasks. [Karthik T]
6
+
7
+
1
8
  ### 0.9.3 / October 5, 2014
2
9
 
3
10
  * Drop ActiveSupport dependency [James Healy, Javan Makhmali]
@@ -3,10 +3,10 @@ namespace :whenever do
3
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
+ args_for_host = block_given? ? args + Array(yield(host)) : args
7
7
  within release_path do
8
8
  with fetch(:whenever_command_environment_variables) do
9
- execute *args
9
+ execute *args_for_host
10
10
  end
11
11
  end
12
12
  end
@@ -35,7 +35,7 @@ namespace :load do
35
35
  set :whenever_command, ->{ [:bundle, :exec, :whenever] }
36
36
  set :whenever_command_environment_variables, ->{ {} }
37
37
  set :whenever_identifier, ->{ fetch :application }
38
- set :whenever_environment, ->{ fetch :rails_env, "production" }
38
+ set :whenever_environment, ->{ fetch :rails_env, fetch(:stage, "production") }
39
39
  set :whenever_variables, ->{ "environment=#{fetch :whenever_environment}" }
40
40
  set :whenever_update_flags, ->{ "--update-crontab #{fetch :whenever_identifier} --set #{fetch :whenever_variables}" }
41
41
  set :whenever_clear_flags, ->{ "--clear-crontab #{fetch :whenever_identifier}" }
@@ -71,7 +71,7 @@ module Whenever
71
71
  # we need this to maintain 1.8 compatibility. Once 1.8 support is dropped,
72
72
  # this can be removed
73
73
  def singleton_class_shim
74
- if self.respond_to?(:singleton_clas)
74
+ if self.respond_to?(:singleton_class)
75
75
  singleton_class
76
76
  else
77
77
  class << self; self; end
@@ -3,10 +3,10 @@ namespace :whenever do
3
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
+ args_for_host = block_given? ? args + Array(yield(host)) : args
7
7
  within release_path do
8
8
  with fetch(:whenever_command_environment_variables) do
9
- execute *args
9
+ execute *args_for_host
10
10
  end
11
11
  end
12
12
  end
@@ -35,7 +35,7 @@ namespace :load do
35
35
  set :whenever_command, ->{ [:bundle, :exec, :whenever] }
36
36
  set :whenever_command_environment_variables, ->{ {} }
37
37
  set :whenever_identifier, ->{ fetch :application }
38
- set :whenever_environment, ->{ fetch :rails_env, "production" }
38
+ set :whenever_environment, ->{ fetch :rails_env, fetch(:stage, "production") }
39
39
  set :whenever_variables, ->{ "environment=#{fetch :whenever_environment}" }
40
40
  set :whenever_update_flags, ->{ "--update-crontab #{fetch :whenever_identifier} --set #{fetch :whenever_variables}" }
41
41
  set :whenever_clear_flags, ->{ "--clear-crontab #{fetch :whenever_identifier}" }
@@ -1,3 +1,3 @@
1
1
  module Whenever
2
- VERSION = '0.9.3'
2
+ VERSION = '0.9.4'
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.3
4
+ version: 0.9.4
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-10-05 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic