about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-30 14:39:21 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-30 14:39:21 -0400
commit01d74535e0cf0dc66da41afb02ee44c2b920e4c6 (patch)
treeaa9564496dbd1c966877f602f787568308b25906
parente9f3ed0795b1827472337e9bd0b108dec8d7cdea (diff)
downloadthoughts-01d74535e0cf0dc66da41afb02ee44c2b920e4c6.tar.gz
thoughts-01d74535e0cf0dc66da41afb02ee44c2b920e4c6.tar.bz2
thoughts-01d74535e0cf0dc66da41afb02ee44c2b920e4c6.zip
Scheduled daily new Wittle puzzles
-rw-r--r--Capfile1
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock4
-rw-r--r--config/schedule.rb3
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"
14require "capistrano/rails/assets" 14require "capistrano/rails/assets"
15require "capistrano/rails/migrations" 15require "capistrano/rails/migrations"
16require "capistrano/passenger" 16require "capistrano/passenger"
17require "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
19Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } 20Dir.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"
85gem "meta-tags" 85gem "meta-tags"
86gem 'rails_autolink' 86gem 'rails_autolink'
87gem 'wittle', git: "https://git.fourisland.com/wittle", branch: "main" 87gem 'wittle', git: "https://git.fourisland.com/wittle", branch: "main"
88gem '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 @@
1every 1.day, at: "12:00am" do
2 rake "wittle:generate_puzzles"
3end