4 Commits

Author SHA1 Message Date
Thomas
eb28ee2a96 Add deprecated message to with-bucket. 2014-07-10 09:33:00 -07:00
e2f0e718eb Create LICENSE 2014-02-05 12:35:01 -08:00
0f5aedbf22 Mark with-bucket as deprecated. 2013-09-24 17:47:08 -07:00
thintz
8fbc5a540e Release new version the actually increments the version number. 2013-07-19 10:02:50 -07:00
4 changed files with 29 additions and 6 deletions

22
LICENSE Normal file
View File

@@ -0,0 +1,22 @@
Copyright (c) 2011-2013, Thomas Hintz
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View File

@@ -7,4 +7,4 @@
(release "4") (release "4")
(release "5") (release "5")
(release "6") (release "6")
(release "0.8") (release "7")

View File

@@ -111,9 +111,6 @@
(reader-thunk read-string) (reader-thunk read-string)
(content-type "application/x-www-form-urlencoded") (content-type "application/x-www-form-urlencoded")
(content-length 0)) (content-length 0))
;(handle-exceptions
; exn
; ((condition-property-accessor 'client-error 'body) exn)
(with-input-from-request (with-input-from-request
(aws-request bucket path verb no-auth: no-auth content-type: content-type content-length: content-length) (aws-request bucket path verb no-auth: no-auth content-type: content-type content-length: content-length)
body body
@@ -155,12 +152,16 @@
;;; api ;;; api
; broken and deprecated
; next version will have parameterized keywords so this
; won't be necessary
(define-syntax with-bucket (define-syntax with-bucket
(syntax-rules () (syntax-rules ()
((with-bucket bucket (func p1 ...)) ((with-bucket bucket (func p1 ...))
(func bucket p1 ...)) (func bucket p1 ...))
((with-bucket bucket exp body ...) ((with-bucket bucket exp body ...)
(begin (with-bucket bucket exp) (begin (print "I am deprecated.")
(with-bucket bucket exp)
(with-bucket bucket body ...))))) (with-bucket bucket body ...)))))
(define (list-buckets) (define (list-buckets)

View File

@@ -11,5 +11,5 @@
; Files to install for your extension: ; Files to install for your extension:
'("amazon-s3.o" "amazon-s3.so" "amazon-s3.import.so") '("amazon-s3.o" "amazon-s3.so" "amazon-s3.import.so")
; Assoc list with properties for your extension: ; Assoc list with properties for your extension:
'((version 0.8) '((version 7)
(static "amazon-s3.o"))) ;; for static linking (static "amazon-s3.o"))) ;; for static linking