Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename the namespaces to code/clj/contest/submission-runner #4

Merged
merged 2 commits into from
Apr 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
(:refer-clojure :exclude [test])
(:require [clojure.tools.build.api :as b]))

(def default-lib 'com.github.parenthesin/microservice-boilerplate-malli)
(def default-main 'microservice-boilerplate.server)
(def default-lib 'com.github.clj-codes/codes.clj.contest.submission-runner)
(def default-main 'codes.clj.contest.submission-runner.server)
(def default-version "0.0.1-SNAPSHOT")
(def class-dir "target/classes")

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns microservice-boilerplate.adapters
(:require [microservice-boilerplate.schemas.db :as schemas.db]
[microservice-boilerplate.schemas.types :as schemas.types]
[microservice-boilerplate.schemas.wire-in :as schemas.wire-in]
[microservice-boilerplate.schemas.wire-out :as schemas.wire-out])
(ns codes.clj.contest.submission-runner.adapters
(:require [codes.clj.contest.submission-runner.schemas.db :as schemas.db]
[codes.clj.contest.submission-runner.schemas.types :as schemas.types]
[codes.clj.contest.submission-runner.schemas.wire-in :as schemas.wire-in]
[codes.clj.contest.submission-runner.schemas.wire-out :as schemas.wire-out])
(:import [java.time ZoneId]
[java.time.format DateTimeFormatter]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns microservice-boilerplate.controllers
(:require [microservice-boilerplate.db :as db]
[microservice-boilerplate.logics :as logics]
[microservice-boilerplate.ports.http-out :as http-out]
[microservice-boilerplate.schemas.db :as schemas.db]
[microservice-boilerplate.schemas.types :as schemas.types]))
(ns codes.clj.contest.submission-runner.controllers
(:require [codes.clj.contest.submission-runner.db :as db]
[codes.clj.contest.submission-runner.logics :as logics]
[codes.clj.contest.submission-runner.ports.http-out :as http-out]
[codes.clj.contest.submission-runner.schemas.db :as schemas.db]
[codes.clj.contest.submission-runner.schemas.types :as schemas.types]))

(defn- instant-now [] (java.util.Date/from (java.time.Instant/now)))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns microservice-boilerplate.db
(:require [honey.sql :as sql]
(ns codes.clj.contest.submission-runner.db
(:require [codes.clj.contest.submission-runner.schemas.db :as schemas.db]
[codes.clj.contest.submission-runner.schemas.types :as schemas.types]
[honey.sql :as sql]
[honey.sql.helpers :as sql.helpers]
[microservice-boilerplate.schemas.db :as schemas.db]
[microservice-boilerplate.schemas.types :as schemas.types]
[parenthesin.components.db.jdbc-hikari :as components.database]))

(defn insert-wallet-transaction
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns microservice-boilerplate.logics
(:require [microservice-boilerplate.adapters :as adapters]
[microservice-boilerplate.schemas.db :as schemas.db])
(ns codes.clj.contest.submission-runner.logics
(:require [codes.clj.contest.submission-runner.adapters :as adapters]
[codes.clj.contest.submission-runner.schemas.db :as schemas.db])
(:import [java.util UUID]))

(defn uuid-from-string
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns microservice-boilerplate.ports.http-in
(:require [microservice-boilerplate.adapters :as adapters]
[microservice-boilerplate.controllers :as controllers]))
(ns codes.clj.contest.submission-runner.ports.http-in
(:require [codes.clj.contest.submission-runner.adapters :as adapters]
[codes.clj.contest.submission-runner.controllers :as controllers]))

(defn get-history
[{components :components}]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns microservice-boilerplate.ports.http-out
(:require [microservice-boilerplate.adapters :as adapters.price]
[microservice-boilerplate.schemas.types :as schemas.types]
(ns codes.clj.contest.submission-runner.ports.http-out
(:require [codes.clj.contest.submission-runner.adapters :as adapters.price]
[codes.clj.contest.submission-runner.schemas.types :as schemas.types]
[parenthesin.components.http.clj-http :as components.http]))

(defn get-btc-usd-price
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns microservice-boilerplate.routes
(:require [microservice-boilerplate.ports.http-in :as ports.http-in]
[microservice-boilerplate.schemas.wire-in :as schemas.wire-in]
(ns codes.clj.contest.submission-runner.routes
(:require [codes.clj.contest.submission-runner.ports.http-in :as ports.http-in]
[codes.clj.contest.submission-runner.schemas.wire-in :as schemas.wire-in]
[reitit.swagger :as swagger]))

(def routes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns microservice-boilerplate.schemas.db
(ns codes.clj.contest.submission-runner.schemas.db
(:require [malli.util :as mu]))

(def wallet
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns microservice-boilerplate.schemas.types
(ns codes.clj.contest.submission-runner.schemas.types
(:require [com.stuartsierra.component :as component]
[malli.core :as m]
[malli.experimental.time :as met]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns microservice-boilerplate.schemas.wire-in)
(ns codes.clj.contest.submission-runner.schemas.wire-in)

(def WalletDeposit
[:map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns microservice-boilerplate.schemas.wire-out)
(ns codes.clj.contest.submission-runner.schemas.wire-out)

(def RateFloat
[:map
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns microservice-boilerplate.server
(:require [com.stuartsierra.component :as component]
[microservice-boilerplate.routes :as routes]
(ns codes.clj.contest.submission-runner.server
(:require [codes.clj.contest.submission-runner.routes :as routes]
[com.stuartsierra.component :as component]
[parenthesin.components.config.aero :as config]
[parenthesin.components.db.jdbc-hikari :as database]
[parenthesin.components.http.clj-http :as http]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns integration.microservice-boilerplate.db-test
(ns integration.codes.clj.contest.submission-runner.db-test
(:require [clojure.test :refer [use-fixtures]]
[codes.clj.contest.submission-runner.db :as db]
[com.stuartsierra.component :as component]
[integration.microservice-boilerplate.util :as util]
[microservice-boilerplate.db :as db]
[integration.codes.clj.contest.submission-runner.util :as util]
[parenthesin.components.config.aero :as components.config]
[parenthesin.components.db.jdbc-hikari :as components.database]
[parenthesin.helpers.malli :as helpers.malli]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns integration.microservice-boilerplate.util
(ns integration.codes.clj.contest.submission-runner.util
(:require [com.stuartsierra.component :as component]
[parenthesin.helpers.logs :as logs]
[parenthesin.helpers.migrations :as migrations]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns integration.microservice-boilerplate.wallet-test
(ns integration.codes.clj.contest.submission-runner.wallet-test
(:require [clojure.test :refer [use-fixtures]]
[codes.clj.contest.submission-runner.routes :as routes]
[com.stuartsierra.component :as component]
[integration.microservice-boilerplate.util :as util]
[integration.codes.clj.contest.submission-runner.util :as util]
[matcher-combinators.matchers :as matchers]
[microservice-boilerplate.routes :as routes]
[parenthesin.components.config.aero :as components.config]
[parenthesin.components.db.jdbc-hikari :as components.database]
[parenthesin.components.http.clj-http :as components.http]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
(ns unit.microservice-boilerplate.adapters-test
(ns unit.codes.clj.contest.submission-runner.adapters-test
(:require [clojure.test :refer [deftest is testing use-fixtures]]
[clojure.test.check.clojure-test :refer [defspec]]
[clojure.test.check.properties :as properties]
[codes.clj.contest.submission-runner.adapters :as adapters]
[codes.clj.contest.submission-runner.schemas.db :as schemas.db]
[codes.clj.contest.submission-runner.schemas.wire-in :as schemas.wire-in]
[malli.core :as m]
[malli.generator :as mg]
[matcher-combinators.matchers :as matchers]
[matcher-combinators.test :refer [match?]]
[microservice-boilerplate.adapters :as adapters]
[microservice-boilerplate.schemas.db :as schemas.db]
[microservice-boilerplate.schemas.wire-in :as schemas.wire-in]
[parenthesin.helpers.malli :as helpers.malli]))

(use-fixtures :once helpers.malli/with-intrumentation)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(ns unit.microservice-boilerplate.logics-test
(ns unit.codes.clj.contest.submission-runner.logics-test
(:require [clojure.test :refer [are deftest is testing use-fixtures]]
[clojure.test.check.clojure-test :refer [defspec]]
[clojure.test.check.properties :as properties]
[codes.clj.contest.submission-runner.adapters :as adapters]
[codes.clj.contest.submission-runner.logics :as logics]
[codes.clj.contest.submission-runner.schemas.db :as schemas.db]
[malli.core :as m]
[malli.generator :as mg]
[microservice-boilerplate.adapters :as adapters]
[microservice-boilerplate.logics :as logics]
[microservice-boilerplate.schemas.db :as schemas.db]
[parenthesin.helpers.malli :as helpers.malli]))

(use-fixtures :once helpers.malli/with-intrumentation)
Expand Down