rodbot 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +5 -0
- data/README.md +5 -1
- data/checksums/rodbot-0.4.2.gem.sha512 +1 -0
- data/lib/rodbot/services/schedule.rb +4 -1
- data/lib/rodbot/version.rb +1 -1
- data.tar.gz.sig +4 -1
- metadata +3 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 731572aaf37dd47b3ca8bdd234e9db1dca540f735fc6031af62a8794d45fd470
|
4
|
+
data.tar.gz: e98a94ef370bd0845749b3182df742cf1870059c75b5abd60800c9643c8e3862
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c36906cb429ac14617f8e3a80c28cd83620d4ede1d8b3f307f7e8b3f97915c60e8248aa72b1791f58fd32380473976b3286736b8a09fa321311925676cbe4f83
|
7
|
+
data.tar.gz: ef71720cbd4852cc4198b43002757a73e4fcb15b11b5e64b6893477791c608b2e5cccd77a35db95fd4ab72bd1986fbf8c548e2c9ea5a65fa1f87a913e3402c6a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -211,7 +211,11 @@ The **schedule service** is a [Clockwork process](https://github.com/Rykian/cloc
|
|
211
211
|
|
212
212
|
It's a good idea to have the **app service** do the heavy lifting while the schedule simply fires the corresponding HTTP request.
|
213
213
|
|
214
|
-
A word on time zones since they are particularly important for schedules:
|
214
|
+
A word or two on time zones since they are particularly important for schedules:
|
215
|
+
|
216
|
+
Automatic discovery of the local time zone and DST status is rather unreliable. Therefore, Rodbot expects you to set the time zone in `config/rodbot.rb` using `time_zone`. See `ls /usr/share/zoneinfo` for valid values. To correctly handle DST, you should use geographical zones like `Europe/Paris` rather than technical zones like `CET`. If `time_zone` is not defined, the environment variable `TZ` is read instead. And if `TZ` isn't set neither, Rodbot falls back to `Etc/UTC`.
|
217
|
+
|
218
|
+
Also, make sure the [time zone data is available](https://tzinfo.github.io) where you deploy your bot to. The [official Alpine-based Ruby images](https://hub.docker.com/_/ruby) for instance doesn't come with it preinstalled, so you either have to `RUN apk add --no-cache tzdata` in the Dockerfile or add the [tzinfo-data gem](https://rubygems.org/gems/tzinfo-data) to the bundle for `TZ` to have any effect at all.
|
215
219
|
|
216
220
|
## CLI
|
217
221
|
|
@@ -0,0 +1 @@
|
|
1
|
+
f6c9c9fd62c5b0c22400fc958198c6d34b8d9b01242b8f7d028fe8622c8c2e8ba955fce7071e05ef0ea3a49e1559954856e21113b1a623c0efd7ed884400a4cc
|
@@ -16,7 +16,10 @@ module Rodbot
|
|
16
16
|
|
17
17
|
def run
|
18
18
|
Clockwork.instance_eval do
|
19
|
-
configure
|
19
|
+
configure do |config|
|
20
|
+
config[:tz] = Rodbot.config[:time_zone]
|
21
|
+
config[:logger] = Rodbot::Log.logger('schedule')
|
22
|
+
end
|
20
23
|
handler { Rodbot::Async.perform(&_1) }
|
21
24
|
end
|
22
25
|
Rodbot.plugins.extend_schedule
|
data/lib/rodbot/version.rb
CHANGED
data.tar.gz.sig
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rodbot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sven Schwyn
|
@@ -27,7 +27,7 @@ cert_chain:
|
|
27
27
|
k/QvZU05f6HMYBrPogJgIzHC/C5N/yeE4BVEuBDn+10Zb1iu3aDk8sd0uMgukCY8
|
28
28
|
TUmlP5A6NeGdeDJIoLgromAKs+nvI7TWzhQq9ODs51XhxgUFRCvBqUTpjTQigw==
|
29
29
|
-----END CERTIFICATE-----
|
30
|
-
date: 2023-11-
|
30
|
+
date: 2023-11-24 00:00:00.000000000 Z
|
31
31
|
dependencies:
|
32
32
|
- !ruby/object:Gem::Dependency
|
33
33
|
name: zeitwerk
|
@@ -454,6 +454,7 @@ files:
|
|
454
454
|
- checksums/rodbot-0.3.4.gem.sha512
|
455
455
|
- checksums/rodbot-0.4.0.gem.sha512
|
456
456
|
- checksums/rodbot-0.4.1.gem.sha512
|
457
|
+
- checksums/rodbot-0.4.2.gem.sha512
|
457
458
|
- doc/rodbot.afphoto
|
458
459
|
- doc/rodbot.avif
|
459
460
|
- exe/rodbot
|
metadata.gz.sig
CHANGED
Binary file
|