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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/whenever/capistrano/v3/tasks/whenever.rake +3 -3
- data/lib/whenever/job_list.rb +1 -1
- data/lib/whenever/tasks/whenever.rake +3 -3
- data/lib/whenever/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45d31ad9d0535d3e5b79e9420714c159a44266b8
|
4
|
+
data.tar.gz: e9e99760aca30abb3ae2b7a7569d77166d11e205
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3f29312f580f5b9a934fa690a1de8f968ae0f7c6219205ac4a8e5fcaf787a6ea1e50a1495ba5f2c82bd4ab4da3d28804344c61228c651221f6c5ee235aee623
|
7
|
+
data.tar.gz: 03570878c3907abc60ccac4ccd744449e7899db91bef4790b03b3313e5188cb1d04352533597d7c0939de11bd95ffe26e071821e1e020eb99b650f7fb7db71f0
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
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 *
|
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}" }
|
data/lib/whenever/job_list.rb
CHANGED
@@ -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?(:
|
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
|
-
|
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 *
|
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}" }
|
data/lib/whenever/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chronic
|