whenever 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +49 -1
- data/.gitignore +1 -1
- data/Appraisals +60 -10
- data/CHANGELOG.md +12 -0
- data/README.md +5 -9
- data/gemfiles/activesupport5.0.gemfile +5 -1
- data/gemfiles/activesupport5.1.gemfile +5 -1
- data/gemfiles/activesupport5.2.gemfile +6 -2
- data/gemfiles/activesupport6.0.gemfile +17 -0
- data/gemfiles/activesupport6.1.gemfile +17 -0
- data/gemfiles/activesupport7.0.gemfile +11 -0
- data/gemfiles/activesupport7.1.gemfile +11 -0
- data/gemfiles/activesupport7.2.gemfile +11 -0
- data/gemfiles/activesupport8.0.gemfile +11 -0
- data/gemfiles/activesupport8.1.gemfile +11 -0
- data/lib/whenever/job_list.rb +1 -1
- data/lib/whenever/version.rb +1 -1
- data/test/test_helper.rb +4 -0
- data/whenever.gemspec +1 -0
- metadata +9 -3
- data/gemfiles/activesupport4.1.gemfile +0 -7
- data/gemfiles/activesupport4.2.gemfile +0 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 55cafb2edffbfeec94032659d8af2086785d5c864c7e979395197ba02e6612d4
|
|
4
|
+
data.tar.gz: 88ad009fb54d433ac00fd86f24c8ca0a5cbe05f7cd7774a8b4fac1ebfb90c4b9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a81a8c3345588bf311b35bb9b6a6d158dd3fcff181f5a67c423a12db336ccc21c802d1f9498ecd079ebe2006479c971abc7a9129a89c965f63a88a46e1aee78d
|
|
7
|
+
data.tar.gz: 35622000e04945eab6965f0b5b87a2f2e914753628cf8ccbcf1e9cf99cbf0182125c283ad593f34a1dfa9372c225d208239fd9cec3a1d507a9a34f711f8da99f
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -7,6 +7,7 @@ jobs:
|
|
|
7
7
|
test:
|
|
8
8
|
runs-on: ${{ matrix.os }}
|
|
9
9
|
strategy:
|
|
10
|
+
fail-fast: false
|
|
10
11
|
matrix:
|
|
11
12
|
os: [ubuntu-latest, macos-latest]
|
|
12
13
|
ruby-version: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.0', '3.2', '3.3', '3.4', 'jruby-9', 'jruby-10']
|
|
@@ -22,7 +23,7 @@ jobs:
|
|
|
22
23
|
- os: macos-13
|
|
23
24
|
ruby-version: '2.5'
|
|
24
25
|
steps:
|
|
25
|
-
- uses: actions/checkout@
|
|
26
|
+
- uses: actions/checkout@v6
|
|
26
27
|
name: Set up Ruby ${{ matrix.ruby-version }}
|
|
27
28
|
- uses: ruby/setup-ruby@v1
|
|
28
29
|
env:
|
|
@@ -34,3 +35,50 @@ jobs:
|
|
|
34
35
|
run: bundle exec rake test
|
|
35
36
|
env:
|
|
36
37
|
JRUBY_OPTS: "--debug"
|
|
38
|
+
|
|
39
|
+
# Test with activesupport
|
|
40
|
+
test-activesupport:
|
|
41
|
+
runs-on: ubuntu-latest
|
|
42
|
+
strategy:
|
|
43
|
+
fail-fast: false
|
|
44
|
+
matrix:
|
|
45
|
+
ruby-version: ['2.7', '3.0', '3.0', '3.2', '3.3', '3.4']
|
|
46
|
+
rails-version: ['6.0', '6.1', '7.0', '7.1', '7.2', '8.0', '8.1']
|
|
47
|
+
include:
|
|
48
|
+
- ruby-version: 2.7
|
|
49
|
+
rails-version: '5.0'
|
|
50
|
+
- ruby-version: 2.7
|
|
51
|
+
rails-version: '5.1'
|
|
52
|
+
- ruby-version: 2.7
|
|
53
|
+
rails-version: '5.2'
|
|
54
|
+
exclude:
|
|
55
|
+
# rails 8.1: support ruby 3.2+
|
|
56
|
+
- ruby-version: 2.7
|
|
57
|
+
rails-version: '8.1'
|
|
58
|
+
- ruby-version: 3.0
|
|
59
|
+
rails-version: '8.1'
|
|
60
|
+
- ruby-version: 3.1
|
|
61
|
+
rails-version: '8.1'
|
|
62
|
+
# rails 8.0: support ruby 3.2+
|
|
63
|
+
- ruby-version: 2.7
|
|
64
|
+
rails-version: '8.0'
|
|
65
|
+
- ruby-version: 3.0
|
|
66
|
+
rails-version: '8.0'
|
|
67
|
+
- ruby-version: 3.1
|
|
68
|
+
rails-version: '8.0'
|
|
69
|
+
# rails 7.2: support ruby 3.1+
|
|
70
|
+
- ruby-version: 2.7
|
|
71
|
+
rails-version: '7.2'
|
|
72
|
+
- ruby-version: 3.0
|
|
73
|
+
rails-version: '7.2'
|
|
74
|
+
env:
|
|
75
|
+
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/activesupport${{ matrix.rails-version }}.gemfile
|
|
76
|
+
steps:
|
|
77
|
+
- uses: actions/checkout@v6
|
|
78
|
+
name: Set up Ruby ${{ matrix.ruby-version }}
|
|
79
|
+
- uses: ruby/setup-ruby@v1
|
|
80
|
+
with:
|
|
81
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
82
|
+
bundler-cache: true
|
|
83
|
+
- name: Run tests
|
|
84
|
+
run: bundle exec rake test
|
data/.gitignore
CHANGED
data/Appraisals
CHANGED
|
@@ -1,19 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
if RUBY_VERSION < "3.0"
|
|
2
|
+
appraise 'activesupport5.0' do
|
|
3
|
+
gem "activesupport", "~> 5.0.0"
|
|
4
|
+
end
|
|
5
|
+
|
|
6
|
+
appraise 'activesupport5.1' do
|
|
7
|
+
gem "activesupport", "~> 5.1.0"
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
appraise 'activesupport5.2' do
|
|
11
|
+
gem "activesupport", "~> 5.2.0"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
appraise 'activesupport6.0' do
|
|
16
|
+
gem "activesupport", "~> 6.0.0"
|
|
17
|
+
|
|
18
|
+
# ruby 3.3+
|
|
19
|
+
gem "base64"
|
|
20
|
+
gem "bigdecimal"
|
|
21
|
+
gem "mutex_m"
|
|
22
|
+
# ruby 3.4+
|
|
23
|
+
gem "benchmark"
|
|
24
|
+
gem "logger"
|
|
25
|
+
|
|
26
|
+
# Fix https://github.com/rails/rails/issues/54260
|
|
27
|
+
gem 'concurrent-ruby', "1.3.4"
|
|
3
28
|
end
|
|
4
29
|
|
|
5
|
-
appraise '
|
|
6
|
-
gem "activesupport", "~>
|
|
30
|
+
appraise 'activesupport6.1' do
|
|
31
|
+
gem "activesupport", "~> 6.1.0"
|
|
32
|
+
|
|
33
|
+
# ruby 3.3+
|
|
34
|
+
gem "base64"
|
|
35
|
+
gem "bigdecimal"
|
|
36
|
+
gem "mutex_m"
|
|
37
|
+
# ruby 3.4+
|
|
38
|
+
gem "benchmark"
|
|
39
|
+
gem "logger"
|
|
40
|
+
|
|
41
|
+
# Fix https://github.com/rails/rails/issues/54260
|
|
42
|
+
gem 'concurrent-ruby', "1.3.4"
|
|
7
43
|
end
|
|
8
44
|
|
|
9
|
-
|
|
10
|
-
|
|
45
|
+
if RUBY_VERSION >= "2.7"
|
|
46
|
+
appraise 'activesupport7.0' do
|
|
47
|
+
gem "activesupport", "~> 7.0.0"
|
|
48
|
+
end
|
|
11
49
|
end
|
|
12
50
|
|
|
13
|
-
|
|
14
|
-
|
|
51
|
+
if RUBY_VERSION >= "3.1"
|
|
52
|
+
appraise 'activesupport7.1' do
|
|
53
|
+
gem "activesupport", "~> 7.1.0"
|
|
54
|
+
end
|
|
15
55
|
end
|
|
16
56
|
|
|
17
|
-
|
|
18
|
-
|
|
57
|
+
if RUBY_VERSION >= "3.2"
|
|
58
|
+
appraise 'activesupport7.2' do
|
|
59
|
+
gem "activesupport", "~> 7.2.0"
|
|
60
|
+
end
|
|
61
|
+
|
|
62
|
+
appraise 'activesupport8.0' do
|
|
63
|
+
gem "activesupport", "~> 8.0.0"
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
appraise 'activesupport8.1' do
|
|
67
|
+
gem "activesupport", "~> 8.1.0"
|
|
68
|
+
end
|
|
19
69
|
end
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
### unreleased
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
### 1.1.1 / Dec 8, 2025
|
|
5
|
+
|
|
6
|
+
* job_list `.respond_to?` updated to an instance method https://github.com/javan/whenever/pull/830
|
|
7
|
+
|
|
8
|
+
* Update README.md https://github.com/javan/whenever/pull/789
|
|
9
|
+
|
|
10
|
+
* CI: Bump actions/checkout from 5 to 6 https://github.com/javan/whenever/pull/869
|
|
11
|
+
|
|
12
|
+
* CI: Add tests using ActiveSupport to CI https://github.com/javan/whenever/pull/868
|
|
13
|
+
|
|
14
|
+
* Require MFA for gem releases https://github.com/javan/whenever/pull/867
|
|
15
|
+
|
|
4
16
|
### 1.1.0 / Nov 21, 2025
|
|
5
17
|
|
|
6
18
|
* Splat whenever_roles when passing to roles https://github.com/javan/whenever/pull/777
|
data/README.md
CHANGED
|
@@ -106,9 +106,9 @@ The default job types that ship with Whenever are defined like so:
|
|
|
106
106
|
|
|
107
107
|
```ruby
|
|
108
108
|
job_type :command, ":task :output"
|
|
109
|
-
job_type :rake, "cd :path && :environment_variable=:environment
|
|
110
|
-
job_type :
|
|
111
|
-
job_type :
|
|
109
|
+
job_type :rake, "cd :path && :environment_variable=:environment :bundle_command rake :task --silent :output"
|
|
110
|
+
job_type :script, "cd :path && :environment_variable=:environment :bundle_command script/:task :output"
|
|
111
|
+
job_type :runner, "cd :path && :bundle_command :runner_command -e :environment ':task' :output"
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
Pre-Rails 3 apps and apps that don't use Bundler will redefine the `rake` and `runner` jobs respectively to function correctly.
|
|
@@ -190,7 +190,7 @@ In your "config/deploy.rb" file:
|
|
|
190
190
|
require "whenever/capistrano"
|
|
191
191
|
```
|
|
192
192
|
|
|
193
|
-
Take a look at the recipe for options you can set. <https://github.com/javan/whenever/blob/
|
|
193
|
+
Take a look at the recipe for options you can set. <https://github.com/javan/whenever/blob/main/lib/whenever/capistrano/v2/recipes.rb>
|
|
194
194
|
For example, if you're using bundler do this:
|
|
195
195
|
|
|
196
196
|
```ruby
|
|
@@ -230,7 +230,7 @@ In your "Capfile" file:
|
|
|
230
230
|
require "whenever/capistrano"
|
|
231
231
|
```
|
|
232
232
|
|
|
233
|
-
Take a look at the [load:defaults task](https://github.com/javan/whenever/blob/
|
|
233
|
+
Take a look at the [load:defaults task](https://github.com/javan/whenever/blob/main/lib/whenever/capistrano/v3/tasks/whenever.rake) (bottom of file) for options you can set. For example, to namespace the crontab entries by application and stage do this in your "config/deploy.rb" file:
|
|
234
234
|
|
|
235
235
|
```ruby
|
|
236
236
|
set :whenever_identifier, ->{ "#{fetch(:application)}_#{fetch(:stage)}" }
|
|
@@ -327,8 +327,4 @@ It's a little bit dated now, but remains a good introduction.
|
|
|
327
327
|
|
|
328
328
|
----
|
|
329
329
|
|
|
330
|
-
[](http://travis-ci.org/javan/whenever)
|
|
331
|
-
|
|
332
|
-
----
|
|
333
|
-
|
|
334
330
|
Copyright © 2017 Javan Makhmali
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# This file was generated by Appraisal
|
|
2
2
|
|
|
3
|
-
source "
|
|
3
|
+
source "https://rubygems.org"
|
|
4
4
|
|
|
5
|
-
gem "
|
|
5
|
+
gem "rake"
|
|
6
|
+
gem "mocha"
|
|
7
|
+
gem "minitest"
|
|
8
|
+
gem "appraisal"
|
|
9
|
+
gem "activesupport", "~> 5.2.0"
|
|
6
10
|
|
|
7
11
|
gemspec path: "../"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# This file was generated by Appraisal
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
gem "rake"
|
|
6
|
+
gem "mocha"
|
|
7
|
+
gem "minitest"
|
|
8
|
+
gem "appraisal"
|
|
9
|
+
gem "activesupport", "~> 6.0.0"
|
|
10
|
+
gem "base64"
|
|
11
|
+
gem "bigdecimal"
|
|
12
|
+
gem "mutex_m"
|
|
13
|
+
gem "benchmark"
|
|
14
|
+
gem "logger"
|
|
15
|
+
gem "concurrent-ruby", "1.3.4"
|
|
16
|
+
|
|
17
|
+
gemspec path: "../"
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# This file was generated by Appraisal
|
|
2
|
+
|
|
3
|
+
source "https://rubygems.org"
|
|
4
|
+
|
|
5
|
+
gem "rake"
|
|
6
|
+
gem "mocha"
|
|
7
|
+
gem "minitest"
|
|
8
|
+
gem "appraisal"
|
|
9
|
+
gem "activesupport", "~> 6.1.0"
|
|
10
|
+
gem "base64"
|
|
11
|
+
gem "bigdecimal"
|
|
12
|
+
gem "mutex_m"
|
|
13
|
+
gem "benchmark"
|
|
14
|
+
gem "logger"
|
|
15
|
+
gem "concurrent-ruby", "1.3.4"
|
|
16
|
+
|
|
17
|
+
gemspec path: "../"
|
data/lib/whenever/job_list.rb
CHANGED
data/lib/whenever/version.rb
CHANGED
data/test/test_helper.rb
CHANGED
data/whenever.gemspec
CHANGED
|
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
spec.metadata["homepage_uri"] = spec.homepage
|
|
19
19
|
spec.metadata["source_code_uri"] = "https://github.com/javan/whenever"
|
|
20
20
|
spec.metadata["changelog_uri"] = "https://github.com/javan/whenever/blob/main/CHANGELOG.md"
|
|
21
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
21
22
|
|
|
22
23
|
spec.files = `git ls-files`.split("\n")
|
|
23
24
|
spec.test_files = `git ls-files -- test/{functional,unit}/*`.split("\n")
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: whenever
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Javan Makhmali
|
|
@@ -45,11 +45,16 @@ files:
|
|
|
45
45
|
- Rakefile
|
|
46
46
|
- bin/whenever
|
|
47
47
|
- bin/wheneverize
|
|
48
|
-
- gemfiles/activesupport4.1.gemfile
|
|
49
|
-
- gemfiles/activesupport4.2.gemfile
|
|
50
48
|
- gemfiles/activesupport5.0.gemfile
|
|
51
49
|
- gemfiles/activesupport5.1.gemfile
|
|
52
50
|
- gemfiles/activesupport5.2.gemfile
|
|
51
|
+
- gemfiles/activesupport6.0.gemfile
|
|
52
|
+
- gemfiles/activesupport6.1.gemfile
|
|
53
|
+
- gemfiles/activesupport7.0.gemfile
|
|
54
|
+
- gemfiles/activesupport7.1.gemfile
|
|
55
|
+
- gemfiles/activesupport7.2.gemfile
|
|
56
|
+
- gemfiles/activesupport8.0.gemfile
|
|
57
|
+
- gemfiles/activesupport8.1.gemfile
|
|
53
58
|
- lib/whenever.rb
|
|
54
59
|
- lib/whenever/capistrano.rb
|
|
55
60
|
- lib/whenever/capistrano/v2/hooks.rb
|
|
@@ -88,6 +93,7 @@ metadata:
|
|
|
88
93
|
homepage_uri: https://github.com/javan/whenever
|
|
89
94
|
source_code_uri: https://github.com/javan/whenever
|
|
90
95
|
changelog_uri: https://github.com/javan/whenever/blob/main/CHANGELOG.md
|
|
96
|
+
rubygems_mfa_required: 'true'
|
|
91
97
|
rdoc_options: []
|
|
92
98
|
require_paths:
|
|
93
99
|
- lib
|