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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e14bb3fedb5cfd683191d7ec1aa24d05531af880e55889752b0b344ef56fe785
4
- data.tar.gz: bd3d5795d5026c738cc7977a15ff7b725fe7a7451174effeecba4c9de7019bbb
3
+ metadata.gz: fa4749e6ecc0ff20c91810a83f9c05578a2be3b410111d4be611e0f5608d3624
4
+ data.tar.gz: c2cc5551515bacbd0279e7f2371896459db314db8c5821b58bbcc13c5483d82c
5
5
  SHA512:
6
- metadata.gz: 67e7c40d478a7e5f3ce89d7bd6bb7f96d10318605db269ad5960d1bfc56eac911d3783d0a292e1dfb15b00fe99544d9ef3f563586b49202180d5b727fcf58515
7
- data.tar.gz: 2b6216569f77784d4937f87f1c8c3b1e8ef47d4030533ff3653896df7e5b95bbf96dec12d2691b0a767a7669c914b6eca48cccd20da331d7ac6e56c60ad85921
6
+ metadata.gz: 337ba44ba5a06d3503084b424d4dd66704a6b6bab5885b623415ae2f660468480a25507b42529fbc2d6ab1570ef04c44026f5b871c9f87d4eb3b1967e965bd79
7
+ data.tar.gz: b5d514c2b8aff025d41ba32ecb151e26091000c957ad44aa7f58c6400c485353d0347a5c5abed53fb294a1a7d4221b482d1ae3f50f774f90878013fedb8aab57
@@ -5,9 +5,9 @@ module Brutalismbot
5
5
 
6
6
  attr_reader :bucket, :prefix
7
7
 
8
- def initialize(bucket:, prefix:nil)
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
@@ -1,3 +1,3 @@
1
1
  module Brutalismbot
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brutalismbot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Mancevice