Skip to content

Commit 2448108

Browse files
authored
Merge pull request #54 from skynet-gh/copy-clj-commons-nses
Copy namespaces into `clj-commons` and update `primitive-math` dependency
2 parents 75d2b39 + 9f91482 commit 2448108

23 files changed

+2168
-7
lines changed

project.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
:username :env/clojars_username
88
:password :env/clojars_password
99
:sign-releases false}]]
10-
:dependencies [[primitive-math "0.1.6"]
10+
:dependencies [[org.clj-commons/primitive-math "1.0.0"]
1111
[manifold "0.1.9"]]
1212
:profiles {:dev {:dependencies [[org.clojure/clojure "1.10.3"]
1313
[org.clojure/test.check "1.1.0"]

src/byte_streams.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
(ns byte-streams
1+
(ns
2+
^{:deprecated true
3+
:doc "DEPRECATED: moved to clj-commons.byte-streams"
4+
:no-doc true
5+
:superseded-by "clj-commons.byte-streams"}
6+
byte-streams
27
(:refer-clojure :exclude [byte-array vector-of])
38
(:require
49
[manifold

src/byte_streams/ByteBufferInputStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import java.io.IOException;
55
import java.nio.ByteBuffer;
66

7+
@Deprecated
78
public class ByteBufferInputStream extends InputStream {
89

910
private ByteBuffer _buf;

src/byte_streams/InputStream.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import java.io.IOException;
44

5+
@Deprecated
56
public class InputStream extends java.io.InputStream {
67

78
public interface Streamable {

src/byte_streams/Utils.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package byte_streams;
22

3+
@Deprecated
34
public class Utils {
45
public static byte[] byteArray(int length) {
56
return new byte[length];

src/byte_streams/char_sequence.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
(ns byte-streams.char-sequence
1+
(ns
2+
^{:deprecated true
3+
:doc "DEPRECATED: moved to clj-commons.byte-streams.char-sequence"
4+
:no-doc true
5+
:superseded-by "clj-commons.byte-streams.char-sequence"}
6+
byte-streams.char-sequence
27
(:refer-clojure :exclude [flush])
38
(:import
49
[java.util.concurrent.locks

src/byte_streams/graph.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
(ns byte-streams.graph
1+
(ns
2+
^{:deprecated true
3+
:doc "DEPRECATED: moved to clj-commons.byte-streams.graph"
4+
:no-doc true
5+
:superseded-by "clj-commons.byte-streams.graph"}
6+
byte-streams.graph
27
(:refer-clojure :exclude [type])
38
(:require
49
[manifold.stream :as s]

src/byte_streams/protocols.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
(ns byte-streams.protocols
1+
(ns
2+
^{:deprecated true
3+
:doc "DEPRECATED: moved to clj-commons.byte-streams.protocols"
4+
:no-doc true
5+
:superseded-by "clj-commons.byte-streams.protocols"}
6+
byte-streams.protocols
27
(:require
38
[byte-streams.utils :refer [defprotocol+]])
49
(:import

src/byte_streams/pushback_stream.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
(ns byte-streams.pushback-stream
1+
(ns
2+
^{:deprecated true
3+
:doc "DEPRECATED: moved to clj-commons.byte-streams.pushback-stream"
4+
:no-doc true
5+
:superseded-by "clj-commons.byte-streams.pushback-stream"}
6+
byte-streams.pushback-stream
27
(:refer-clojure :exclude [take])
38
(:require
49
[primitive-math :as p]

src/byte_streams/utils.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
(ns byte-streams.utils)
1+
(ns
2+
^{:deprecated true
3+
:doc "DEPRECATED: moved to clj-commons.byte-streams.utils"
4+
:no-doc true
5+
:superseded-by "clj-commons.byte-streams.utils"}
6+
byte-streams.utils)
27

38
(defmacro defprotocol+ [name & body]
49
(when-not (resolve name)

0 commit comments

Comments
 (0)