Skip to content

Commit

Permalink
1.9.0-alpha17
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed May 29, 2017
1 parent 4983ebb commit d89d52a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions README.md
Expand Up @@ -2,18 +2,22 @@

A backport of `clojure.spec` for Clojure 1.8.

## Usage
> **NEW!** `clojure-future-spec` is now safe to use from both 1.8 and 1.9+ environments. It’ll add nothing but won’t raise any conflicts either
## Setup

Add this to your project.clj:
For 1.8 projects, add this to your project.clj:

```clj
:dependencies [
[org.clojure/clojure "1.8.0"]
[clojure-future-spec "1.9.0-alpha16-1"]
[clojure-future-spec "1.9.0-alpha17"]
[org.clojure/test.check "0.9.0"] ;; only if you need generators
]
```

## Usage

There’re four main namespaces:

### clojure.spec.alpha
Expand Down Expand Up @@ -48,6 +52,14 @@ Copy of all new functions added to `clojure.core` in Clojure 1.9 (like `boolean?
(require '[clojure.future :refer :all])
```

*NEW!* `clojure.future` will define nothing when evaluated in 1.9+ environment. You can now write libraries that do this:

```clj
(require '[clojure.future :refer all])
```

and it’ll work in both 1.8 and 1.9+ without any conflicts.

## License

Distributed under the Eclipse Public License either version 1.0 or (at
Expand Down
2 changes: 1 addition & 1 deletion project.clj
@@ -1,4 +1,4 @@
(defproject clojure-future-spec "1.9.0-alpha16-1"
(defproject clojure-future-spec "1.9.0-alpha17"
:description "Backport of clojure.spec for Clojure 1.8"
:url "https://github.com/tonsky/clojure-future-spec"
:license {:name "Eclipse Public License"
Expand Down

0 comments on commit d89d52a

Please sign in to comment.