rubydium 0.4.7 → 0.4.9
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/.rubocop.yml +2 -2
- data/lib/rubydium/bot.rb +2 -2
- data/lib/rubydium/version.rb +1 -1
- data/rubydium.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e60d3374e73e5b736f438d5f126d2373125ebdd134155af5748db54c5497c7f8
|
4
|
+
data.tar.gz: 7fbc28fe57860338c8c1f0ba449d5cf2f59d3598a5275f9ef29685ca074f83b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d1c16219c8f8ac45b03d06d9cd173a1c82101d1ecfe46897dd02b293956294c12c5f8ac6f34f8f7d95503134f78a6f08db25c82d574711b648e28345f5b9946
|
7
|
+
data.tar.gz: 95999b5817efbd205a1e3854ceadfb2ecb9d0d74833147f216ab102e538981005095cb2824d74bbd2e87edbb6467d99b8db4d628e2259e507517e92dc8a9f30f
|
data/.rubocop.yml
CHANGED
data/lib/rubydium/bot.rb
CHANGED
@@ -11,7 +11,7 @@ module Rubydium
|
|
11
11
|
|
12
12
|
def self.fetch_and_set_bot_id(client)
|
13
13
|
configure do |config|
|
14
|
-
config.bot_id = client.api.get_me
|
14
|
+
config.bot_id = client.api.get_me.id unless config.respond_to? :bot_id
|
15
15
|
end
|
16
16
|
end
|
17
17
|
|
@@ -25,7 +25,7 @@ module Rubydium
|
|
25
25
|
# Not all `update`s here are messages (`listen` yields `Update#current_message`,
|
26
26
|
# which can be `ChatMemberUpdated` etc.)
|
27
27
|
# TODO: rework to allow for clean handling of other types.
|
28
|
-
if update.is_a? Telegram::Bot::Types::
|
28
|
+
if update.is_a?(Telegram::Bot::Types::Message) || update.is_a?(Telegram::Bot::Types::CallbackQuery)
|
29
29
|
new(client, update).handle_update
|
30
30
|
end
|
31
31
|
rescue StandardError => e
|
data/lib/rubydium/version.rb
CHANGED
data/rubydium.gemspec
CHANGED
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
34
34
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
35
35
|
|
36
36
|
{
|
37
|
-
'telegram-bot-ruby' => ['~>
|
37
|
+
'telegram-bot-ruby' => ['~> 2.2'],
|
38
38
|
'async' => ['~> 2.3']
|
39
39
|
}.each do |name, versions|
|
40
40
|
spec.add_dependency(name, *versions)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubydium
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bulgakke
|
@@ -15,14 +15,14 @@ dependencies:
|
|
15
15
|
requirements:
|
16
16
|
- - "~>"
|
17
17
|
- !ruby/object:Gem::Version
|
18
|
-
version:
|
18
|
+
version: '2.2'
|
19
19
|
type: :runtime
|
20
20
|
prerelease: false
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
22
22
|
requirements:
|
23
23
|
- - "~>"
|
24
24
|
- !ruby/object:Gem::Version
|
25
|
-
version:
|
25
|
+
version: '2.2'
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: async
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|