Commit Graph

11 Commits

Author SHA1 Message Date
Martin Brennan c61f8b3c60
DEV: Fix const redefine warnings in javascript.rake (#397)
The consts in javascript.rake were not assigned with ||=
so we would end up with tons of errors like this when running
specs for this plugin:

> warning: already initialized constant TIMEZONES_DEFINITIONS
> warning: previous definition of TIMEZONES_DEFINITIONS was here
2023-03-29 13:50:08 +10:00
David Taylor 3e9ab14bcd
DEV: Introduce syntax_tree for ruby formatting (#363) 2022-12-29 13:30:41 +01:00
Selase Krakani 3e73fee895
FIX: Reintroduce holiday sub-regions removed due to consolidation (#315)
* FIX: Reintroduce holiday sub-regions removed due to consolidation

US holiday definition previously defined with `us, us_az, us_co, us_oh,
us_or, us_sd, us_wy` regions got consolidated down to just `us`. This
removed them from the available holiday regions list resulting in
errors for users with these regions

This change makes the these regions available once again.

* DEV: Sort genereated holiday regions

Noisy diffs get created when genereated regions order changes without
any change in the actual region list.

This change sorts the list before writing to file.
2022-09-01 11:20:28 +00:00
Jarek Radosz b7e0441e77
DEV: Enable js transpilation (#222) 2022-02-10 22:23:38 +01:00
Jarek Radosz fbc617a5fa
DEV: Don't use `URI.open` (#190) 2021-12-02 00:57:52 +01:00
Rafael dos Santos Silva db358d7a8f
FIX: Fix constants task and run update it (#153)
Task was broken due to https://github.com/discourse/discourse/pull/10649
and I had to run it due to https://github.com/discourse/discourse-calendar/pull/152
2021-07-08 14:39:26 -03:00
Alan Guo Xiang Tan 0e3431f111 Hard fork holidays/holidays gem into plugin.
The original gem does not seem to be maintained anymore so we're pulling
this into the plugin so that we can update the definitions easily.
2021-06-07 10:54:52 +08:00
Joffrey JAFFEUX 3fa8f6eb32
DEV: ignores NYSE (new york stock exchange) (#79) 2020-12-06 17:59:53 +01:00
Dan Ungureanu f81dbca358
FIX: Add overrides for non-standard country codes used by holidays gem 2020-06-18 13:35:54 +03:00
Dan Ungureanu eaf27e5b29
DEV: Fix lint 2020-06-18 11:37:00 +03:00
Dan Ungureanu b832232268
FEATURE: Add user preferences field to select region (#44) 2020-06-18 11:29:08 +03:00