Skip to content

Commit

Permalink
etaoin.util is not part of public API
Browse files Browse the repository at this point in the history
etaoin.util -> etaoin.impl.util

Addendum to clj-commons#430
  • Loading branch information
lread committed May 25, 2022
1 parent e1b7df6 commit 84e47bd
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ The following namespaces are now considered internal and subject to change:
| `etaoin.proc`
| `etaoin.impl.proc`

| `etaoin.util`
| `etaoin.impl.util`

| `etaoin.xpath`
| `etaoin.impl.xpath`

Expand Down
2 changes: 1 addition & 1 deletion src/etaoin/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
[etaoin.impl.client :as client]
[etaoin.keys :as keys]
[etaoin.query :as query]
[etaoin.util :as util :refer [defmethods]]
[etaoin.impl.util :as util :refer [defmethods]]
[etaoin.impl.driver :as drv]
[etaoin.impl.xpath :as xpath]

Expand Down
2 changes: 1 addition & 1 deletion src/etaoin/ide/impl/api.clj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[clojure.tools.logging :as log]
[etaoin.api :refer :all]
[etaoin.keys :as k]
[etaoin.util :refer [defmethods]]))
[etaoin.impl.util :refer [defmethods]]))


(defn absolute-path?
Expand Down
2 changes: 1 addition & 1 deletion src/etaoin/ide/main.clj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
[clojure.tools.cli :refer [parse-opts]]
[etaoin.api :as api]
[etaoin.ide.flow :as flow]
[etaoin.util :refer [exit]]))
[etaoin.impl.util :refer [exit]]))


(def browsers-set
Expand Down
2 changes: 1 addition & 1 deletion src/etaoin/impl/driver.clj
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
Selenium Python source code for Firefox
https://github.com/SeleniumHQ/selenium/blob/master/py/selenium/webdriver/firefox/options.py
"
(:require [etaoin.util :refer [defmethods deep-merge]]
(:require [etaoin.impl.util :refer [defmethods deep-merge]]
[babashka.fs :as fs]
[clojure.string :as string]
[clojure.tools.logging :as log]))
Expand Down
7 changes: 2 additions & 5 deletions src/etaoin/util.clj → src/etaoin/impl/util.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
(ns etaoin.util
(:require [babashka.fs :as fs])
(:import java.io.File
java.nio.file.attribute.FileAttribute
java.nio.file.Files))
(ns ^:no-doc etaoin.impl.util
(:import java.io.File))

(defn map-or-nil?
[x]
Expand Down
2 changes: 1 addition & 1 deletion src/etaoin/query.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns etaoin.query
"A module to deal with querying elements."
(:require [etaoin.util :as util]
(:require [etaoin.impl.util :as util]
[etaoin.impl.xpath :as xpath]))

;; todo duplicates with api.clj
Expand Down
2 changes: 1 addition & 1 deletion test/etaoin/api_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
[clojure.test :refer :all]
[etaoin.api :refer :all]
[etaoin.test-report :as test-report]
[etaoin.util :refer [with-tmp-file]]
[etaoin.impl.util :refer [with-tmp-file]]
[slingshot.slingshot :refer [try+]]))

(defn numeric? [val]
Expand Down

0 comments on commit 84e47bd

Please sign in to comment.