about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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 0ad3954..e183bdc 100644 --- a/Gemfile +++ b/Gemfile
@@ -90,3 +90,4 @@ gem "enumerize"
90gem "sassc-rails" 90gem "sassc-rails"
91gem "jquery-rails" 91gem "jquery-rails"
92gem "rake-compiler" 92gem "rake-compiler"
93gem '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
317RUBY VERSION 321RUBY 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 @@
1every 1.day, at: "12:00am" do
2 rake "wittle:generate_puzzles"
3end