cron_swanson 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +34 -0
- data/.ruby-version +1 -1
- data/CHANGELOG.md +12 -0
- data/README.md +1 -1
- data/cron_swanson.gemspec +3 -2
- data/lib/cron_swanson/version.rb +1 -1
- data/lib/cron_swanson/whenever.rb +2 -2
- data/lib/cron_swanson.rb +0 -1
- metadata +12 -27
- data/.travis.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebb42f21b14badafd42271cb5add182fc9f91f479b165bfe04f313bb13706609
|
4
|
+
data.tar.gz: cf558fe76d4d4dc0acc7af6fbab76fcd1c40832d16c1a7376883645724b94a2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e3fe8b7e7baa5fcc071ec113905a4621da516381aefe6949b06707b59ab2b4573787fe284520c70215dd64970693a06e7cd707fe60b2e2baef0ec7b123eee48
|
7
|
+
data.tar.gz: f9c45894b78262faaced52c95c5839687e2148d84175b33073a5819f45b68593940b8ee20cc6de6a91304f941b5b3f946ec074e3d9001cc8729d031f34d2367b
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: rspec
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: '**'
|
13
|
+
|
14
|
+
jobs:
|
15
|
+
test:
|
16
|
+
strategy:
|
17
|
+
fail-fast: false
|
18
|
+
matrix:
|
19
|
+
ruby: ['2.5', '2.6', '2.7', '3.0', '3.1']
|
20
|
+
|
21
|
+
runs-on: ubuntu-latest
|
22
|
+
|
23
|
+
steps:
|
24
|
+
- uses: actions/checkout@v2
|
25
|
+
- name: Set up Ruby
|
26
|
+
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
|
27
|
+
# change this to (see https://github.com/ruby/setup-ruby#versioning):
|
28
|
+
uses: ruby/setup-ruby@v1
|
29
|
+
with:
|
30
|
+
ruby-version: ${{ matrix.ruby }}
|
31
|
+
- name: Install dependencies
|
32
|
+
run: bundle install
|
33
|
+
- name: Run tests
|
34
|
+
run: bundle exec rake spec
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.1.2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
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
|
8
|
+
|
9
|
+
Note that gem doesn't currently work with ruby 3.
|
10
|
+
|
11
|
+
## 0.3.3 : "There has never been a sadness that can’t been cured by breakfast food." : May 13, 2020
|
12
|
+
|
13
|
+
Remove 1 annoying `puts` statement.
|
14
|
+
|
3
15
|
## 0.3.2 : "I regret nothing. The end." : November 4, 2019
|
4
16
|
|
5
17
|
Important bugfix: Previous versions would generate invalid schedule strings
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ random) but which are fuzzed/shifted depending on some input.
|
|
12
12
|
|
13
13
|
## Build Status
|
14
14
|
|
15
|
-
[![
|
15
|
+
[![Test Suite](https://github.com/alexdean/cron_swanson/actions/workflows/rspec.yml/badge.svg)](https://github.com/alexdean/cron_swanson/actions/workflows/rspec.yml)
|
16
16
|
|
17
17
|
## Installation
|
18
18
|
|
data/cron_swanson.gemspec
CHANGED
@@ -22,6 +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
|
-
spec.
|
26
|
-
|
25
|
+
spec.required_ruby_version = ['>= 2.5.0']
|
26
|
+
|
27
|
+
spec.add_development_dependency "rake", ">= 12.3.3"
|
27
28
|
end
|
data/lib/cron_swanson/version.rb
CHANGED
@@ -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, &
|
84
|
+
@whenever_job_list.every(schedule, roles: roles, &block)
|
85
85
|
else
|
86
|
-
@whenever_job_list.every(schedule, &
|
86
|
+
@whenever_job_list.every(schedule, &block)
|
87
87
|
end
|
88
88
|
|
89
89
|
@in_schedule_method = false
|
data/lib/cron_swanson.rb
CHANGED
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cron_swanson
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Dean
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: bundler
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.17'
|
20
|
-
type: :development
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.17'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rake
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
|
-
- - "
|
17
|
+
- - ">="
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
19
|
+
version: 12.3.3
|
34
20
|
type: :development
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
|
-
- - "
|
24
|
+
- - ">="
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
26
|
+
version: 12.3.3
|
41
27
|
description: easily schedule multiple apps to run the same job at different times
|
42
28
|
email:
|
43
29
|
- github@mostlyalex.com
|
@@ -45,11 +31,11 @@ executables: []
|
|
45
31
|
extensions: []
|
46
32
|
extra_rdoc_files: []
|
47
33
|
files:
|
34
|
+
- ".github/workflows/rspec.yml"
|
48
35
|
- ".gitignore"
|
49
36
|
- ".rspec"
|
50
37
|
- ".rubocop.yml"
|
51
38
|
- ".ruby-version"
|
52
|
-
- ".travis.yml"
|
53
39
|
- CHANGELOG.md
|
54
40
|
- Gemfile
|
55
41
|
- Guardfile
|
@@ -68,7 +54,7 @@ files:
|
|
68
54
|
homepage: https://github.com/alexdean/cron_swanson
|
69
55
|
licenses: []
|
70
56
|
metadata: {}
|
71
|
-
post_install_message:
|
57
|
+
post_install_message:
|
72
58
|
rdoc_options: []
|
73
59
|
require_paths:
|
74
60
|
- lib
|
@@ -76,16 +62,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
62
|
requirements:
|
77
63
|
- - ">="
|
78
64
|
- !ruby/object:Gem::Version
|
79
|
-
version:
|
65
|
+
version: 2.5.0
|
80
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
67
|
requirements:
|
82
68
|
- - ">="
|
83
69
|
- !ruby/object:Gem::Version
|
84
70
|
version: '0'
|
85
71
|
requirements: []
|
86
|
-
|
87
|
-
|
88
|
-
signing_key:
|
72
|
+
rubygems_version: 3.1.4
|
73
|
+
signing_key:
|
89
74
|
specification_version: 4
|
90
75
|
summary: distribute common cron jobs so they don't all start at the same moment
|
91
76
|
test_files: []
|