ruby-clock 2.0.0.beta10 → 2.0.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: 0f773f1b873c6048b24cb6c78769c809fd3008c0316463071633086aa572f853
4
- data.tar.gz: 28de0953617822f2473cecebdac1ab308420231670073db0d4458d89d527e3ee
3
+ metadata.gz: 20fc4e914b706c818238f8d45a6d81ff650e18ae8fe90b47a9f818e28871bbc6
4
+ data.tar.gz: b0d23fded8dfd9981bedcfcaf9300376c615f53ce782a6f9e1a807b3e054c324
5
5
  SHA512:
6
- metadata.gz: e4d94f375285033a0ca49ed535b29f0768adac1efa83f4c63a67090f866aa2a1f72b4a0159c746d99bf765c8c5b7f308daff090be0e2b671518d8fe67cf3b63e
7
- data.tar.gz: 693519be98311aff6e24aae1c61cf908f710049a6854886264f100dc844f8436b3ba58f0ab1bd9b6d6a5bf3f5916383d744ce9390dbb582bdd70f4c6dab03936
6
+ metadata.gz: 840663b99bf1d803274dc28d7b72882958b1e99fd93b7039fe249192fcb510b07fd894b5e5b404de1153a53095763bd0aaaf1c0a16f20b225187477a3887fab9
7
+ data.tar.gz: 7ba7a882f7e6cb6ed115d88769d433d835e9b8782c5e9272436ff28956594cd9d8ae995ea54e59e86fbf3daf4848b0eca30a60b20933a16401d0f21cbb6e24a4
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 2.0.0 beta
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 | /Users/your-username/go/bin/cronv -d 1d -o ./my_cron_schedule.html
177
- open dummycron
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
@@ -1,3 +1,3 @@
1
1
  class RubyClock
2
- VERSION = "2.0.0.beta10"
2
+ VERSION = "2.0.0"
3
3
  end
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.beta10
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-06-25 00:00:00.000000000 Z
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: 1.3.1
277
+ version: '0'
278
278
  requirements: []
279
279
  rubygems_version: 3.3.7
280
280
  signing_key: