brutalismbot 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/brutalismbot/posts/client.rb +4 -0
- data/lib/brutalismbot/s3/client.rb +7 -1
- data/lib/brutalismbot/slack/client.rb +4 -0
- data/lib/brutalismbot/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f5f0cc2d8f65ce4d6e52cd68fba606fd17c9bb7467b7897d33f24687a298b50a
|
|
4
|
+
data.tar.gz: a0759a82b139ae7c700eede3a0360d85c521c8d79cd3d97370b8b6597a6b3d02
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1441ac4a1edd40e508838855702555a0b7e45c8281dc46b3890217b9228154bb5c254781c93bf2e7df8e95a4a9920a816be96bd078454d7157c61d5a7774b110
|
|
7
|
+
data.tar.gz: 6d12e3c06bcc3fdaaa5e958002f4c4b2ef82bc8c0f33bd4a85f882003ad35d83b474015138e2370a8d2b54e86caa71f8c4c40a3eb915a37dcbc7077b30ea113b
|
|
@@ -14,8 +14,14 @@ module Brutalismbot
|
|
|
14
14
|
@prefix = prefix
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
def get(key, &block)
|
|
18
|
+
Brutalismbot.logger.info("GET s3://#{@bucket.name}/#{key}")
|
|
19
|
+
object = @bucket.object(key)
|
|
20
|
+
block_given? ? yield(object) : object
|
|
21
|
+
end
|
|
22
|
+
|
|
17
23
|
def list(**options, &block)
|
|
18
|
-
options[:prefix] ||=
|
|
24
|
+
options[:prefix] ||= @prefix
|
|
19
25
|
Brutalismbot.logger.info("LIST s3://#{@bucket.name}/#{options[:prefix]}*")
|
|
20
26
|
Prefix.new(@bucket.objects(options), &block)
|
|
21
27
|
end
|
|
@@ -24,6 +24,10 @@ module Brutalismbot
|
|
|
24
24
|
File.join(@prefix, auth.path)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
def get(key)
|
|
28
|
+
super {|object| Auth.parse(object.get.body.read) }
|
|
29
|
+
end
|
|
30
|
+
|
|
27
31
|
def list(**options)
|
|
28
32
|
super(**options) do |object|
|
|
29
33
|
Brutalismbot.logger.info("GET s3://#{@bucket.name}/#{object.key}")
|
data/lib/brutalismbot/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: brutalismbot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexander Mancevice
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-01-
|
|
11
|
+
date: 2020-01-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: twitter
|