Skip to content

Commit

Permalink
chore: Rename the main namespace
Browse files Browse the repository at this point in the history
This application will run under the ifs.tools domain, so adjusting the
main namespace accordingly.
  • Loading branch information
goshatch committed Sep 26, 2024
1 parent 8d006a9 commit 5633136
Show file tree
Hide file tree
Showing 23 changed files with 70 additions and 70 deletions.
4 changes: 2 additions & 2 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
(def project-config
"Project configuration to support all tasks"
{:class-directory "target/classes"
:main-namespace 'apossiblespace/parts
:main-namespace 'tools.ifs/parts
:project-basis (build-api/create-basis)
:uberjar-file "target/apossiblespace-parts-standalone.jar"})
:uberjar-file "target/tools-ifs-parts-standalone.jar"})

(defn config
"Display build configuration"
Expand Down
4 changes: 2 additions & 2 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@
{;; ------------
;; Clojure.main execution of application
:run/app
{:main-opts ["-m" "apossiblespace.parts"]}
{:main-opts ["-m" "tools.ifs.parts"]}

;; Clojure.exec execution of specified function
:run/greet
{:exec-fn apossiblespace.parts/greet
{:exec-fn tools.ifs.parts/greet
:exec-args {:name "Clojure"}}
;; ------------

Expand Down
12 changes: 6 additions & 6 deletions dev/user.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
[com.brunobonacci.mulog :as mulog] ; Global context & Tap publisher
[portal]
[portal.api :as inspect] ; Data inspector
[apossiblespace.parts :as parts]
[apossiblespace.parts.config :as config]
[apossiblespace.parts.db :as db]
[apossiblespace.parts.api.auth :as auth]
[apossiblespace.parts.api.account :as account]
[apossiblespace.parts.api.middleware :as middleware]
[tools.ifs.parts :as parts]
[tools.ifs.parts.config :as config]
[tools.ifs.parts.db :as db]
[tools.ifs.parts.api.auth :as auth]
[tools.ifs.parts.api.account :as account]
[tools.ifs.parts.api.middleware :as middleware]
[clojure.tools.namespace.repl :as namespace]))

;; ---------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion shadow-cljs.edn
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
{:target :browser
:output-dir "resources/public/js"
:asset-path "/js"
:modules {:main {:init-fn apossiblespace.parts.core/init}}
:modules {:main {:init-fn tools.ifs.parts.core/init}}
:devtools {:http-root "resources/public"
:http-port 8020}}}
}
14 changes: 7 additions & 7 deletions src/apossiblespace/parts.clj → src/tools/ifs/parts.clj
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
;; ---------------------------------------------------------
;; apossiblespace.parts
;; tools.ifs.parts
;;
;; TODO: Provide a meaningful description of the project
;; ---------------------------------------------------------

(ns apossiblespace.parts
(ns tools.ifs.parts
(:gen-class)
(:require
[com.brunobonacci.mulog :as mulog]
Expand All @@ -15,11 +15,11 @@
[reitit.swagger-ui :as swagger-ui]
[ring.middleware.json :refer [wrap-json-body wrap-json-response]]
[ring.middleware.params :refer [wrap-params]]
[apossiblespace.parts.api.middleware :as middleware]
[apossiblespace.parts.db :as db]
[apossiblespace.parts.pages :as pages]
[apossiblespace.parts.api.auth :as auth]
[apossiblespace.parts.api.account :as account]))
[tools.ifs.parts.api.middleware :as middleware]
[tools.ifs.parts.db :as db]
[tools.ifs.parts.pages :as pages]
[tools.ifs.parts.api.auth :as auth]
[tools.ifs.parts.api.account :as account]))

;; ---------------------------------------------------------
;; Application
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns apossiblespace.parts.api.account
(ns tools.ifs.parts.api.account
(:require
[com.brunobonacci.mulog :as mulog]
[ring.util.response :as response]
[apossiblespace.parts.entity.user :as user]))
[tools.ifs.parts.entity.user :as user]))

(defn get-account
"Retrieve own account info"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns apossiblespace.parts.api.auth
(ns tools.ifs.parts.api.auth
(:require
[apossiblespace.parts.auth :as auth]
[tools.ifs.parts.auth :as auth]
[ring.util.response :as response]
[com.brunobonacci.mulog :as mulog]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(ns apossiblespace.parts.api.middleware
(ns tools.ifs.parts.api.middleware
(:require [reitit.ring.middleware.exception :as exception]
[com.brunobonacci.mulog :as mulog]
[buddy.auth.middleware :refer [wrap-authentication wrap-authorization]]
[buddy.auth :refer [authenticated?]]
[ring.util.response :as response]
[clojure.string :as str]
[apossiblespace.parts.auth :as auth]
[tools.ifs.parts.auth :as auth]
[ring.middleware.defaults :refer [wrap-defaults site-defaults]]
[ring.middleware.resource :refer [wrap-resource]]
[ring.middleware.content-type :refer [wrap-content-type]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(ns apossiblespace.parts.auth
(ns tools.ifs.parts.auth
(:require
[buddy.sign.jwt :as jwt]
[buddy.auth.backends :as backends]
[buddy.hashers :as hashers]
[apossiblespace.parts.db :as db]
[apossiblespace.parts.config :as conf]
[tools.ifs.parts.db :as db]
[tools.ifs.parts.config :as conf]
[com.brunobonacci.mulog :as mulog])
(:import
[java.time Instant]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns apossiblespace.parts.config
(ns tools.ifs.parts.config
(:require
[aero.core :as aero]
[clojure.java.io :as io]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(ns apossiblespace.parts.db
(ns tools.ifs.parts.db
(:require
[next.jdbc :as jdbc]
[next.jdbc.result-set :as rs]
[migratus.core :as migratus]
[honey.sql :as sql]
[com.brunobonacci.mulog :as mulog]
[apossiblespace.parts.config :as conf]
[tools.ifs.parts.config :as conf]
[clojure.string :as str])
(:import
[java.util UUID]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns apossiblespace.parts.entity.user
(ns tools.ifs.parts.entity.user
(:require
[apossiblespace.parts.auth :as auth]
[apossiblespace.parts.db :as db]))
[tools.ifs.parts.auth :as auth]
[tools.ifs.parts.db :as db]))

(def allowed-update-fields #{:email :display_name :password})
(def sensitive-fields #{:password_hash})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns apossiblespace.parts.layouts.main
(ns tools.ifs.parts.layouts.main
(:require [hiccup.page :refer [html5 include-css include-js]]))

(defn layout
Expand All @@ -12,4 +12,4 @@
[:body
[:div#app content]
[:script
"window.addEventListener('load', function () { apossiblespace.parts.core.init(); });"]]))
"window.addEventListener('load', function () { tools.ifs.parts.core.init(); });"]]))
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns apossiblespace.parts.layouts.partials)
(ns tools.ifs.parts.layouts.partials)

(defn header
"Site header"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns apossiblespace.parts.pages
(ns tools.ifs.parts.pages
(:require [hiccup.core :refer [html]]
[apossiblespace.parts.layouts.main :refer [layout]]
[apossiblespace.parts.layouts.partials :refer [header footer]]
[tools.ifs.parts.layouts.main :refer [layout]]
[tools.ifs.parts.layouts.partials :refer [header footer]]
[ring.util.response :as response]))

(defn home-page
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns apossiblespace.helpers.test-factory)
(ns tools.ifs.helpers.test-factory)

(def ^:private counter (atom 0))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns apossiblespace.helpers.test-helpers
(ns tools.ifs.helpers.test-helpers
(:require [next.jdbc :as jdbc]
[migratus.core :as migratus]
[apossiblespace.parts.config :as conf]
[apossiblespace.parts.entity.user :as user]
[apossiblespace.helpers.test-factory :as factory]
[tools.ifs.parts.config :as conf]
[tools.ifs.parts.entity.user :as user]
[tools.ifs.helpers.test-factory :as factory]
[clojure.tools.logging :as log]))

(defn setup-test-db
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns apossiblespace.parts.api.account-test
(ns tools.ifs.parts.api.account-test
(:require [clojure.test :refer [deftest is testing use-fixtures]]
[apossiblespace.helpers.test-helpers :refer [with-test-db register-test-user]]
[apossiblespace.helpers.test-factory :as factory]
[apossiblespace.parts.db :as db]
[apossiblespace.parts.api.account :as account]))
[tools.ifs.helpers.test-helpers :refer [with-test-db register-test-user]]
[tools.ifs.helpers.test-factory :as factory]
[tools.ifs.parts.db :as db]
[tools.ifs.parts.api.account :as account]))

(use-fixtures :once with-test-db)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(ns apossiblespace.parts.api.auth-test
(ns tools.ifs.parts.api.auth-test
(:require [clojure.test :refer [deftest is testing use-fixtures]]
[apossiblespace.parts.auth :as auth-utils]
[apossiblespace.parts.api.auth :as auth]
[apossiblespace.parts.entity.user :as user]
[apossiblespace.parts.api.account :as account]
[tools.ifs.parts.auth :as auth-utils]
[tools.ifs.parts.api.auth :as auth]
[tools.ifs.parts.entity.user :as user]
[tools.ifs.parts.api.account :as account]
[buddy.sign.jwt :as jwt]
[apossiblespace.helpers.test-helpers :refer [with-test-db]]
[apossiblespace.helpers.test-factory :as factory])
[tools.ifs.helpers.test-helpers :refer [with-test-db]]
[tools.ifs.helpers.test-factory :as factory])
(:import [java.time Instant]))

(use-fixtures :once with-test-db)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns apossiblespace.parts.api.middleware-test
(ns tools.ifs.parts.api.middleware-test
(:require [clojure.test :refer :all]
[apossiblespace.parts.api.middleware :as middleware]
[tools.ifs.parts.api.middleware :as middleware]
[com.brunobonacci.mulog :as mulog]
[com.brunobonacci.mulog.buffer :as rb]
[ring.mock.request :as mock]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(ns apossiblespace.parts.auth-test
(ns tools.ifs.parts.auth-test
(:require [clojure.test :refer [deftest is testing use-fixtures]]
[apossiblespace.parts.auth :as auth]
[apossiblespace.parts.entity.user :as user]
[tools.ifs.parts.auth :as auth]
[tools.ifs.parts.entity.user :as user]
[buddy.sign.jwt :as jwt]
[apossiblespace.helpers.test-helpers :refer [with-test-db]]
[apossiblespace.helpers.test-factory :as factory])
[tools.ifs.helpers.test-helpers :refer [with-test-db]]
[tools.ifs.helpers.test-factory :as factory])
(:import [java.time Instant]))

(use-fixtures :once with-test-db)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns apossiblespace.parts.entity.user-test
(ns tools.ifs.parts.entity.user-test
(:require [clojure.test :refer [deftest is testing use-fixtures]]
[apossiblespace.helpers.test-helpers :refer [with-test-db register-test-user]]
[apossiblespace.helpers.test-factory :as factory]
[apossiblespace.parts.entity.user :as user]
[apossiblespace.parts.db :as db]))
[tools.ifs.helpers.test-helpers :refer [with-test-db register-test-user]]
[tools.ifs.helpers.test-factory :as factory]
[tools.ifs.parts.entity.user :as user]
[tools.ifs.parts.db :as db]))

(use-fixtures :once with-test-db)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
;; ---------------------------------------------------------


(ns apossiblespace.parts-test
(ns tools.ifs.parts-test
(:require
[clojure.test :refer [deftest is testing]]
[apossiblespace.parts :as parts]))
[tools.ifs.parts :as parts]))


;; (deftest application-test
Expand Down

0 comments on commit 5633136

Please sign in to comment.