diff --git a/CHANGELOG.md b/CHANGELOG.md index 730a20e..6452696 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # twitter-api changelog +## 0.7.1 +* bumped the search api version to 1.1 (thanks Aaron Steele) +* incorporated some recommendations from Kibit (thanks Seymores) + ## 0.7.0 * BREAKING CHANGE: changed the REST function naming convention to the one described in the readme * updated the tests to reflect the new function names diff --git a/README.md b/README.md index 9c3ac86..32aafa5 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ This is an up-to-date twitter API wrapper that is based on the clojure http.asyn Just add the following to your project.clj file in the _dependencies_ section: ``` -[twitter-api "0.7.0"] +[twitter-api "0.7.1"] ``` ## Usage diff --git a/project.clj b/project.clj index 71d8924..131aa8b 100644 --- a/project.clj +++ b/project.clj @@ -1,4 +1,4 @@ -(defproject twitter-api/twitter-api "0.7.0" +(defproject twitter-api/twitter-api "0.7.1" :description "full twitter interface" :plugins [[lein-clojars "0.7.0"] [lein-swank "1.4.4"]] diff --git a/src/twitter/utils.clj b/src/twitter/utils.clj index d5ceb60..ed7edae 100644 --- a/src/twitter/utils.clj +++ b/src/twitter/utils.clj @@ -40,7 +40,7 @@ (let [dot-pos (.lastIndexOf filename ".") result (.substring filename (inc dot-pos))] - (if (and (>= dot-pos 0) (> (count result) 0)) + (if (and (>= dot-pos 0) (pos? (count result))) result))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;