cron_swanson 0.3.4 → 0.4.0

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
  SHA256:
3
- metadata.gz: 774b4cc23d01f0a3659e55c4d76c889f563dafdad67099568485ecf63772c8e1
4
- data.tar.gz: fbdbcb9c0bd490d67baf8a0fb48d54573db09eaa008093ec2e63a199dc969f60
3
+ metadata.gz: ebb42f21b14badafd42271cb5add182fc9f91f479b165bfe04f313bb13706609
4
+ data.tar.gz: cf558fe76d4d4dc0acc7af6fbab76fcd1c40832d16c1a7376883645724b94a2e
5
5
  SHA512:
6
- metadata.gz: 4fd63d57a96485ba5a6f31120324cbfeff992dd58c92e4b278c63efc5c54b4d419a447635dbfa9f00f4e8232bff7abd65fae597ad18975a2da6c2d003ca44e16
7
- data.tar.gz: 725cadac1de63e915bd43f5d0f7c57b16bb9351e8c01f9b1f19e09cdf4675337bb4b39e2b56b7063c25541fa76bcaddcb10898b6f4d865f004ea196a3df278a9
6
+ metadata.gz: 0e3fe8b7e7baa5fcc071ec113905a4621da516381aefe6949b06707b59ab2b4573787fe284520c70215dd64970693a06e7cd707fe60b2e2baef0ec7b123eee48
7
+ data.tar.gz: f9c45894b78262faaced52c95c5839687e2148d84175b33073a5819f45b68593940b8ee20cc6de6a91304f941b5b3f946ec074e3d9001cc8729d031f34d2367b
@@ -16,7 +16,7 @@ jobs:
16
16
  strategy:
17
17
  fail-fast: false
18
18
  matrix:
19
- ruby: ['2.5', '2.6', '2.7']
19
+ ruby: ['2.5', '2.6', '2.7', '3.0', '3.1']
20
20
 
21
21
  runs-on: ubuntu-latest
22
22
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.5
1
+ 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
- ## 0.3.4 : "Dear frozen yogurt, you are the celery of desserts. Be ice cream or be nothing." : Jan 1, 2021
3
+ ## 0.4.0 : "I'd wish you the best of luck, but luck is is a concept created by the weak to explain their failures." : July 30, 2022
4
+
5
+ Compatibility with ruby 3+. Thanks to @mzagaja! [PR #4](https://github.com/alexdean/cron_swanson/pull/4)
6
+
7
+ ## 0.3.4 : "Dear frozen yogurt, you are the celery of desserts. Be ice cream or be nothing." : Jan 1, 2022
4
8
 
5
9
  Note that gem doesn't currently work with ruby 3.
6
10
 
data/cron_swanson.gemspec CHANGED
@@ -22,8 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
23
  spec.require_paths = ["lib"]
24
24
 
25
- # https://github.com/alexdean/cron_swanson/issues/2
26
- spec.required_ruby_version = ['>= 2.5.0', '< 3.0.0']
25
+ spec.required_ruby_version = ['>= 2.5.0']
27
26
 
28
27
  spec.add_development_dependency "rake", ">= 12.3.3"
29
28
  end
@@ -1,3 +1,3 @@
1
1
  module CronSwanson
2
- VERSION = "0.3.4"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -81,9 +81,9 @@ module CronSwanson
81
81
 
82
82
  # now that we know when to schedule the jobs, actually pass the block to Whenever
83
83
  if roles.size > 0
84
- @whenever_job_list.every(schedule, roles: roles, &Proc.new)
84
+ @whenever_job_list.every(schedule, roles: roles, &block)
85
85
  else
86
- @whenever_job_list.every(schedule, &Proc.new)
86
+ @whenever_job_list.every(schedule, &block)
87
87
  end
88
88
 
89
89
  @in_schedule_method = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cron_swanson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dean
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-01 00:00:00.000000000 Z
11
+ date: 2022-07-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -63,9 +63,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
63
63
  - - ">="
64
64
  - !ruby/object:Gem::Version
65
65
  version: 2.5.0
66
- - - "<"
67
- - !ruby/object:Gem::Version
68
- version: 3.0.0
69
66
  required_rubygems_version: !ruby/object:Gem::Requirement
70
67
  requirements:
71
68
  - - ">="