Skip to content

Commit

Permalink
Rename repo to cl-github
Browse files Browse the repository at this point in the history
I'm tired of the complaints from "clithub" while its a cute concat of cl
and github, quite a few people can't get past the "meaning" of it to see
that its a full github api.

Regardless the rename was a simple:

: sed -i s/\\bclithub\\b/cl-github/g *

in the repository, so maybe now everyone will be happy and I can quit
hearing stupid complaints about the name.

I'll release a new version to match the name change in a few days.
  • Loading branch information
nixeagle committed Feb 22, 2010
1 parent d0feeea commit de859b3
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
6 changes: 3 additions & 3 deletions README.org
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ comfortable with maintaining.
*** Quick start *** Quick start
Set the default login info in the repl. Doing this means you won't Set the default login info in the repl. Doing this means you won't
have to pass a token and login to each function call. have to pass a token and login to each function call.
: (setq clithub:*default-login* "name" : (setq cl-github:*default-login* "name"
: clithub:*default-token* "apikey") : cl-github:*default-token* "apikey")


Then try a simple call like: Then try a simple call like:
: (clithub:show-followers "your login") : (cl-github:show-followers "your login")


See the documentation strings for information on all of the See the documentation strings for information on all of the
functions. functions.
Expand Down
6 changes: 3 additions & 3 deletions clithub.asd → cl-github.asd
Original file line number Original file line Diff line number Diff line change
@@ -1,11 +1,11 @@
(in-package :cl-user) (in-package :cl-user)
(defpackage #:clithub-system (defpackage #:cl-github-system
(:use :cl :asdf) (:use :cl :asdf)
(:nicknames :nisp.github-system)) (:nicknames :nisp.github-system))
(in-package :clithub-system) (in-package :cl-github-system)




(defsystem :clithub (defsystem :cl-github
:version "0.2.0" :version "0.2.0"
:license "BSD" :license "BSD"
:depends-on (:iterate :drakma :cl-json) :depends-on (:iterate :drakma :cl-json)
Expand Down
8 changes: 4 additions & 4 deletions github.lisp
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package :clithub) (in-package :cl-github)


(defparameter +github-api-url+ "http://github.com/api/v2/json" (defparameter +github-api-url+ "http://github.com/api/v2/json"
;; Use only the json interface, we do not want to implement the xml or ;; Use only the json interface, we do not want to implement the xml or
Expand Down Expand Up @@ -151,10 +151,10 @@ This is the same for every call.")
:want-string t)) :want-string t))




(defpackage #:clithub-extra (defpackage #:cl-github-extra
(:use :cl :iterate :clithub) (:use :cl :iterate :cl-github)
(:export #:show-followers-not-followed)) (:export #:show-followers-not-followed))
(in-package :clithub-extra) (in-package :cl-github-extra)
;;; Extra ;;; Extra
(defun show-followers-not-followed (username) (defun show-followers-not-followed (username)
"Show followers that USERNAME is not following." "Show followers that USERNAME is not following."
Expand Down
2 changes: 1 addition & 1 deletion issues.lisp
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package :clithub) (in-package :cl-github)


;;; Issues API ;;; Issues API
(defgeneric search-issues (username repository state term &key login token) (defgeneric search-issues (username repository state term &key login token)
Expand Down
8 changes: 4 additions & 4 deletions json.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
;;; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION ;;; OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
;;; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ;;; WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


(in-package :clithub) (in-package :cl-github)


;;; From Alexandria ;;; From Alexandria
(defun alist-hash-table (alist &rest hash-table-initargs) (defun alist-hash-table (alist &rest hash-table-initargs)
Expand Down Expand Up @@ -203,7 +203,7 @@ Otherwise, create a FLUID-OBJECT with slots interned in


(defgeneric to-json (object) (defgeneric to-json (object)
(:method :around (obj) (:method :around (obj)
(let ((json:*json-symbols-package* :clithub)) (let ((json:*json-symbols-package* :cl-github))
(with-local-class-registry (:inherit nil) (with-local-class-registry (:inherit nil)
(call-next-method))))) (call-next-method)))))
(defmethod to-json ((obj string)) (defmethod to-json ((obj string))
Expand Down Expand Up @@ -250,8 +250,8 @@ Otherwise, create a FLUID-OBJECT with slots interned in
class)) class))


(defmethod json->class :around (object class) (defmethod json->class :around (object class)
"Set package to clithub and use local class registry." "Set package to cl-github and use local class registry."
(let ((json:*json-symbols-package* :clithub)) (let ((json:*json-symbols-package* :cl-github))
(with-local-class-registry (:inherit nil) (with-local-class-registry (:inherit nil)
(call-next-method)))) (call-next-method))))


Expand Down
2 changes: 1 addition & 1 deletion network.lisp
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package :clithub) (in-package :cl-github)


;;; Network API ;;; Network API
(defgeneric show-network-meta (username repository &key login token) (defgeneric show-network-meta (username repository &key login token)
Expand Down
6 changes: 3 additions & 3 deletions package.lisp
Original file line number Original file line Diff line number Diff line change
@@ -1,6 +1,6 @@
(in-package :clithub-system) (in-package :cl-github-system)


(defpackage #:clithub (defpackage #:cl-github
(:use :cl :json :iterate) (:use :cl :json :iterate)
(:nicknames :nisp.github :github) (:nicknames :nisp.github :github)
(:export (:export
Expand Down Expand Up @@ -55,4 +55,4 @@
#:add-comment #:add-comment
)) ))


(in-package :clithub) (in-package :cl-github)
2 changes: 1 addition & 1 deletion repositories.lisp
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package :clithub) (in-package :cl-github)


(defclass repository () (defclass repository ()
(description forks url homepage watchers fork open-issues private name owner)) (description forks url homepage watchers fork open-issues private name owner))
Expand Down
2 changes: 1 addition & 1 deletion url-utils.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
;;; Some modifications have been made by Nixeagle Copyright (c) 2010. ;;; Some modifications have been made by Nixeagle Copyright (c) 2010.
;;; Permission is granted to use under the original license (see above). ;;; Permission is granted to use under the original license (see above).


(in-package :clithub) (in-package :cl-github)


(defmacro upgrade-vector (vector new-type &key converter) (defmacro upgrade-vector (vector new-type &key converter)
"Returns a vector with the same length and the same elements as "Returns a vector with the same length and the same elements as
Expand Down
2 changes: 1 addition & 1 deletion users.lisp
Original file line number Original file line Diff line number Diff line change
@@ -1,4 +1,4 @@
(in-package :clithub) (in-package :cl-github)




(defclass contact-data () (defclass contact-data ()
Expand Down

0 comments on commit de859b3

Please sign in to comment.