Skip to content

Commit

Permalink
rename PARENTS -> PARENT, MODIFIED -> FILE-DIFF.
Browse files Browse the repository at this point in the history
  • Loading branch information
nixeagle committed Jan 30, 2010
1 parent 2b69721 commit 99b678a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
15 changes: 13 additions & 2 deletions github.lisp
Expand Up @@ -155,7 +155,7 @@ slots."))
((languages :reader languages))
(:documentation "List of languages."))

(defclass parents ()
(defclass parent ()
(id)
;; Yes this is a little strange... but this is how github does it, it
;; can be cleaned up later.
Expand All @@ -175,7 +175,7 @@ slots."))
authored-date message tree committer)
(:documentation "Detailed information on a commit."))

(defclass modified ()
(defclass file-diff ()
(diff filename)
(:documentation "Modification information for a commit."))

Expand Down Expand Up @@ -653,4 +653,15 @@ original TITLE and BODY."))
,repository ,issue)
:comment comment)))

(defpackage #:nisp.github-extra
(:use :cl :iterate :nisp.github)
(:export #:show-followers-not-followed))
(in-package :nisp.github-extra)
;;; Extra
(defun show-followers-not-followed (username)
"Show followers that USERNAME is not following."
;; Thanks to scott olson for the idea.
(set-difference (show-followers username) (show-following username)
:test #'equal))

;;; End file
4 changes: 2 additions & 2 deletions json.lisp
Expand Up @@ -11,8 +11,8 @@ ALIST. Hash table is initialized using the HASH-TABLE-INITARGS."

(defparameter +github-class-map+
(alist-hash-table '(("USER" . "USER") ("PLAN" . "PLAN") ("AUTHOR" . "SIMPLE-USER")
("PARENTS" . "PARENTS") ("COMMIT" . "COMMIT")
("MODIFIED" . "MODIFIED") ("COMMITTER" . "SIMPLE-USER")
("PARENTS" . "PARENT") ("COMMIT" . "COMMIT")
("MODIFIED" . "FILE-DIFF") ("COMMITTER" . "SIMPLE-USER")
("DELETE-TOKEN" . "DELETE-TOKEN") ("TREE" . "TREE")
("BLOB" . "BLOB") ("BLOCKS" . "BLOCKS")
("HEADS" . "HEADS") ("COMMITS" . "COMMITS")
Expand Down
5 changes: 1 addition & 4 deletions users.lisp
Expand Up @@ -5,7 +5,4 @@
(:documentation "Person information."))

(defclass simple-user (contact-data) ()
(:documentation "About the simplest user information github will send."))

(defclass committer (simple-user) ())
(defclass author (simple-user) ())
(:documentation "About the simplest user information github will send."))

0 comments on commit 99b678a

Please sign in to comment.