diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 14:39:21 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-30 14:39:21 -0400 |
commit | 01d74535e0cf0dc66da41afb02ee44c2b920e4c6 (patch) | |
tree | aa9564496dbd1c966877f602f787568308b25906 | |
parent | e9f3ed0795b1827472337e9bd0b108dec8d7cdea (diff) | |
download | thoughts-01d74535e0cf0dc66da41afb02ee44c2b920e4c6.tar.gz thoughts-01d74535e0cf0dc66da41afb02ee44c2b920e4c6.tar.bz2 thoughts-01d74535e0cf0dc66da41afb02ee44c2b920e4c6.zip |
Scheduled daily new Wittle puzzles
-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 88a4899..2aec2a4 100644 --- a/Gemfile +++ b/Gemfile | |||
@@ -85,3 +85,4 @@ gem "image_processing", ">= 1.2" | |||
85 | gem "meta-tags" | 85 | gem "meta-tags" |
86 | gem 'rails_autolink' | 86 | gem 'rails_autolink' |
87 | gem 'wittle', git: "https://git.fourisland.com/wittle", branch: "main" | 87 | gem 'wittle', git: "https://git.fourisland.com/wittle", branch: "main" |
88 | gem 'whenever', "~> 1.0.0", require: false | ||
diff --git a/Gemfile.lock b/Gemfile.lock index 29af576..0e4154a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock | |||
@@ -158,6 +158,7 @@ GEM | |||
158 | rack (>= 1.0.0) | 158 | rack (>= 1.0.0) |
159 | rack-test (>= 0.5.4) | 159 | rack-test (>= 0.5.4) |
160 | xpath (>= 2.0, < 4.0) | 160 | xpath (>= 2.0, < 4.0) |
161 | chronic (0.10.2) | ||
161 | climate_control (0.2.0) | 162 | climate_control (0.2.0) |
162 | coffee-rails (4.2.2) | 163 | coffee-rails (4.2.2) |
163 | coffee-script (>= 2.2.0) | 164 | coffee-script (>= 2.2.0) |
@@ -392,6 +393,8 @@ GEM | |||
392 | websocket-driver (0.7.6) | 393 | websocket-driver (0.7.6) |
393 | websocket-extensions (>= 0.1.0) | 394 | websocket-extensions (>= 0.1.0) |
394 | websocket-extensions (0.1.5) | 395 | websocket-extensions (0.1.5) |
396 | whenever (1.0.0) | ||
397 | chronic (>= 0.6.3) | ||
395 | will_paginate (4.0.0) | 398 | will_paginate (4.0.0) |
396 | xpath (3.2.0) | 399 | xpath (3.2.0) |
397 | nokogiri (~> 1.8) | 400 | nokogiri (~> 1.8) |
@@ -445,6 +448,7 @@ DEPENDENCIES | |||
445 | uglifier (>= 1.3.0) | 448 | uglifier (>= 1.3.0) |
446 | web-console (>= 3.3.0) | 449 | web-console (>= 3.3.0) |
447 | webrick (~> 1.7) | 450 | webrick (~> 1.7) |
451 | whenever (~> 1.0.0) | ||
448 | will_paginate (~> 4.0) | 452 | will_paginate (~> 4.0) |
449 | wittle! | 453 | wittle! |
450 | 454 | ||
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 | ||