about summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2023-11-30 13:29:08 -0500
commit0929719a845897cc8567cf972e07a69a71f0fa6f (patch)
tree2b6f69c1d906abb6e0abf8a0f1d51725bc78087d /lib
parent01c1947537e4e23ded0c16812a7cd9d49ad88356 (diff)
downloadwittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.gz
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.tar.bz2
wittle-0929719a845897cc8567cf972e07a69a71f0fa6f.zip
Migrate to a full rails app
Diffstat (limited to 'lib')
-rw-r--r--lib/assets/.keep (renamed from lib/keep)0
-rw-r--r--lib/tasks/.keep0
-rw-r--r--lib/tasks/wittle_tasks.rake8
-rw-r--r--lib/wittle.rb6
-rw-r--r--lib/wittle/engine.rb11
-rw-r--r--lib/wittle/version.rb3
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 @@
1namespace :wittle do 1namespace :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
8end 10end
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 @@
1require "wittle/version"
2require "wittle/engine"
3
4module Wittle
5 # Your code goes here...
6end
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 @@
1require "enumerize"
2require "haml"
3require "jquery-rails"
4require "sassc-rails"
5require "wittle_generator"
6
7module Wittle
8 class Engine < ::Rails::Engine
9 isolate_namespace Wittle
10 end
11end
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 @@
1module Wittle
2 VERSION = "0.1.0"
3end