From 0929719a845897cc8567cf972e07a69a71f0fa6f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Thu, 30 Nov 2023 13:29:08 -0500 Subject: Migrate to a full rails app --- lib/assets/.keep | 0 lib/keep | 0 lib/tasks/.keep | 0 lib/tasks/wittle_tasks.rake | 8 +++++--- lib/wittle.rb | 6 ------ lib/wittle/engine.rb | 11 ----------- lib/wittle/version.rb | 3 --- 7 files changed, 5 insertions(+), 23 deletions(-) create mode 100644 lib/assets/.keep delete mode 100644 lib/keep create mode 100644 lib/tasks/.keep delete mode 100644 lib/wittle.rb delete mode 100644 lib/wittle/engine.rb delete mode 100644 lib/wittle/version.rb (limited to 'lib') diff --git a/lib/assets/.keep b/lib/assets/.keep new file mode 100644 index 0000000..e69de29 diff --git a/lib/keep b/lib/keep deleted file mode 100644 index e69de29..0000000 diff --git a/lib/tasks/.keep b/lib/tasks/.keep new file mode 100644 index 0000000..e69de29 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 @@ namespace :wittle do desc "Generate new puzzles for the day" task :generate_puzzles => :environment do - Wittle::Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal) - Wittle::Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard) - Wittle::Puzzle.create(data: WittleGenerator.new.generate_expert, category: :expert) + require "wittle_generator" + + Puzzle.create(data: WittleGenerator.new.generate_easy, category: :normal) + Puzzle.create(data: WittleGenerator.new.generate_medium, category: :hard) + Puzzle.create(data: WittleGenerator.new.generate_expert, category: :expert) end 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 @@ -require "wittle/version" -require "wittle/engine" - -module Wittle - # Your code goes here... -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 @@ -require "enumerize" -require "haml" -require "jquery-rails" -require "sassc-rails" -require "wittle_generator" - -module Wittle - class Engine < ::Rails::Engine - isolate_namespace Wittle - end -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 @@ -module Wittle - VERSION = "0.1.0" -end -- cgit 1.4.1