diff --git a/gems/bess/README.md b/gems/bess/README.md index a666f136..4c51a05c 100644 --- a/gems/bess/README.md +++ b/gems/bess/README.md @@ -4,12 +4,7 @@ configuration into a separate Gem. We call this support library Bess, in honor o Harry Houdini's wife and long-time assistant, Bess Houdini. ## Usage -Everything you can get via `Bess` is accessible via `Houdini` in the main houdini app. - -As an example, let's say Bess has a string constant named `Bess::PRESTO`. From -your Houdini app, you can use `Houdini::PRESTO` to access this constant. - -We recommend using this pattern. +Everything you can get via `Bess` is accessible via the `Houdini` module in the main houdini app. ## Installation This really should only be used in Houdini itself for now. diff --git a/gems/bess/lib/bess.rb b/gems/bess/lib/bess.rb index 1801e049..dc7df7a2 100644 --- a/gems/bess/lib/bess.rb +++ b/gems/bess/lib/bess.rb @@ -1,8 +1,4 @@ # frozen_string_literal: true # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -require "bess/railtie" - -module Bess - # Your code goes here... -end +require_relative './houdini' diff --git a/gems/bess/lib/houdini.rb b/gems/bess/lib/houdini.rb new file mode 100644 index 00000000..c2c8f31f --- /dev/null +++ b/gems/bess/lib/houdini.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +# License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later +require "houdini/railtie" + +module Houdini + # Your code goes here... +end diff --git a/gems/bess/lib/bess/railtie.rb b/gems/bess/lib/houdini/railtie.rb similarity index 91% rename from gems/bess/lib/bess/railtie.rb rename to gems/bess/lib/houdini/railtie.rb index b7af9f62..a8946fe6 100644 --- a/gems/bess/lib/bess/railtie.rb +++ b/gems/bess/lib/houdini/railtie.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later -module Bess +module Houdini class Railtie < ::Rails::Railtie end end diff --git a/gems/bess/lib/tasks/bess_tasks.rake b/gems/bess/lib/tasks/houdini_tasks.rake similarity index 90% rename from gems/bess/lib/tasks/bess_tasks.rake rename to gems/bess/lib/tasks/houdini_tasks.rake index 84c7f62d..595c439a 100644 --- a/gems/bess/lib/tasks/bess_tasks.rake +++ b/gems/bess/lib/tasks/houdini_tasks.rake @@ -2,6 +2,6 @@ # License: AGPL-3.0-or-later WITH Web-Template-Output-Additional-Permission-3.0-or-later # desc "Explaining what the task does" -# task :bess do +# task :houdini do # # Task goes here # end