brutalismbot 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brutalismbot/s3.rb +3 -3
- data/lib/brutalismbot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa4749e6ecc0ff20c91810a83f9c05578a2be3b410111d4be611e0f5608d3624
|
4
|
+
data.tar.gz: c2cc5551515bacbd0279e7f2371896459db314db8c5821b58bbcc13c5483d82c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 337ba44ba5a06d3503084b424d4dd66704a6b6bab5885b623415ae2f660468480a25507b42529fbc2d6ab1570ef04c44026f5b871c9f87d4eb3b1967e965bd79
|
7
|
+
data.tar.gz: b5d514c2b8aff025d41ba32ecb151e26091000c957ad44aa7f58c6400c485353d0347a5c5abed53fb294a1a7d4221b482d1ae3f50f774f90878013fedb8aab57
|
data/lib/brutalismbot/s3.rb
CHANGED
@@ -5,9 +5,9 @@ module Brutalismbot
|
|
5
5
|
|
6
6
|
attr_reader :bucket, :prefix
|
7
7
|
|
8
|
-
def initialize(bucket
|
9
|
-
@bucket = bucket
|
10
|
-
@prefix = prefix
|
8
|
+
def initialize(bucket:nil, prefix:nil)
|
9
|
+
@bucket = bucket || ::Aws::S3::Bucket.new(name: ENV["S3_BUCKET"])
|
10
|
+
@prefix = prefix || ENV["S3_PREFIX"]
|
11
11
|
end
|
12
12
|
|
13
13
|
def each
|
data/lib/brutalismbot/version.rb
CHANGED