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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c3ac580addd44968bf92b9696fe79224f927baed4486fb25fe3dc818a1a38b1
4
- data.tar.gz: 7bb85c3237b714796ec684f1986f45d7ccff17b4ac70f16e80bd7f4dd6322771
3
+ metadata.gz: 55cafb2edffbfeec94032659d8af2086785d5c864c7e979395197ba02e6612d4
4
+ data.tar.gz: 88ad009fb54d433ac00fd86f24c8ca0a5cbe05f7cd7774a8b4fac1ebfb90c4b9
5
5
  SHA512:
6
- metadata.gz: 48e513b22609227c225613cd130a420aef870d2bf28b0ebe62ce87f4df0ea85b93163a017293e5578d0047ae0978bfd3cf67ae355d41613454ed895313f64e15
7
- data.tar.gz: ce751f6670ef054ba52e30c6edc928a8df7a4b55e172cbbb913f9d012e81dc726bb8d28dfbbea01a988bdb0e8f5395dff326807dd935f419fa66136cbf06752d
6
+ metadata.gz: a81a8c3345588bf311b35bb9b6a6d158dd3fcff181f5a67c423a12db336ccc21c802d1f9498ecd079ebe2006479c971abc7a9129a89c965f63a88a46e1aee78d
7
+ data.tar.gz: 35622000e04945eab6965f0b5b87a2f2e914753628cf8ccbcf1e9cf99cbf0182125c283ad593f34a1dfa9372c225d208239fd9cec3a1d507a9a34f711f8da99f
@@ -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@v5
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
@@ -5,7 +5,7 @@
5
5
  /doc/
6
6
  /pkg/
7
7
  /spec/reports/
8
- /tmp/
8
+ tmp/
9
9
 
10
10
  /Gemfile.lock
11
11
  gemfiles/*.lock
data/Appraisals CHANGED
@@ -1,19 +1,69 @@
1
- appraise 'activesupport4.1' do
2
- gem "activesupport", "~> 4.1.0"
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 'activesupport4.2' do
6
- gem "activesupport", "~> 4.2.0"
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
- appraise 'activesupport5.0' do
10
- gem "activesupport", "~> 5.0.0"
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
- appraise 'activesupport5.1' do
14
- gem "activesupport", "~> 5.1.0"
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
- appraise 'activesupport5.2' do
18
- gem "activesupport", "~> 5.2.0beta2"
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 bundle exec rake :task --silent :output"
110
- job_type :runner, "cd :path && bin/rails runner -e :environment ':task' :output"
111
- job_type :script, "cd :path && :environment_variable=:environment bundle exec script/:task :output"
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/master/lib/whenever/capistrano/v2/recipes.rb>
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/master/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:
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
- [![Build Status](https://secure.travis-ci.org/javan/whenever.svg)](http://travis-ci.org/javan/whenever)
331
-
332
- ----
333
-
334
330
  Copyright &copy; 2017 Javan Makhmali
@@ -1,7 +1,11 @@
1
1
  # This file was generated by Appraisal
2
2
 
3
- source "http://rubygems.org"
3
+ source "https://rubygems.org"
4
4
 
5
+ gem "rake"
6
+ gem "mocha"
7
+ gem "minitest"
8
+ gem "appraisal"
5
9
  gem "activesupport", "~> 5.0.0"
6
10
 
7
11
  gemspec path: "../"
@@ -1,7 +1,11 @@
1
1
  # This file was generated by Appraisal
2
2
 
3
- source "http://rubygems.org"
3
+ source "https://rubygems.org"
4
4
 
5
+ gem "rake"
6
+ gem "mocha"
7
+ gem "minitest"
8
+ gem "appraisal"
5
9
  gem "activesupport", "~> 5.1.0"
6
10
 
7
11
  gemspec path: "../"
@@ -1,7 +1,11 @@
1
1
  # This file was generated by Appraisal
2
2
 
3
- source "http://rubygems.org"
3
+ source "https://rubygems.org"
4
4
 
5
- gem "activesupport", "~> 5.2.0beta2"
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: "../"
@@ -0,0 +1,11 @@
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", "~> 7.0.0"
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
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", "~> 7.1.0"
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
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", "~> 7.2.0"
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
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", "~> 8.0.0"
10
+
11
+ gemspec path: "../"
@@ -0,0 +1,11 @@
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", "~> 8.1.0"
10
+
11
+ gemspec path: "../"
@@ -37,7 +37,7 @@ module Whenever
37
37
  @set_variables.has_key?(name) ? @set_variables[name] : super
38
38
  end
39
39
 
40
- def self.respond_to?(name, include_private = false)
40
+ def respond_to?(name, include_private = false)
41
41
  @set_variables.has_key?(name) || super
42
42
  end
43
43
 
@@ -1,3 +1,3 @@
1
1
  module Whenever
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
data/test/test_helper.rb CHANGED
@@ -1,6 +1,10 @@
1
1
  require 'whenever'
2
2
  require 'test_case'
3
3
  require 'mocha/minitest'
4
+ begin
5
+ require 'active_support/all'
6
+ rescue LoadError
7
+ end
4
8
 
5
9
  module Whenever::TestHelpers
6
10
  protected
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.0
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
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "activesupport", "~> 4.1.0"
6
-
7
- gemspec path: "../"
@@ -1,7 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "http://rubygems.org"
4
-
5
- gem "activesupport", "~> 4.2.0"
6
-
7
- gemspec path: "../"