ruby-clock 2.0.0.beta10 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -3
- data/README.md +12 -6
- data/exe/clock +1 -1
- 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: a1da2d91639ba4f1ce53237cedc38959c32cb922c0aacbd41c421bbf3e32faec
|
4
|
+
data.tar.gz: 93538b9bc5a3197c19cc2a008903c3cc49831181a4fc8a95c76757bef5767026
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e2f94f9b317142e112d1b4ef6aa05a209277d4fc33d73b776b694be73e2c4d0fadc4ee8c219c92583812ae774fd7608b6d4739b779980058e7353dad67ea57c
|
7
|
+
data.tar.gz: afd0702847b96a3c7435e21a1a5f8fd2f576bd4cd84126ec031d2e0b82ae06f8247e2b0b4af261470b17d49af07101002e2fe29da16d8b791fa5985f948bf829
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,11 @@
|
|
1
|
-
## 2.0.
|
1
|
+
## 2.0.1
|
2
|
+
|
3
|
+
### Bug fix
|
4
|
+
|
5
|
+
* Invoking without specifying a Clockfile was broken when one of the flags was
|
6
|
+
implemented. This is fixed now.
|
7
|
+
|
8
|
+
## 2.0.0
|
2
9
|
|
3
10
|
### Features
|
4
11
|
* The way the [rails app reloader](https://guides.rubyonrails.org/threading_and_code_execution.html)
|
@@ -30,7 +37,6 @@
|
|
30
37
|
* Code reorganization so there are no unnecessary methods in top-level `Kernel` namespace
|
31
38
|
* top-level DSL methods are now implemented with refinements, so they don't polute other code
|
32
39
|
|
33
|
-
|
34
40
|
### Migrating from ruby-clock version 1 to version 2
|
35
41
|
* The minimum ruby version is 3.0
|
36
42
|
* The top of every Clockfile must begin with `using RubyClock::DSL`
|
@@ -39,8 +45,8 @@
|
|
39
45
|
* Your existing Clockfile with `schedule.foo` invocations will still work, but you now have the option to use
|
40
46
|
`every`, `cron`, and `on_error` at the top-level, without referencing `schedule`.
|
41
47
|
* 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
48
|
* remove the `posix-spawn` gem from your project
|
49
|
+
* There is no longer a need to have a binstub in rails. You can delete bin/clock from your app.
|
44
50
|
* The invocations (in Procfile, or wherever else you start ruby-clock) should change from
|
45
51
|
|
46
52
|
bundle exec rails runner bin/clock
|
data/README.md
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
See version 1 docs here: https://github.com/jjb/ruby-clock/tree/v1.0.0
|
1
|
+
_These are the docs for version 2.0.0. See version 1 docs here: https://github.com/jjb/ruby-clock/tree/v1.0.0_
|
4
2
|
|
5
3
|
# ruby-clock
|
6
4
|
|
@@ -33,7 +31,7 @@ ruby >= 3.0 is required.
|
|
33
31
|
Add these lines to your application's Gemfile:
|
34
32
|
|
35
33
|
```ruby
|
36
|
-
gem 'ruby-clock'
|
34
|
+
gem 'ruby-clock'
|
37
35
|
```
|
38
36
|
|
39
37
|
And then execute:
|
@@ -171,10 +169,18 @@ For your jobs with cron-style schedules, it will generate a dummy crontab file t
|
|
171
169
|
For your jobs with "Every X seconds" schedules, a comment will be made in the file and they will not be vizualized.
|
172
170
|
|
173
171
|
```console
|
172
|
+
## install go
|
173
|
+
brew install go # homebrew
|
174
|
+
sudo port install go # macports
|
175
|
+
|
176
|
+
## install cronv https://github.com/takumakanari/cronv#go-install
|
177
|
+
go install -v github.com/takumakanari/cronv/cronv@0.4.5
|
178
|
+
|
179
|
+
## generate dummy crontab
|
174
180
|
bundle exec clock --generate-dummy-crontab Clockfile ../clock/daily.rb ../clock/weekly.rb > dummycron.txt
|
175
181
|
## IMPORTANT: open dummycron.txt in an editor and remove the boot startup message cruft from the top
|
176
|
-
cat dummycron.txt |
|
177
|
-
open
|
182
|
+
cat dummycron.txt | ~/go/bin/cronv --duration=1d --title='Clock Jobs' --width=50 -o ./my_cron_schedule.html
|
183
|
+
open my_cron_schedule.html
|
178
184
|
```
|
179
185
|
|
180
186
|
## More Config and Capabilities
|
data/exe/clock
CHANGED
@@ -12,7 +12,7 @@ RubyClock.instance.add_rails_executor_to_around_actions
|
|
12
12
|
check_syntax = false
|
13
13
|
check_slug_uniqueness = false
|
14
14
|
generate_dummy_crontab = false
|
15
|
-
if '--' == ARGV[0][0..1]
|
15
|
+
if ARGV[0] && '--' == ARGV[0][0..1]
|
16
16
|
case ARGV[0]
|
17
17
|
when '--environment-and-syntax-check'
|
18
18
|
check_syntax = true
|
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.
|
4
|
+
version: 2.0.1
|
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-24 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:
|