1
1
# url [ ![ Travis CI status] ( https://secure.travis-ci.org/cemerick/url.png )] ( http://travis-ci.org/#!/cemerick/url/builds )
2
2
3
- This is a library that makes working with URLs in Clojure a little more
4
- pleasant.
3
+ This is a library that makes working with URLs in Clojure and ClojureScript a
4
+ little more pleasant.
5
5
6
6
## "Installation"
7
7
@@ -27,7 +27,9 @@ Or, add this to your Maven project's `pom.xml`:
27
27
</dependency >
28
28
```
29
29
30
- url is compatible with Clojure 1.2.0 - 1.5.0.
30
+ Starting with version ` 0.1.0 ` , url requires Clojure >= 1.5.0. It provides the
31
+ same API under ClojureScript (tested with ClojureScript ` 0.0-1835 ` , and should
32
+ work well with any later revision).
31
33
32
34
## Usage
33
35
@@ -36,7 +38,7 @@ The `cemerick.url/url` function returns an instance of the
36
38
datum within the provided URL:
37
39
38
40
``` clojure
39
- => (use '[cemerick.url :only (url url-encode)])
41
+ => (require '[cemerick.url :refer (url url-encode)])
40
42
nil
41
43
=> (-> (url " https://api.stripe.com/v1/charges" )
42
44
(assoc :username " vtUQeOtUnYr7PGCLQ96Ul4zqpDUO4sOE" )
@@ -50,7 +52,7 @@ in the base URL:
50
52
``` clojure
51
53
=> (url " https://api.twitter.com/" )
52
54
#cemerick.url.URL{:protocol " https" , :username nil, :password nil,
53
- :host " api.twitter.com" , :port -1 , :path nil , :query nil,
55
+ :host " api.twitter.com" , :port -1 , :path " / " , :query nil,
54
56
:anchor nil }
55
57
=> (url " https://api.twitter.com/" " 1" " users" " profile_image" " cemerick" )
56
58
#cemerick.url.URL{:protocol " https" , :username nil, :password nil,
0 commit comments