about summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/wittle_tasks.rake11
-rw-r--r--lib/wittle/engine.rb2
2 files changed, 9 insertions, 4 deletions
diff --git a/lib/tasks/wittle_tasks.rake b/lib/tasks/wittle_tasks.rake index 854e5c9..debf249 100644 --- a/lib/tasks/wittle_tasks.rake +++ b/lib/tasks/wittle_tasks.rake
@@ -1,4 +1,7 @@
1# desc "Explaining what the task does" 1namespace :wittle do
2# task :wittle do 2 desc "Generate new puzzles for the day"
3# # Task goes here 3 task :generate_puzzles => :environment do
4# end 4 Wittle::Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal)
5 Wittle::Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard)
6 end
7end
diff --git a/lib/wittle/engine.rb b/lib/wittle/engine.rb index 6b4feca..d42ea1a 100644 --- a/lib/wittle/engine.rb +++ b/lib/wittle/engine.rb
@@ -1,5 +1,7 @@
1require "enumerize" 1require "enumerize"
2require "haml" 2require "haml"
3require "jquery-rails"
4require "sassc-rails"
3require "wittle_generator/wittle_generator" 5require "wittle_generator/wittle_generator"
4 6
5module Wittle 7module Wittle