Skip to content

Commit d94a738

Browse files
committed
update for clojure 1.3 (depends on downstream versions of clj-oauth / clj-apache-http)
1 parent 495969b commit d94a738

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

project.clj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
(defproject clojure-twitter "1.2.5"
1+
(defproject clojure-twitter "1.2.6-SNAPSHOT"
22
:description "Twitter Client API for Clojure"
3-
:dependencies [[org.clojure/clojure "1.2.0"]
4-
[org.clojure/clojure-contrib "1.2.0"]
5-
[clj-oauth "1.2.10"]
6-
[com.twinql.clojure/clj-apache-http "2.3.1"]]
7-
:dev-dependencies [[swank-clojure "1.2.1"]])
3+
:dependencies [[org.clojure/clojure "1.3.0"]
4+
[org.clojure/data.json "0.1.2"]
5+
[clj-oauth "1.3.1-SNAPSHOT"]
6+
[com.twinql.clojure/clj-apache-http "2.3.2-SNAPSHOT"]])

src/twitter.clj

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(ns twitter
2-
(:use [clojure.contrib.json :only [read-json]]
3-
[clojure.contrib.java-utils :only [as-str]])
2+
(:use [clojure.data.json :only [read-json]])
43
(:require [clojure.set :as set]
54
[clojure.string :as string]
65
[com.twinql.clojure.http :as http]
@@ -13,10 +12,10 @@
1312

1413
(declare status-handler)
1514

16-
(def *oauth-consumer* nil)
17-
(def *oauth-access-token* nil)
18-
(def *oauth-access-token-secret* nil)
19-
(def *protocol* "http")
15+
(def ^:dynamic *oauth-consumer* nil)
16+
(def ^:dynamic *oauth-access-token* nil)
17+
(def ^:dynamic *oauth-access-token-secret* nil)
18+
(def ^:dynamic *protocol* "http")
2019

2120
;; Get JSON from clj-apache-http
2221
(defmethod http/entity-as :json [entity as state]

0 commit comments

Comments
 (0)