ruby-clock 0.8.0.rc1 → 0.8.0.rc2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77de35a13a23a83386d574ebc2ff0e71777f65b3612a9a444afd4f9ea69286bf
4
- data.tar.gz: 95cec8207417b487dfb81fb20b9cc8147bd90200efb009cc56a8c023773979bf
3
+ metadata.gz: 2ec6ebc2ef5793e7d114920402b20ed5129e1f60a78cb444d208e45def25a36b
4
+ data.tar.gz: 3935724aaa45567dd2e769274f76fc1b5a3785f155d4885764a25635a8bf6c96
5
5
  SHA512:
6
- metadata.gz: a5585b7af51d706ffcbac3b88881c9b9c189dbc80e08867feea9ecef690dfd04957593504415bffde2c2022f69c1afdb0b30472f2466baa6bfc0dfad1264855d
7
- data.tar.gz: b1a9aa07dfcaaf28f8d953c88f9ccc467ac199376dce674bff1b3fac7aef3a01416dd9638a40d5fd28ae23932d56e1f56b74888fdb485c4dce3dd9fa6ed579aa
6
+ metadata.gz: cf58749b267218114e3ad235fa64d0c7e21cecc13c75f6a655b63cf16f056dcc174e6cd724be74c3a5c39087eec808e03d72829674cff52d85f0f831340efeb3
7
+ data.tar.gz: 04eefdc557205145fad64889dec7f7dcf6af4ead08dcc8795af58be4fffc2a54d97bb261048478c98aab58be30124e47f1d35c5115976cdd4119b95903e9b5ce
data/CHANGELOG.md CHANGED
@@ -1,10 +1,14 @@
1
+ ## 0.8.0 RC2
2
+
3
+ * fix detection of Rails constant, for non-rails apps
4
+
1
5
  ## 0.8.0 RC1
2
6
 
3
- * fixed rare error when calculating job identifier
4
- * nicer shutdown logging, indicating when shutdown process begins and ends
7
+ * automatically wrap jobs with rails reloader
5
8
  * ability to run rake tasks
6
9
  * ability to run shell commands
7
- * automatically wrap jobs with rails reloader
10
+ * nicer shutdown logging, indicating when shutdown process begins and ends
11
+ * fix approach for error fallbacks when when calculating job identifier (probably never encountered)
8
12
 
9
13
  ## 0.7.0
10
14
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ruby-clock (0.8.0.rc1)
4
+ ruby-clock (0.8.0.rc2)
5
5
  method_source
6
6
  posix-spawn (~> 0.3.15)
7
7
  rufus-scheduler (~> 3.8)
data/README.md CHANGED
@@ -108,6 +108,14 @@ thing_reporter: bundle exec rails runner bin/clock clocks/thing_reporter.rb
108
108
 
109
109
  Because of this feature, do I regret using "Clockfile" instead of, say, "clock.rb"? Maybe.
110
110
 
111
+ #### Observing logs
112
+
113
+ Because STDOUT does not flush until a certain amount of data has gone into it,
114
+ you might not immediately see the ruby-clock startup message or job output if
115
+ viewing logs in a deployed environment such as Heroku where the logs are redirected
116
+ to another process or file. To change this behavior and have logs flush immediately,
117
+ add `$stdout.sync = true` to the top of your Clockfile.
118
+
111
119
 
112
120
  ## More Config and Capabilities
113
121
 
@@ -0,0 +1 @@
1
+ Clockfile linguist-language=Ruby
@@ -0,0 +1,3 @@
1
+ schedule.every('2 seconds') do
2
+ puts "hello from a ruby-clock job"
3
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem 'ruby-clock', path: '../'
@@ -0,0 +1,37 @@
1
+ PATH
2
+ remote: ..
3
+ specs:
4
+ ruby-clock (0.8.0.rc1)
5
+ method_source
6
+ posix-spawn (~> 0.3.15)
7
+ rufus-scheduler (~> 3.8)
8
+ terrapin (~> 0.6)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ climate_control (0.2.0)
14
+ concurrent-ruby (1.1.9)
15
+ et-orbi (1.2.5)
16
+ tzinfo
17
+ fugit (1.5.2)
18
+ et-orbi (~> 1.1, >= 1.1.8)
19
+ raabro (~> 1.4)
20
+ method_source (1.0.0)
21
+ posix-spawn (0.3.15)
22
+ raabro (1.4.0)
23
+ rufus-scheduler (3.8.0)
24
+ fugit (~> 1.1, >= 1.1.6)
25
+ terrapin (0.6.0)
26
+ climate_control (>= 0.0.3, < 1.0)
27
+ tzinfo (2.0.4)
28
+ concurrent-ruby (~> 1.0)
29
+
30
+ PLATFORMS
31
+ arm64-darwin-20
32
+
33
+ DEPENDENCIES
34
+ ruby-clock!
35
+
36
+ BUNDLED WITH
37
+ 2.2.28
@@ -0,0 +1,9 @@
1
+ This is a bare-bones example non-rails app to
2
+ help with dev and also as an example for users.
3
+
4
+ To run:
5
+
6
+ ```
7
+ bundle
8
+ bundle exe clock
9
+ ```
data/exe/clock CHANGED
@@ -25,7 +25,7 @@ schedule.pause
25
25
 
26
26
  load ARGV[0] || 'Clockfile'
27
27
 
28
- if ::Rails
28
+ if defined?(::Rails)
29
29
  schedule.instance_eval do
30
30
  @old_around_trigger = method :around_trigger
31
31
  def around_trigger(job)
@@ -1,3 +1,3 @@
1
1
  module RubyClock
2
- VERSION = "0.8.0.rc1"
2
+ VERSION = "0.8.0.rc2"
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: 0.8.0.rc1
4
+ version: 0.8.0.rc2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bachir
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-18 00:00:00.000000000 Z
11
+ date: 2021-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rufus-scheduler
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.3.15
69
- description:
69
+ description:
70
70
  email:
71
71
  - j@jjb.cc
72
72
  executables:
@@ -83,6 +83,11 @@ files:
83
83
  - Rakefile
84
84
  - bin/console
85
85
  - bin/setup
86
+ - example-app/.gitattributes
87
+ - example-app/Clockfile
88
+ - example-app/Gemfile
89
+ - example-app/Gemfile.lock
90
+ - example-app/README.md
86
91
  - exe/clock
87
92
  - lib/ruby-clock.rb
88
93
  - lib/ruby-clock/version.rb
@@ -94,7 +99,7 @@ licenses:
94
99
  metadata:
95
100
  homepage_uri: https://github.com/jjb/ruby-clock
96
101
  source_code_uri: https://github.com/jjb/ruby-clock
97
- post_install_message:
102
+ post_install_message:
98
103
  rdoc_options: []
99
104
  require_paths:
100
105
  - lib
@@ -109,8 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
114
  - !ruby/object:Gem::Version
110
115
  version: 1.3.1
111
116
  requirements: []
112
- rubygems_version: 3.2.23
113
- signing_key:
117
+ rubygems_version: 3.2.22
118
+ signing_key:
114
119
  specification_version: 4
115
120
  summary: A "clock" process for invoking ruby code within a persistent runtime
116
121
  test_files: []