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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b7a72ed65ec740aef21cb54256d7f8f9b9e3128a039eb217711ee02c372683bf
4
- data.tar.gz: 75b2ebef6b98ec94b716fe00cb1f657b386e9d9c40d89211b37443c8f0d98fb0
3
+ metadata.gz: 1e39aa32c430b772c7d469e11973d681e3227add829431ef781e3ea4114b0c41
4
+ data.tar.gz: 571bf24a1a1ce8586ec73d0100480dbd815941a2b94f9144ac795f86e666a2fe
5
5
  SHA512:
6
- metadata.gz: 80fb1a88e38e9d1fc5988d7586aebd1859339cf9c3bcd67b08cb7a587f5b0c6c0ab6c13db295f2569c19088637ade5a5e2a28c7ed7064ed57a63e5329a1747b5
7
- data.tar.gz: eca017057b7c3a4d0c2d184ea8a328af49e319d96ac02f42e51977a65a5677e31fedd770a484c960c78e5b1f5bcc1ed834c0239ebc9bd12c7d6f320ea24bbe9b
6
+ metadata.gz: 9bfc543cd6616cad4f86c697dea72394af643bb59bc79a8ef45cb1b80b1bfa19ed20d2a378dbddebe4840c358671fe8c6fa9852b1fa4e123bf3a037861561290
7
+ data.tar.gz: 6e94536667b21357f81f20fd16f6e859f12542f908bc707f35dc755c22ef9315cd72cc49478e87cd9880d22316fb09b306ad683361f1726c1b1d6db673547f9f
@@ -3,12 +3,11 @@ require "logger"
3
3
  module Brutalismbot
4
4
  module Logger
5
5
  def logger
6
- # @@logger ||= ::Logger.new(File::NULL)
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
- @@logger = logger
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|
@@ -1,3 +1,3 @@
1
1
  module Brutalismbot
2
- VERSION = "2.0.0"
2
+ VERSION = "2.1.0"
3
3
  end
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.0.0
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: 2020-10-02 00:00:00.000000000 Z
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.1.2
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: []