Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use clojure.data.zip rather than contrib

  • Loading branch information...
commit 87f121d978061dc659a2a3f5c4fa3fbbf3dcb1a1 1 parent 60189ad
@wjlroe authored
View
1  .gitignore
@@ -3,3 +3,4 @@ pom.xml
lib
classes
docs
+.lein*
View
11 project.clj
@@ -1,11 +1,10 @@
-(defproject clj-bookmarks "0.1.0"
+(defproject org.clojars.wjlroe/clj-bookmarks "0.1.1-SNAPSHOT"
:description "A client library for for bookmarking services such as
[del.icio.us](http://delicious.com) or [Pinboard](http://pinboard.in).
It provides both annonymous and named access. In the former case the APIs
do not allow as many features as in the latter one."
:dependencies [[org.clojure/clojure "1.2.0"]
- [org.clojure/clojure-contrib "1.2.0"]
- [clj-http "0.1.3"]
- [midje "0.9.0"]]
- :dev-dependencies [[marginalia "0.3.0"]])
-
+ [org.clojure/data.zip "0.1.1"]
+ [clj-http "0.1.3"]]
+ :dev-dependencies [[marginalia "0.3.0"]
+ [lein-midje "2.0.0-SNAPSHOT"]])
View
7 src/clj_bookmarks/delicious.clj
@@ -3,8 +3,8 @@
[Delicious API](http://delicious.com)."
(:use [clj-bookmarks core util])
(:require [clj-http.client :as http]
- [clojure.contrib.zip-filter.xml :as zfx]
- [clojure.contrib.zip-filter :as zf]
+ [clojure.data.zip.xml :as zfx]
+ [clojure.data.zip :as zf]
[clojure.string :as string])
(:import [java.util Date Locale]
[java.text SimpleDateFormat]))
@@ -177,7 +177,7 @@
parse-update))
;; ## The DeliciousV1Service Record
-;;
+;;
;; `DeliciousV1Service` implements the `AuthenticatedBookmarkService`
;; protocol for the Delicious v1 API. Requires authentication
;; (username, password).
@@ -299,4 +299,3 @@
([] nil)
([user passwd] (init-delicious *del-base-api-url* user passwd))
([endpoint user passwd] (DeliciousV1Service. endpoint user passwd)))
-
View
3  src/clj_bookmarks/pinboard.clj
@@ -3,7 +3,7 @@
[Pinboard API](http://pinboard.in/howto/#api)."
(:use [clj-bookmarks core util])
(:require [clj-http.client :as http]
- [clojure.contrib.zip-filter.xml :as zfx]
+ [clojure.data.zip.xml :as zfx]
[clj-bookmarks.delicious :as del]
[clojure.string :as string])
(:import [java.util TimeZone Date]
@@ -121,4 +121,3 @@
Delicious API) is used."
([] (PinboardRSSService.))
([user passwd] (del/init-delicious *pb-base-api-url* user passwd)))
-
View
5 src/clj_bookmarks/util.clj
@@ -3,8 +3,8 @@
(:require [clj-http.client :as http]
[clojure.xml :as xml]
[clojure.zip :as zip]
- [clojure.contrib.zip-filter.xml :as zf]
- [clojure.contrib.zip-filter :as zfilter]
+ [clojure.data.zip.xml :as zf]
+ [clojure.data.zip :as zfilter]
[clojure.string :as string])
(:import [java.util TimeZone Date]
[java.text SimpleDateFormat]
@@ -65,4 +65,3 @@
"Parse a space delimited string of tags into a vector."
[input]
(vec (string/split input #"\s")))
-
Please sign in to comment.
Something went wrong with that request. Please try again.