diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/assets/.keep (renamed from lib/keep) | 0 | ||||
-rw-r--r-- | lib/tasks/.keep | 0 | ||||
-rw-r--r-- | lib/tasks/wittle_tasks.rake | 8 | ||||
-rw-r--r-- | lib/wittle.rb | 6 | ||||
-rw-r--r-- | lib/wittle/engine.rb | 11 | ||||
-rw-r--r-- | lib/wittle/version.rb | 3 |
6 files changed, 5 insertions, 23 deletions
diff --git a/lib/keep b/lib/assets/.keep index e69de29..e69de29 100644 --- a/lib/keep +++ b/lib/assets/.keep | |||
diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lib/tasks/.keep | |||
diff --git a/lib/tasks/wittle_tasks.rake b/lib/tasks/wittle_tasks.rake index b9300c7..1be45e2 100644 --- a/lib/tasks/wittle_tasks.rake +++ b/lib/tasks/wittle_tasks.rake | |||
@@ -1,8 +1,10 @@ | |||
1 | namespace :wittle do | 1 | namespace :wittle do |
2 | desc "Generate new puzzles for the day" | 2 | desc "Generate new puzzles for the day" |
3 | task :generate_puzzles => :environment do | 3 | task :generate_puzzles => :environment do |
4 | Wittle::Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal) | 4 | require "wittle_generator" |
5 | Wittle::Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard) | 5 | |
6 | Wittle::Puzzle.create(data: WittleGenerator.new.generate_expert, category: :expert) | 6 | Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal) |
7 | Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard) | ||
8 | Puzzle.create(data: WittleGenerator.new.generate_expert, category: :expert) | ||
7 | end | 9 | end |
8 | end | 10 | end |
diff --git a/lib/wittle.rb b/lib/wittle.rb deleted file mode 100644 index 44bfc3f..0000000 --- a/lib/wittle.rb +++ /dev/null | |||
@@ -1,6 +0,0 @@ | |||
1 | require "wittle/version" | ||
2 | require "wittle/engine" | ||
3 | |||
4 | module Wittle | ||
5 | # Your code goes here... | ||
6 | end | ||
diff --git a/lib/wittle/engine.rb b/lib/wittle/engine.rb deleted file mode 100644 index 13b8d2b..0000000 --- a/lib/wittle/engine.rb +++ /dev/null | |||
@@ -1,11 +0,0 @@ | |||
1 | require "enumerize" | ||
2 | require "haml" | ||
3 | require "jquery-rails" | ||
4 | require "sassc-rails" | ||
5 | require "wittle_generator" | ||
6 | |||
7 | module Wittle | ||
8 | class Engine < ::Rails::Engine | ||
9 | isolate_namespace Wittle | ||
10 | end | ||
11 | end | ||
diff --git a/lib/wittle/version.rb b/lib/wittle/version.rb deleted file mode 100644 index a1538e2..0000000 --- a/lib/wittle/version.rb +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | module Wittle | ||
2 | VERSION = "0.1.0" | ||
3 | end | ||