ruby-clock 2.0.0.beta10 → 2.0.0
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/CHANGELOG.md +2 -3
- data/README.md +10 -2
- data/lib/ruby-clock/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20fc4e914b706c818238f8d45a6d81ff650e18ae8fe90b47a9f818e28871bbc6
|
4
|
+
data.tar.gz: b0d23fded8dfd9981bedcfcaf9300376c615f53ce782a6f9e1a807b3e054c324
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 840663b99bf1d803274dc28d7b72882958b1e99fd93b7039fe249192fcb510b07fd894b5e5b404de1153a53095763bd0aaaf1c0a16f20b225187477a3887fab9
|
7
|
+
data.tar.gz: 7ba7a882f7e6cb6ed115d88769d433d835e9b8782c5e9272436ff28956594cd9d8ae995ea54e59e86fbf3daf4848b0eca30a60b20933a16401d0f21cbb6e24a4
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
## 2.0.0
|
1
|
+
## 2.0.0
|
2
2
|
|
3
3
|
### Features
|
4
4
|
* The way the [rails app reloader](https://guides.rubyonrails.org/threading_and_code_execution.html)
|
@@ -30,7 +30,6 @@
|
|
30
30
|
* Code reorganization so there are no unnecessary methods in top-level `Kernel` namespace
|
31
31
|
* top-level DSL methods are now implemented with refinements, so they don't polute other code
|
32
32
|
|
33
|
-
|
34
33
|
### Migrating from ruby-clock version 1 to version 2
|
35
34
|
* The minimum ruby version is 3.0
|
36
35
|
* The top of every Clockfile must begin with `using RubyClock::DSL`
|
@@ -39,8 +38,8 @@
|
|
39
38
|
* Your existing Clockfile with `schedule.foo` invocations will still work, but you now have the option to use
|
40
39
|
`every`, `cron`, and `on_error` at the top-level, without referencing `schedule`.
|
41
40
|
* You now have the option of catching and reporting errors encountered when parsing the Clockfile.
|
42
|
-
* There is no longer a need to have a binstub in rails. You can delete bin/clock from your app.
|
43
41
|
* remove the `posix-spawn` gem from your project
|
42
|
+
* There is no longer a need to have a binstub in rails. You can delete bin/clock from your app.
|
44
43
|
* The invocations (in Procfile, or wherever else you start ruby-clock) should change from
|
45
44
|
|
46
45
|
bundle exec rails runner bin/clock
|
data/README.md
CHANGED
@@ -171,10 +171,18 @@ For your jobs with cron-style schedules, it will generate a dummy crontab file t
|
|
171
171
|
For your jobs with "Every X seconds" schedules, a comment will be made in the file and they will not be vizualized.
|
172
172
|
|
173
173
|
```console
|
174
|
+
## install go
|
175
|
+
brew install go # homebrew
|
176
|
+
sudo port install go # macports
|
177
|
+
|
178
|
+
## install cronv https://github.com/takumakanari/cronv#go-install
|
179
|
+
go install -v github.com/takumakanari/cronv/cronv@0.4.5
|
180
|
+
|
181
|
+
## generate dummy crontab
|
174
182
|
bundle exec clock --generate-dummy-crontab Clockfile ../clock/daily.rb ../clock/weekly.rb > dummycron.txt
|
175
183
|
## IMPORTANT: open dummycron.txt in an editor and remove the boot startup message cruft from the top
|
176
|
-
cat dummycron.txt |
|
177
|
-
open
|
184
|
+
cat dummycron.txt | ~/go/bin/cronv --duration=1d --title='Clock Jobs' --width=50 -o ./my_cron_schedule.html
|
185
|
+
open my_cron_schedule.html
|
178
186
|
```
|
179
187
|
|
180
188
|
## More Config and Capabilities
|
data/lib/ruby-clock/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-clock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Bachir
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rufus-scheduler
|
@@ -272,9 +272,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
272
272
|
version: 3.0.0
|
273
273
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
274
274
|
requirements:
|
275
|
-
- - "
|
275
|
+
- - ">="
|
276
276
|
- !ruby/object:Gem::Version
|
277
|
-
version:
|
277
|
+
version: '0'
|
278
278
|
requirements: []
|
279
279
|
rubygems_version: 3.3.7
|
280
280
|
signing_key:
|