boppers 0.0.6 → 0.0.7

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
  SHA1:
3
- metadata.gz: aacbc6cbb8092024b7e7bf778f6ebfff9f6ee73a
4
- data.tar.gz: a23afe21e2c89027fd6c0a8a49f77ef53f0f5287
3
+ metadata.gz: 2b1c29cc1acc244f2de34249d79c2750558eee94
4
+ data.tar.gz: 2a090b9c2ff1e33bc10f87efb2784051455710d6
5
5
  SHA512:
6
- metadata.gz: ad2567a1c3b0b54ca93d42ea1410e5dc084f6aae3e037e2cff76fe4bd0d62b3d36750e811b7ddbea4d19fbfbfbd1460462b780429c3991be22ea8dda31c24c0c
7
- data.tar.gz: 314e0a18f6ee0817abb788e52542ad2d38b9cb558121cc4676c1927efef80977aa3abd2248748df64ebdcbbbf7213aceea39c7ac3d38a2c3708fb949ba7dec35
6
+ metadata.gz: 4b183e0cc4b2096977869d3039be89ddd319c02e248153ac2e10dcd0947d0314a8ebf99886b500df747be32b3b3e800088694793dc8df8f789bf363b89177741
7
+ data.tar.gz: 3b77cd4321f576482d50b6d48a5ba9d30071888371b4573427489e1747a1c6d269dd2d8621e896b5e605fb27c4852ab95a2744a7045c8e2845379b064201f3a7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- boppers (0.0.6)
4
+ boppers (0.0.7)
5
5
  aitch
6
6
  thor
7
7
 
@@ -13,12 +13,12 @@ module Boppers
13
13
  @subscribe = subscribe
14
14
  end
15
15
 
16
- def call(_subject, message, _options)
16
+ def call(title, message, _options)
17
17
  bot = TelegramBot.new(token: api_token)
18
18
 
19
19
  notification = TelegramBot::OutMessage.new
20
20
  notification.chat = TelegramBot::Channel.new(id: channel_id)
21
- notification.text = message
21
+ notification.text = "#{title}\n\n#{message}"
22
22
  notification.send_with(bot)
23
23
  end
24
24
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Boppers
4
- VERSION = "0.0.6"
4
+ VERSION = "0.0.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boppers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nando Vieira