Skip to content

Commit cb71137

Browse files
committed
bump deps
1 parent 0d7b03e commit cb71137

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ a boot task for spewing files into an S3 bucket.
44

55
[](dependency)
66
```clojure
7-
[tailrecursion/boot-bucket "2.1.0"] ;; latest release
7+
[tailrecursion/boot-bucket "2.1.1"] ;; latest release
88
```
99
[](/dependency)
1010

@@ -93,6 +93,7 @@ with [boot-front][1] for deployments:
9393
serve {:port 3001}
9494
sift {:include #{#"index.html.out/" #"<app-ns>/"} :invert true}
9595
spew {:canned-acl :public-read
96+
:region "us-east-1"
9697
:access-key (System/getenv "<AWS_ACCESS_KEY_ENV_VAR>")
9798
:secret-key (System/getenv "<AWS_SECRET_KEY_ENV_VAR>")}
9899
burst {:access-key (System/getenv "<AWS_ACCESS_KEY_ENV_VAR>")
@@ -108,6 +109,7 @@ an `index.html.js` artifact that was compressed upstream by another task like
108109
```clojure
109110
(spew
110111
:canned-acl :public-read
112+
:region "us-east-1"
111113
:access-key "<aws-access-key>"
112114
:secret-key "<aws-secret-key>"
113115
:metadata {"index.html.js" {:content-encoding "gzip"}})

build.boot

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
(require
77
'[adzerk.bootlaces :refer :all])
88

9-
(def +version+ "2.1.0")
9+
(def +version+ "2.1.1")
1010

1111
(bootlaces! +version+)
1212

src/tailrecursion/boot_bucket.clj

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[boot.util :as util]))
77

88
(def ^:private deps
9-
'[[com.amazonaws/aws-java-sdk-s3 "1.11.419"]])
9+
'[[com.amazonaws/aws-java-sdk-s3 "1.11.723"]])
1010

1111
(defn- warn-deps [deps]
1212
(let [conflict (delay (util/warn "Overriding project dependencies, using:\n"))]
@@ -24,7 +24,7 @@
2424

2525
(boot/deftask spew
2626
[b bucket NAME str "AWS Bucket Identifier"
27-
r region REGION str "AWS Region to connect through (the bucket is global)"
27+
r region REGION str "AWS Region."
2828
a access-key ACCESS_KEY str "AWS Access Key"
2929
s secret-key SECRET_KEY str "AWS Secret Key"
3030
c canned-acl ACL kw "A keyword indicating which predefined ACL should be used"
@@ -33,18 +33,18 @@
3333
out (boot/tmp-dir!)
3434
opts (assoc *opts* :region (or region "us-east-1"))]
3535
(boot/with-pre-wrap fileset
36-
(util/info "Spewing files into the %s bucket through region %s...\n" bucket (opts :region))
36+
(util/info "Spewing files into the %s bucket in region %s...\n" bucket (opts :region))
3737
(let [src-files* (boot/output-files fileset)
3838
tgt-digests (pod/with-call-in pod
3939
(tailrecursion.boot-bucket.client/list-digests ~opts))
4040
src-files (remove #(some (fn [[p h]] (and (= (:path %) p) (= (:hash %) h))) tgt-digests) src-files*)
4141
fut-paths (atom [])]
4242
(when (empty? src-files) (util/info "■ no changed files to upload\n"))
4343
(doseq [{:keys [dir path]} src-files]
44-
(->> (tailrecursion.boot-bucket.client/put-file! ~opts ~(.getPath dir) ~path)
44+
(->> (tailrecursion.boot-bucket.client/put-file! ~opts ~(.getPath dir) ~path
4545
(pod/with-call-in pod)
4646
(future)
47-
(swap! fut-paths conj)))
47+
(swap! fut-paths conj))))
4848
(doseq [fut-path @fut-paths]
4949
(util/info "• %s\n" @fut-path))
5050
(boot/add-meta fileset (into {} (mapv #(vector (:path %) {::uploaded true}) src-files)))))))

0 commit comments

Comments
 (0)