diff options
author | Jordan Bracco <href@random.sh> | 2022-12-17 17:05:25 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | 5b56e3a8665c5e47ac07ed4d82d61b4f510bb838 (patch) | |
tree | 15b9fe7fdaa4e517c798b566af05aa2c46cc9600 | |
parent | Nola rename, cont. pt. 5. Refs T77. Configs. (diff) |
Nola rename, the end. pt 6. Refs T77.
-rw-r--r-- | Admin.md | 4 | ||||
-rw-r--r-- | README.md | 4 | ||||
-rw-r--r-- | lib/lsg_web/templates/layout/app.html.eex | 2 | ||||
-rw-r--r-- | rel/config.exs | 4 | ||||
-rw-r--r-- | test/correction_plugin_test.exs | 4 | ||||
-rw-r--r-- | test/lsg_web/controllers/page_controller_test.exs | 4 | ||||
-rw-r--r-- | test/lsg_web/views/error_view_test.exs | 10 | ||||
-rw-r--r-- | test/lsg_web/views/layout_view_test.exs | 4 | ||||
-rw-r--r-- | test/lsg_web/views/page_view_test.exs | 4 | ||||
-rw-r--r-- | test/support/channel_case.ex | 4 | ||||
-rw-r--r-- | test/support/conn_case.ex | 6 |
11 files changed, 25 insertions, 25 deletions
@@ -1,6 +1,6 @@ -# ircbot admin bot +# nola bot admin -Everything is supposed to be ran inside a remote IEx console: `./bin/lsg remote`. +Everything is supposed to be ran inside a remote IEx console: `./bin/nola remote`. ## Connection management @@ -1,4 +1,4 @@ -# ircbot +# nola Some stupid and badly coded IRC bot. Can be spotted as "bavaria" on irc.random.sh, but is multi-connections and also elsewhere (poor channels). @@ -24,7 +24,7 @@ Ready to run in production? Please [check our deployment guides](http://www.phoe Build a release using `MIX_ENV=prod mix release`. -# bot +# nola ## ideas diff --git a/lib/lsg_web/templates/layout/app.html.eex b/lib/lsg_web/templates/layout/app.html.eex index 956793f..c774369 100644 --- a/lib/lsg_web/templates/layout/app.html.eex +++ b/lib/lsg_web/templates/layout/app.html.eex @@ -10,7 +10,7 @@ </div> <div class="hidden md:block"> <div class="ml-10 flex items-baseline"> - <a href="/" class="px-3 py-2 rounded-md text-sm font-medium text-white bg-gray-900 focus:outline-none focus:text-white focus:bg-gray-700">bot.goulag.org</a> + <a href="/" class="px-3 py-2 rounded-md text-sm font-medium text-white bg-gray-900 focus:outline-none focus:text-white focus:bg-gray-700"><%= Nola.name() %></a> <!--<a href="#" class="ml-4 px-3 py-2 rounded-md text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700">Team</a> <a href="#" class="ml-4 px-3 py-2 rounded-md text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700">Projects</a> <a href="#" class="ml-4 px-3 py-2 rounded-md text-sm font-medium text-gray-300 hover:text-white hover:bg-gray-700 focus:outline-none focus:text-white focus:bg-gray-700">Calendar</a> diff --git a/rel/config.exs b/rel/config.exs index 7aaf6d7..7bfc6a2 100644 --- a/rel/config.exs +++ b/rel/config.exs @@ -44,8 +44,8 @@ end # when running `mix release`, the first release in the file # will be used by default -release :lsg do - set version: current_version(:lsg) +release :nola do + set version: current_version(:nola) set applications: [ :runtime_tools ] diff --git a/test/correction_plugin_test.exs b/test/correction_plugin_test.exs index 6999b9f..b5a7394 100644 --- a/test/correction_plugin_test.exs +++ b/test/correction_plugin_test.exs @@ -1,4 +1,4 @@ -defmodule LSG.IRC.CorrectionPluginTest do +defmodule Nola.IRC.CorrectionPluginTest do use ExUnit.Case test "works" do @@ -6,7 +6,7 @@ defmodule LSG.IRC.CorrectionPluginTest do assert x == "correction: <oof> prout les salopes" end, network: "test", channel: "#test"} hist = %{text: "pouet les salopes", sender: %{nick: "oof"}} - LSG.IRC.CorrectionPlugin.correction(message, %{"test/#test" => [hist]}) + Nola.IRC.CorrectionPlugin.correction(message, %{"test/#test" => [hist]}) end end diff --git a/test/lsg_web/controllers/page_controller_test.exs b/test/lsg_web/controllers/page_controller_test.exs index b7a0299..7550a24 100644 --- a/test/lsg_web/controllers/page_controller_test.exs +++ b/test/lsg_web/controllers/page_controller_test.exs @@ -1,5 +1,5 @@ -defmodule LSGWeb.PageControllerTest do - use LSGWeb.ConnCase +defmodule NolaWeb.PageControllerTest do + use NolaWeb.ConnCase test "GET /", %{conn: conn} do conn = get conn, "/" diff --git a/test/lsg_web/views/error_view_test.exs b/test/lsg_web/views/error_view_test.exs index 2aae44d..b67e3df 100644 --- a/test/lsg_web/views/error_view_test.exs +++ b/test/lsg_web/views/error_view_test.exs @@ -1,21 +1,21 @@ -defmodule LSGWeb.ErrorViewTest do - use LSGWeb.ConnCase, async: true +defmodule NolaWeb.ErrorViewTest do + use NolaWeb.ConnCase, async: true # Bring render/3 and render_to_string/3 for testing custom views import Phoenix.View test "renders 404.html" do - assert render_to_string(LSGWeb.ErrorView, "404.html", []) == + assert render_to_string(NolaWeb.ErrorView, "404.html", []) == "Page not found" end test "render 500.html" do - assert render_to_string(LSGWeb.ErrorView, "500.html", []) == + assert render_to_string(NolaWeb.ErrorView, "500.html", []) == "Internal server error" end test "render any other" do - assert render_to_string(LSGWeb.ErrorView, "505.html", []) == + assert render_to_string(NolaWeb.ErrorView, "505.html", []) == "Internal server error" end end diff --git a/test/lsg_web/views/layout_view_test.exs b/test/lsg_web/views/layout_view_test.exs index 5a904f8..51289f7 100644 --- a/test/lsg_web/views/layout_view_test.exs +++ b/test/lsg_web/views/layout_view_test.exs @@ -1,3 +1,3 @@ -defmodule LSGWeb.LayoutViewTest do - use LSGWeb.ConnCase, async: true +defmodule NolaWeb.LayoutViewTest do + use NolaWeb.ConnCase, async: true end diff --git a/test/lsg_web/views/page_view_test.exs b/test/lsg_web/views/page_view_test.exs index 26fce45..c0674a3 100644 --- a/test/lsg_web/views/page_view_test.exs +++ b/test/lsg_web/views/page_view_test.exs @@ -1,3 +1,3 @@ -defmodule LSGWeb.PageViewTest do - use LSGWeb.ConnCase, async: true +defmodule NolaWeb.PageViewTest do + use NolaWeb.ConnCase, async: true end diff --git a/test/support/channel_case.ex b/test/support/channel_case.ex index dcaa658..4ab8de3 100644 --- a/test/support/channel_case.ex +++ b/test/support/channel_case.ex @@ -1,4 +1,4 @@ -defmodule LSGWeb.ChannelCase do +defmodule NolaWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. @@ -21,7 +21,7 @@ defmodule LSGWeb.ChannelCase do use Phoenix.ChannelTest # The default endpoint for testing - @endpoint LSGWeb.Endpoint + @endpoint NolaWeb.Endpoint end end diff --git a/test/support/conn_case.ex b/test/support/conn_case.ex index 9ed8e53..78a4419 100644 --- a/test/support/conn_case.ex +++ b/test/support/conn_case.ex @@ -1,4 +1,4 @@ -defmodule LSGWeb.ConnCase do +defmodule NolaWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. @@ -19,10 +19,10 @@ defmodule LSGWeb.ConnCase do quote do # Import conveniences for testing with connections use Phoenix.ConnTest - import LSGWeb.Router.Helpers + import NolaWeb.Router.Helpers # The default endpoint for testing - @endpoint LSGWeb.Endpoint + @endpoint NolaWeb.Endpoint end end |