diff options
-rw-r--r-- | Capfile | 1 | ||||
-rw-r--r-- | Gemfile | 1 | ||||
-rw-r--r-- | Gemfile.lock | 4 | ||||
-rw-r--r-- | config/schedule.rb | 3 |
4 files changed, 9 insertions, 0 deletions
diff --git a/Capfile b/Capfile index 1ace4ce..8915892 100644 --- a/Capfile +++ b/Capfile | |||
@@ -14,6 +14,7 @@ require "capistrano/bundler" | |||
14 | require "capistrano/rails/assets" | 14 | require "capistrano/rails/assets" |
15 | require "capistrano/rails/migrations" | 15 | require "capistrano/rails/migrations" |
16 | require "capistrano/passenger" | 16 | require "capistrano/passenger" |
17 | require "whenever/capistrano" | ||
17 | 18 | ||
18 | # Load custom tasks from `lib/capistrano/tasks` if you have any defined | 19 | # Load custom tasks from `lib/capistrano/tasks` if you have any defined |
19 | Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } | 20 | Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } |
diff --git a/Gemfile b/Gemfile index 0ad3954..e183bdc 100644 --- a/Gemfile +++ b/Gemfile | |||
@@ -90,3 +90,4 @@ gem "enumerize" | |||
90 | gem "sassc-rails" | 90 | gem "sassc-rails" |
91 | gem "jquery-rails" | 91 | gem "jquery-rails" |
92 | gem "rake-compiler" | 92 | gem "rake-compiler" |
93 | gem 'whenever', "~> 1.0.0", require: false | ||
diff --git a/Gemfile.lock b/Gemfile.lock index 0d907ae..4397b84 100644 --- a/Gemfile.lock +++ b/Gemfile.lock | |||
@@ -109,6 +109,7 @@ GEM | |||
109 | rack-test (>= 0.6.3) | 109 | rack-test (>= 0.6.3) |
110 | regexp_parser (>= 1.5, < 3.0) | 110 | regexp_parser (>= 1.5, < 3.0) |
111 | xpath (~> 3.2) | 111 | xpath (~> 3.2) |
112 | chronic (0.10.2) | ||
112 | concurrent-ruby (1.2.2) | 113 | concurrent-ruby (1.2.2) |
113 | connection_pool (2.4.1) | 114 | connection_pool (2.4.1) |
114 | crass (1.0.6) | 115 | crass (1.0.6) |
@@ -277,6 +278,8 @@ GEM | |||
277 | websocket-driver (0.7.6) | 278 | websocket-driver (0.7.6) |
278 | websocket-extensions (>= 0.1.0) | 279 | websocket-extensions (>= 0.1.0) |
279 | websocket-extensions (0.1.5) | 280 | websocket-extensions (0.1.5) |
281 | whenever (1.0.0) | ||
282 | chronic (>= 0.6.3) | ||
280 | xpath (3.2.0) | 283 | xpath (3.2.0) |
281 | nokogiri (~> 1.8) | 284 | nokogiri (~> 1.8) |
282 | zeitwerk (2.6.12) | 285 | zeitwerk (2.6.12) |
@@ -313,6 +316,7 @@ DEPENDENCIES | |||
313 | terser (~> 1.1.19) | 316 | terser (~> 1.1.19) |
314 | tzinfo-data | 317 | tzinfo-data |
315 | web-console | 318 | web-console |
319 | whenever (~> 1.0.0) | ||
316 | 320 | ||
317 | RUBY VERSION | 321 | RUBY VERSION |
318 | ruby 3.2.2p53 | 322 | ruby 3.2.2p53 |
diff --git a/config/schedule.rb b/config/schedule.rb new file mode 100644 index 0000000..987b14a --- /dev/null +++ b/config/schedule.rb | |||
@@ -0,0 +1,3 @@ | |||
1 | every 1.day, at: "12:00am" do | ||
2 | rake "wittle:generate_puzzles" | ||
3 | end | ||