rodbot 0.4.1 → 0.4.2

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: cfce379a5c8a1fa2b8ba390b25c5a3db58406aa2442edc9bb4c5b022bfabe40a
4
- data.tar.gz: 4b5ca31f1697ae81d9374b5ab9e0173ea37c391d4cd9e936c7a733b91b14439b
3
+ metadata.gz: 731572aaf37dd47b3ca8bdd234e9db1dca540f735fc6031af62a8794d45fd470
4
+ data.tar.gz: e98a94ef370bd0845749b3182df742cf1870059c75b5abd60800c9643c8e3862
5
5
  SHA512:
6
- metadata.gz: 7d8c5faff81fd9fc2f2552155fe1f29909d444c4b8321bbb8faf4b3889ab363a56991d68de88fc418b9418d3dbc587851cb0bd9134009ad0a9ee8321927ef668
7
- data.tar.gz: b668cbe4c688399f2d4f8bedd355268b4c24d05bfd74dfe50643c3ec93970ebc42c0e87a882135c580587e8badda7f5b9bb0d3a6fe51b478a9e40fa73c0f2124
6
+ metadata.gz: c36906cb429ac14617f8e3a80c28cd83620d4ede1d8b3f307f7e8b3f97915c60e8248aa72b1791f58fd32380473976b3286736b8a09fa321311925676cbe4f83
7
+ data.tar.gz: ef71720cbd4852cc4198b43002757a73e4fcb15b11b5e64b6893477791c608b2e5cccd77a35db95fd4ab72bd1986fbf8c548e2c9ea5a65fa1f87a913e3402c6a
checksums.yaml.gz.sig CHANGED
Binary file
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  Nothing so far
4
4
 
5
+ ## 0.4.2
6
+
7
+ #### Fixes
8
+ * Pass the time zone down to Clockwork
9
+
5
10
  ## 0.4.1
6
11
 
7
12
  #### Fixes
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: 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`.
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 { _1[:logger] = Rodbot::Log.logger('schedule') }
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rodbot
4
- VERSION = "0.4.1"
4
+ VERSION = "0.4.2"
5
5
  end
data.tar.gz.sig CHANGED
@@ -1 +1,4 @@
1
- n�D��J?]T����H`�ƭ���{�H��6h��ߊZ]k&��]�������Y �B]gB׍l7+��NJ׫�F��TvO �M���C�=i��
1
+
2
+ L7��z
3
+ ��*a����M`�+�͙��֧�{�k� ���Z�#J��3��]�E"��p{7�BRܥ�ښ�s�F��u�wT*`8�Z�$;����U�Z}����s�L����e
4
+ ���HXի����l
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.1
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-12 00:00:00.000000000 Z
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