brutalismbot 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brutalismbot/logger.rb +2 -3
- data/lib/brutalismbot/slack/client.rb +1 -1
- data/lib/brutalismbot/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e39aa32c430b772c7d469e11973d681e3227add829431ef781e3ea4114b0c41
|
4
|
+
data.tar.gz: 571bf24a1a1ce8586ec73d0100480dbd815941a2b94f9144ac795f86e666a2fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bfc543cd6616cad4f86c697dea72394af643bb59bc79a8ef45cb1b80b1bfa19ed20d2a378dbddebe4840c358671fe8c6fa9852b1fa4e123bf3a037861561290
|
7
|
+
data.tar.gz: 6e94536667b21357f81f20fd16f6e859f12542f908bc707f35dc755c22ef9315cd72cc49478e87cd9880d22316fb09b306ad683361f1726c1b1d6db673547f9f
|
data/lib/brutalismbot/logger.rb
CHANGED
@@ -3,12 +3,11 @@ require "logger"
|
|
3
3
|
module Brutalismbot
|
4
4
|
module Logger
|
5
5
|
def logger
|
6
|
-
|
7
|
-
@@logger ||= ::Logger.new(STDOUT, formatter: -> (*x) { "#{x.last}\n" })
|
6
|
+
@logger ||= ::Logger.new($stderr, formatter: -> (*x) { "#{x.last}\n" })
|
8
7
|
end
|
9
8
|
|
10
9
|
def logger=(logger)
|
11
|
-
|
10
|
+
@logger = logger
|
12
11
|
end
|
13
12
|
end
|
14
13
|
|
@@ -45,7 +45,7 @@ module Brutalismbot
|
|
45
45
|
uri = URI.parse(webhook_url)
|
46
46
|
ssl = uri.scheme == "https"
|
47
47
|
req = Net::HTTP::Post.new(uri, "content-type" => "application/json")
|
48
|
-
req.body = { blocks: blocks }.to_json
|
48
|
+
req.body = { text: post.title, blocks: blocks }.to_json
|
49
49
|
Net::HTTP.start(uri.host, uri.port, use_ssl: ssl) do |http|
|
50
50
|
http.request(req)
|
51
51
|
end.tap do |res|
|
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: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexander Mancevice
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: twitter
|
@@ -56,7 +56,7 @@ homepage: https://brutalismbot.com
|
|
56
56
|
licenses:
|
57
57
|
- MIT
|
58
58
|
metadata: {}
|
59
|
-
post_install_message:
|
59
|
+
post_install_message:
|
60
60
|
rdoc_options: []
|
61
61
|
require_paths:
|
62
62
|
- lib
|
@@ -71,8 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.
|
75
|
-
signing_key:
|
74
|
+
rubygems_version: 3.2.3
|
75
|
+
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: Mirror posts from /r/brutalism to Slack
|
78
78
|
test_files: []
|