Skip to content

Commit

Permalink
Bumped search api version and incorporated the Kibits recommendation
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwynne committed Jan 23, 2013
1 parent 0e215a4 commit dd53281
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -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"]]
Expand Down
2 changes: 1 addition & 1 deletion src/twitter/utils.clj
Original file line number Diff line number Diff line change
Expand Up @@ -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)))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down

0 comments on commit dd53281

Please sign in to comment.