Skip to content

Commit

Permalink
rewrote using CL-Syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
fukamachi committed Nov 3, 2011
1 parent 7988d14 commit 4971a9c
Show file tree
Hide file tree
Showing 45 changed files with 53 additions and 45 deletions.
3 changes: 2 additions & 1 deletion clack-app-route.asd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
:author "Eitarow Fukamachi" :author "Eitarow Fukamachi"
:license "LLGPL" :license "LLGPL"
:depends-on (:clack :depends-on (:clack
:cl-annot :cl-syntax
:cl-syntax-annot
:cl-ppcre :cl-ppcre
:alexandria) :alexandria)
:components ((:file "src/contrib/app/route")) :components ((:file "src/contrib/app/route"))
Expand Down
3 changes: 2 additions & 1 deletion clack-middleware-clsql.asd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
:author "Eitarow Fukamachi" :author "Eitarow Fukamachi"
:license "LLGPL" :license "LLGPL"
:depends-on (:clack :depends-on (:clack
:cl-annot :cl-syntax
:cl-syntax-annot
:clsql) :clsql)
:components ((:file "src/contrib/middleware/clsql")) :components ((:file "src/contrib/middleware/clsql"))
:description "Middleware for CLSQL connection management") :description "Middleware for CLSQL connection management")
3 changes: 2 additions & 1 deletion clack-middleware-csrf.asd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
:author "Eitarow Fukamachi" :author "Eitarow Fukamachi"
:license "LLGPL" :license "LLGPL"
:depends-on (:clack :depends-on (:clack
:cl-annot :cl-syntax
:cl-syntax-annot
:anaphora) :anaphora)
:components ((:file "src/contrib/middleware/csrf")) :components ((:file "src/contrib/middleware/csrf"))
:description "Middleware for easy CSRF protection" :description "Middleware for easy CSRF protection"
Expand Down
3 changes: 2 additions & 1 deletion clack-middleware-oauth.asd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
:author "Eitarow Fukamachi" :author "Eitarow Fukamachi"
:license "LLGPL" :license "LLGPL"
:depends-on (:clack :depends-on (:clack
:cl-annot :cl-syntax
:cl-syntax-annot
:cl-oauth :cl-oauth
:anaphora :anaphora
:metabang-bind) :metabang-bind)
Expand Down
3 changes: 2 additions & 1 deletion clack-middleware-rucksack.asd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
:author "Eitarow Fukamachi" :author "Eitarow Fukamachi"
:license "LLGPL" :license "LLGPL"
:depends-on (:clack :depends-on (:clack
:cl-annot :cl-syntax
:cl-syntax-annot
:rucksack) :rucksack)
:components ((:file "src/contrib/middleware/rucksack")) :components ((:file "src/contrib/middleware/rucksack"))
:description "Middleware for Rucksack connection management") :description "Middleware for Rucksack connection management")
3 changes: 2 additions & 1 deletion clack.asd
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@
:anaphora :anaphora
:arnesi :arnesi
:split-sequence :split-sequence
:cl-annot :cl-syntax
:cl-syntax-annot
:closer-mop :closer-mop
;; Server ;; Server
:hunchentoot :hunchentoot
Expand Down
4 changes: 3 additions & 1 deletion my-projects
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
# To use clbuild2, just copy this file to your clbuild2 base directory # To use clbuild2, just copy this file to your clbuild2 base directory
# and run following commands. # and run following commands.
# #
# $ clbuild install-from-upstream clack cl-annot cl-test-more # $ clbuild install-from-upstream clack cl-annot cl-syntax cl-test-more
# $ clbuild quickload clack # $ clbuild quickload clack
# #


clack get_git git://github.com/fukamachi/clack.git clack get_git git://github.com/fukamachi/clack.git
cl-annot get_git git://github.com/arielnetworks/cl-annot.git cl-annot get_git git://github.com/arielnetworks/cl-annot.git
cl-syntax get_git git://github.com/m2ym/cl-syntax.git
cl-test-more get_git git://github.com/fukamachi/cl-test-more.git cl-test-more get_git git://github.com/fukamachi/cl-test-more.git


# for developers # for developers
#clack get_git git@github.com:fukamachi/clack.git #clack get_git git@github.com:fukamachi/clack.git
#cl-annot get_git git@github.com:arielnetworks/cl-annot.git #cl-annot get_git git@github.com:arielnetworks/cl-annot.git
#cl-syntax get_git git@github.com:m2ym/cl-syntax.git
#cl-test-more get_git git@github.com:fukamachi/cl-test-more.git #cl-test-more get_git git@github.com:fukamachi/cl-test-more.git
2 changes: 1 addition & 1 deletion src/contrib/app/route.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
:make-url-rule :make-url-rule
:match)) :match))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@eval-always @eval-always
@doc " @doc "
Expand Down
2 changes: 1 addition & 1 deletion src/contrib/middleware/clsql.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:connect :connect
:disconnect)) :disconnect))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-clsql> (<middleware>) (defclass <clack-middleware-clsql> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/contrib/middleware/csrf.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(:import-from :clack.util (:import-from :clack.util
:generate-random-id)) :generate-random-id))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-csrf> (<middleware>) (defclass <clack-middleware-csrf> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/contrib/middleware/oauth.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:clack.request :clack.request
:clack.response)) :clack.response))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-oauth> (<middleware>) (defclass <clack-middleware-oauth> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/contrib/middleware/rucksack.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:with-transaction :with-transaction
:current-rucksack)) :current-rucksack))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-rucksack> (<middleware>) (defclass <clack-middleware-rucksack> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/app/directory.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:directory-pathname-p :directory-pathname-p
:list-directory)) :list-directory))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-app-directory> (<clack-app-file>) ()) (defclass <clack-app-directory> (<clack-app-file>) ())
Expand Down
2 changes: 1 addition & 1 deletion src/core/app/file.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:file-exists-p :file-exists-p
:directory-exists-p)) :directory-exists-p))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-app-file> (<component>) (defclass <clack-app-file> (<component>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/app/urlmap.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:scan-to-strings :scan-to-strings
:regex-replace)) :regex-replace))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-app-urlmap> (<component>) (defclass <clack-app-urlmap> (<component>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/builder.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
(:import-from :clack.middleware.conditional (:import-from :clack.middleware.conditional
:<clack-middleware-conditional>)) :<clack-middleware-conditional>))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defvar *builder-lazy-p* nil (defvar *builder-lazy-p* nil
Expand Down
2 changes: 1 addition & 1 deletion src/core/clack.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
:make-app :make-app
:wrap)) :wrap))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@doc " @doc "
Easy way to run Clack Application. Easy way to run Clack Application.
Expand Down
2 changes: 1 addition & 1 deletion src/core/component.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(clack.util:namespace clack.component (clack.util:namespace clack.component
(:use :cl)) (:use :cl))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <component> () () (defclass <component> () ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/handler.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(:import-from :clack.util (:import-from :clack.util
:find-handler)) :find-handler))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <handler> () (defclass <handler> ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/handler/apache.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(:import-from :clack.util.hunchentoot (:import-from :clack.util.hunchentoot
:url-decode)) :url-decode))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defun run (app &key debug (port 3000)) (defun run (app &key debug (port 3000))
Expand Down
2 changes: 1 addition & 1 deletion src/core/handler/hunchentoot.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
(:import-from :flexi-streams (:import-from :flexi-streams
:make-external-format)) :make-external-format))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


(defun initialize () (defun initialize ()
(setf *hunchentoot-default-external-format* (setf *hunchentoot-default-external-format*
Expand Down
2 changes: 1 addition & 1 deletion src/core/logger.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(:import-from :clack.util.localtime (:import-from :clack.util.localtime
:now)) :now))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defvar *logger-output* (make-string-output-stream) (defvar *logger-output* (make-string-output-stream)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
:<component> :<component>
:call)) :call))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <middleware> (<component>) (defclass <middleware> (<component>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/auth/basic.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
:aand :aand
:it)) :it))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-auth-basic> (<middleware>) (defclass <clack-middleware-auth-basic> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/conditional.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
(:use :cl (:use :cl
:clack)) :clack))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-conditional> (<middleware>) (defclass <clack-middleware-conditional> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/logger/base.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(clack.util:namespace clack.logger.base (clack.util:namespace clack.logger.base
(:use :cl)) (:use :cl))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-logger-base> () () (defclass <clack-logger-base> () ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/logger/file.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:<clack-logger-base> :<clack-logger-base>
:output)) :output))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-logger-file> (<clack-logger-base>) (defclass <clack-logger-file> (<clack-logger-base>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/logger/logger.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
(:import-from :clack.logger.base :output) (:import-from :clack.logger.base :output)
(:import-from :clack.logger.stream :<clack-logger-stream>)) (:import-from :clack.logger.stream :<clack-logger-stream>))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-logger> (<middleware>) (defclass <clack-middleware-logger> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/logger/stream.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
:<clack-logger-base> :<clack-logger-base>
:output)) :output))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-logger-stream> (<clack-logger-base>) (defclass <clack-logger-stream> (<clack-logger-base>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/session/session.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
(:import-from :alexandria :hash-table-plist)) (:import-from :alexandria :hash-table-plist))
#.(rename-package :clack.session.state :clack.session.state '(state)) #.(rename-package :clack.session.state :clack.session.state '(state))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-session> (<middleware>) (defclass <clack-middleware-session> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/session/state.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:sid-generator :sid-generator
:sid-validator)) :sid-validator))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-session-state> () (defclass <clack-session-state> ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/session/state/cookie.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
:extract-id :extract-id
:generate-id)) :generate-id))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-session-state-cookie> (<clack-session-state>) (defclass <clack-session-state-cookie> (<clack-session-state>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/session/store.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
:remove-from-plistf) :remove-from-plistf)
(:import-from :clack.util :getf*)) (:import-from :clack.util :getf*))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-session-store> () (defclass <clack-session-store> ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/middleware/static.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
(:import-from :alexandria (:import-from :alexandria
:starts-with-subseq)) :starts-with-subseq))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <clack-middleware-static> (<middleware>) (defclass <clack-middleware-static> (<middleware>)
Expand Down
2 changes: 1 addition & 1 deletion src/core/request.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
:user-agent :user-agent
:uploads)) :uploads))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <request> () (defclass <request> ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/response.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:universal-to-timestamp) :universal-to-timestamp)
(:export :status)) (:export :status))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defclass <response> () (defclass <response> ()
Expand Down
2 changes: 1 addition & 1 deletion src/core/test.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
(:import-from :clack.util (:import-from :clack.util
:find-handler)) :find-handler))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defvar *clack-test-handler* :hunchentoot (defvar *clack-test-handler* :hunchentoot
Expand Down
2 changes: 1 addition & 1 deletion src/core/test/suite.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
:find-system :find-system
:component-pathname)) :component-pathname))


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defvar *clack-test-access-port* *clack-test-port* (defvar *clack-test-access-port* *clack-test-port*
Expand Down
2 changes: 1 addition & 1 deletion src/util/doc.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:generic-function-lambda-list)) :generic-function-lambda-list))
(in-package :clack.util.doc) (in-package :clack.util.doc)


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
'#.(defvar *section-plist* '#.(defvar *section-plist*
Expand Down
2 changes: 1 addition & 1 deletion src/util/ducktype.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
(:use :cl)) (:use :cl))
(in-package :clack.util.ducktype) (in-package :clack.util.ducktype)


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


(defvar *previous-readtables* nil (defvar *previous-readtables* nil
"Stack of readtables for duck-typing reader.") "Stack of readtables for duck-typing reader.")
Expand Down
2 changes: 1 addition & 1 deletion src/util/hunchentoot.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
:rfc2388)) :rfc2388))
(in-package :clack.util.hunchentoot) (in-package :clack.util.hunchentoot)


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


(defparameter *mime-type-list* '(("application/andrew-inset" "ez") (defparameter *mime-type-list* '(("application/andrew-inset" "ez")
("application/cu-seeme" "cu") ("application/cu-seeme" "cu")
Expand Down
2 changes: 1 addition & 1 deletion src/util/localtime.lisp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
:+gmt-zone+)) :+gmt-zone+))
(in-package :clack.util.localtime) (in-package :clack.util.localtime)


(cl-annot:enable-annot-syntax) (cl-syntax:use-syntax :annot)


@export @export
(defun now () (defun now ()
Expand Down
Loading

0 comments on commit 4971a9c

Please sign in to comment.