whenever 1.1.0 → 1.1.2
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 +52 -4
- data/.gitignore +1 -1
- data/Appraisals +60 -10
- data/CHANGELOG.md +22 -0
- data/README.md +25 -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.rb +2 -1
- data/lib/whenever/job_list.rb +3 -2
- data/lib/whenever/version.rb +1 -1
- data/test/functional/output_defined_job_test.rb +28 -0
- data/test/functional/output_description_test.rb +25 -0
- data/test/test_helper.rb +4 -0
- data/whenever.gemspec +1 -0
- metadata +12 -4
- 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: e6e3f0d94253d0ac6d5a7f856afeb690b25f83a551e74581ebcc3cb0320855bc
|
|
4
|
+
data.tar.gz: 8d8ccccb89a2d7e4c5dd8d6744314888c88928a0bf7b6b3ed2bc7e195cae4290
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7942baf77e31bb83add51eea178e5ff11d724196a23cc45a47668813acb8ce428f1ab27ca806544ee935e67b8d164a6586e0a6bfda8eb33afb2ef0ea33c88d8
|
|
7
|
+
data.tar.gz: 30691f3aa03c58df894d3d516c21fedd9a6a3d23563ebaa9d267977b59a822c37071f4fc3663aae115f008865f426a899ce436badbb6883643aaa24b7e2a146c
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -7,9 +7,10 @@ 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
|
-
ruby-version: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.0', '3.2', '3.3', '3.4', 'jruby-9', 'jruby-10']
|
|
13
|
+
ruby-version: [ '2.4', '2.5', '2.6', '2.7', '3.0', '3.0', '3.2', '3.3', '3.4', '4.0', 'jruby-9', 'jruby-10']
|
|
13
14
|
# CRuby < 2.6 does not support macos-arm64, so test those on amd64 instead
|
|
14
15
|
exclude:
|
|
15
16
|
- os: macos-latest
|
|
@@ -17,12 +18,12 @@ jobs:
|
|
|
17
18
|
- os: macos-latest
|
|
18
19
|
ruby-version: '2.5'
|
|
19
20
|
include:
|
|
20
|
-
- os: macos-
|
|
21
|
+
- os: macos-15-intel
|
|
21
22
|
ruby-version: '2.4'
|
|
22
|
-
- os: macos-
|
|
23
|
+
- os: macos-15-intel
|
|
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', '4.0']
|
|
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,28 @@
|
|
|
1
1
|
### unreleased
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
### 1.1.2 / January 18, 2026
|
|
5
|
+
|
|
6
|
+
* Add description as comment in crontab https://github.com/javan/whenever/pull/776
|
|
7
|
+
|
|
8
|
+
* Override global option with group option https://github.com/javan/whenever/pull/822
|
|
9
|
+
|
|
10
|
+
* CI: Add Ruby 4.0 to CI Matrix https://github.com/javan/whenever/pull/872
|
|
11
|
+
|
|
12
|
+
* CI: Use macos-15-intel instead of macos-13 for Ruby 2.4 and 2.5 https://github.com/javan/whenever/pull/871
|
|
13
|
+
|
|
14
|
+
### 1.1.1 / Dec 8, 2025
|
|
15
|
+
|
|
16
|
+
* job_list `.respond_to?` updated to an instance method https://github.com/javan/whenever/pull/830
|
|
17
|
+
|
|
18
|
+
* Update README.md https://github.com/javan/whenever/pull/789
|
|
19
|
+
|
|
20
|
+
* CI: Bump actions/checkout from 5 to 6 https://github.com/javan/whenever/pull/869
|
|
21
|
+
|
|
22
|
+
* CI: Add tests using ActiveSupport to CI https://github.com/javan/whenever/pull/868
|
|
23
|
+
|
|
24
|
+
* Require MFA for gem releases https://github.com/javan/whenever/pull/867
|
|
25
|
+
|
|
4
26
|
### 1.1.0 / Nov 21, 2025
|
|
5
27
|
|
|
6
28
|
* 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.
|
|
@@ -180,6 +180,26 @@ every 3.hours do
|
|
|
180
180
|
end
|
|
181
181
|
```
|
|
182
182
|
|
|
183
|
+
### Adding comments to crontab
|
|
184
|
+
|
|
185
|
+
A description can be added to a job that will be included in the crontab as a comment above the cron entry.
|
|
186
|
+
|
|
187
|
+
Example: A single line description:
|
|
188
|
+
|
|
189
|
+
```ruby
|
|
190
|
+
every 1.hours, description: "My job description" do
|
|
191
|
+
command "/usr/bin/my_great_command"
|
|
192
|
+
end
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
Example: A multi line description:
|
|
196
|
+
|
|
197
|
+
```ruby
|
|
198
|
+
every 1.hours, description: "My job description\nhas multiple lines" do
|
|
199
|
+
command "/usr/bin/my_great_command"
|
|
200
|
+
end
|
|
201
|
+
```
|
|
202
|
+
|
|
183
203
|
### Capistrano integration
|
|
184
204
|
|
|
185
205
|
Use the built-in Capistrano recipe for easy crontab updates with deploys. For Capistrano V3, see the next section.
|
|
@@ -190,7 +210,7 @@ In your "config/deploy.rb" file:
|
|
|
190
210
|
require "whenever/capistrano"
|
|
191
211
|
```
|
|
192
212
|
|
|
193
|
-
Take a look at the recipe for options you can set. <https://github.com/javan/whenever/blob/
|
|
213
|
+
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
214
|
For example, if you're using bundler do this:
|
|
195
215
|
|
|
196
216
|
```ruby
|
|
@@ -230,7 +250,7 @@ In your "Capfile" file:
|
|
|
230
250
|
require "whenever/capistrano"
|
|
231
251
|
```
|
|
232
252
|
|
|
233
|
-
Take a look at the [load:defaults task](https://github.com/javan/whenever/blob/
|
|
253
|
+
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
254
|
|
|
235
255
|
```ruby
|
|
236
256
|
set :whenever_identifier, ->{ "#{fetch(:application)}_#{fetch(:stage)}" }
|
|
@@ -327,8 +347,4 @@ It's a little bit dated now, but remains a good introduction.
|
|
|
327
347
|
|
|
328
348
|
----
|
|
329
349
|
|
|
330
|
-
[](http://travis-ci.org/javan/whenever)
|
|
331
|
-
|
|
332
|
-
----
|
|
333
|
-
|
|
334
350
|
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.rb
CHANGED
|
@@ -2,7 +2,7 @@ require 'shellwords'
|
|
|
2
2
|
|
|
3
3
|
module Whenever
|
|
4
4
|
class Job
|
|
5
|
-
attr_reader :at, :roles, :mailto
|
|
5
|
+
attr_reader :at, :roles, :mailto, :description
|
|
6
6
|
|
|
7
7
|
def initialize(options = {})
|
|
8
8
|
@options = options
|
|
@@ -11,6 +11,7 @@ module Whenever
|
|
|
11
11
|
@mailto = options.fetch(:mailto, :default_mailto)
|
|
12
12
|
@job_template = options.delete(:job_template) || ":job"
|
|
13
13
|
@roles = Array(options.delete(:roles))
|
|
14
|
+
@description = options.delete(:description)
|
|
14
15
|
@options[:output] = options.has_key?(:output) ? Whenever::Output::Redirection.new(options[:output]).to_s : ''
|
|
15
16
|
@options[:environment_variable] ||= "RAILS_ENV"
|
|
16
17
|
@options[:environment] ||= :production
|
data/lib/whenever/job_list.rb
CHANGED
|
@@ -37,7 +37,7 @@ module Whenever
|
|
|
37
37
|
@set_variables.has_key?(name) ? @set_variables[name] : super
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
def
|
|
40
|
+
def respond_to?(name, include_private = false)
|
|
41
41
|
@set_variables.has_key?(name) || super
|
|
42
42
|
end
|
|
43
43
|
|
|
@@ -66,7 +66,7 @@ module Whenever
|
|
|
66
66
|
|
|
67
67
|
@jobs[options.fetch(:mailto)] ||= {}
|
|
68
68
|
@jobs[options.fetch(:mailto)][@current_time_scope] ||= []
|
|
69
|
-
@jobs[options.fetch(:mailto)][@current_time_scope] << Whenever::Job.new(@
|
|
69
|
+
@jobs[options.fetch(:mailto)][@current_time_scope] << Whenever::Job.new(@set_variables.merge(@options).merge(options))
|
|
70
70
|
end
|
|
71
71
|
end
|
|
72
72
|
end
|
|
@@ -144,6 +144,7 @@ module Whenever
|
|
|
144
144
|
end
|
|
145
145
|
Whenever::Output::Cron.output(time, job, :chronic_options => @chronic_options) do |cron|
|
|
146
146
|
cron << "\n\n"
|
|
147
|
+
cron = (job.description.strip + "\n").gsub(/^(.*)$/, '# \1') + cron unless job.description.to_s.empty?
|
|
147
148
|
|
|
148
149
|
if cron[0,1] == "@"
|
|
149
150
|
shortcut_jobs << cron
|
data/lib/whenever/version.rb
CHANGED
|
@@ -55,6 +55,34 @@ class OutputDefinedJobTest < Whenever::TestCase
|
|
|
55
55
|
assert_match(/^.+ .+ .+ .+ before during after local$/, output)
|
|
56
56
|
end
|
|
57
57
|
|
|
58
|
+
test "defined job with a :task and an option where the option is set globally and on the group" do
|
|
59
|
+
output = Whenever.cron \
|
|
60
|
+
<<-file
|
|
61
|
+
set :job_template, nil
|
|
62
|
+
job_type :some_job, "before :task after :option1"
|
|
63
|
+
set :option1, 'global'
|
|
64
|
+
every 2.hours, :option1 => 'group' do
|
|
65
|
+
some_job "during"
|
|
66
|
+
end
|
|
67
|
+
file
|
|
68
|
+
|
|
69
|
+
assert_match(/^.+ .+ .+ .+ before during after group$/, output)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
test "defined job with a :task and an option where the option is set globally, on the group, and locally" do
|
|
73
|
+
output = Whenever.cron \
|
|
74
|
+
<<-file
|
|
75
|
+
set :job_template, nil
|
|
76
|
+
job_type :some_job, "before :task after :option1"
|
|
77
|
+
set :option1, 'global'
|
|
78
|
+
every 2.hours, :option1 => 'group' do
|
|
79
|
+
some_job "during", :option1 => 'local'
|
|
80
|
+
end
|
|
81
|
+
file
|
|
82
|
+
|
|
83
|
+
assert_match(/^.+ .+ .+ .+ before during after local$/, output)
|
|
84
|
+
end
|
|
85
|
+
|
|
58
86
|
test "defined job with a :task and an option that is not set" do
|
|
59
87
|
output = Whenever.cron \
|
|
60
88
|
<<-file
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
require 'test_helper'
|
|
2
|
+
|
|
3
|
+
class OutputDescriptionTest < Whenever::TestCase
|
|
4
|
+
test "single line description" do
|
|
5
|
+
output = Whenever.cron \
|
|
6
|
+
<<-file
|
|
7
|
+
every "weekday", :description => "A description" do
|
|
8
|
+
command "blahblah"
|
|
9
|
+
end
|
|
10
|
+
file
|
|
11
|
+
|
|
12
|
+
assert_match "# A description\n0 0 * * 1-5 /bin/bash -l -c 'blahblah'\n\n", output
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
test "multi line description" do
|
|
16
|
+
output = Whenever.cron \
|
|
17
|
+
<<-file
|
|
18
|
+
every "weekday", :description => "A description\nhas mulitple lines" do
|
|
19
|
+
command "blahblah"
|
|
20
|
+
end
|
|
21
|
+
file
|
|
22
|
+
|
|
23
|
+
assert_match "# A description\n# has mulitple lines\n0 0 * * 1-5 /bin/bash -l -c 'blahblah'\n\n", output
|
|
24
|
+
end
|
|
25
|
+
end
|
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.2
|
|
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
|
|
@@ -70,6 +75,7 @@ files:
|
|
|
70
75
|
- test/functional/output_at_test.rb
|
|
71
76
|
- test/functional/output_default_defined_jobs_test.rb
|
|
72
77
|
- test/functional/output_defined_job_test.rb
|
|
78
|
+
- test/functional/output_description_test.rb
|
|
73
79
|
- test/functional/output_env_test.rb
|
|
74
80
|
- test/functional/output_jobs_for_roles_test.rb
|
|
75
81
|
- test/functional/output_jobs_with_mailto_test.rb
|
|
@@ -88,6 +94,7 @@ metadata:
|
|
|
88
94
|
homepage_uri: https://github.com/javan/whenever
|
|
89
95
|
source_code_uri: https://github.com/javan/whenever
|
|
90
96
|
changelog_uri: https://github.com/javan/whenever/blob/main/CHANGELOG.md
|
|
97
|
+
rubygems_mfa_required: 'true'
|
|
91
98
|
rdoc_options: []
|
|
92
99
|
require_paths:
|
|
93
100
|
- lib
|
|
@@ -102,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
102
109
|
- !ruby/object:Gem::Version
|
|
103
110
|
version: '0'
|
|
104
111
|
requirements: []
|
|
105
|
-
rubygems_version:
|
|
112
|
+
rubygems_version: 4.0.3
|
|
106
113
|
specification_version: 4
|
|
107
114
|
summary: Cron jobs in ruby.
|
|
108
115
|
test_files:
|
|
@@ -110,6 +117,7 @@ test_files:
|
|
|
110
117
|
- test/functional/output_at_test.rb
|
|
111
118
|
- test/functional/output_default_defined_jobs_test.rb
|
|
112
119
|
- test/functional/output_defined_job_test.rb
|
|
120
|
+
- test/functional/output_description_test.rb
|
|
113
121
|
- test/functional/output_env_test.rb
|
|
114
122
|
- test/functional/output_jobs_for_roles_test.rb
|
|
115
123
|
- test/functional/output_jobs_with_mailto_test.rb
|