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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0ac652a3cc909a00863a91abc54149ff52417d9ba16ec68fa2d9f6dda2446c32
4
- data.tar.gz: 057b9add58ebea055e13dcafb56c3100686608a053a9907dfc0d53b3373e2c82
3
+ metadata.gz: e60d3374e73e5b736f438d5f126d2373125ebdd134155af5748db54c5497c7f8
4
+ data.tar.gz: 7fbc28fe57860338c8c1f0ba449d5cf2f59d3598a5275f9ef29685ca074f83b9
5
5
  SHA512:
6
- metadata.gz: e9cbbc7578453a04d75b722446993adc4b07eb3f044d0a6edcf447a721165fe757dfe3cddcf6cc0064d8b1cbdbad51339b6c5b1c9669be8326625ca397961f17
7
- data.tar.gz: c80d576fd58e872bc3fd30031fa5e61149e09fd93b1bfc5b4e00682b0f8b124fc1a056ecfaf315d04b76835c9352ce1aaa92599afd9a4efb1fc8eda8271f6365
6
+ metadata.gz: 4d1c16219c8f8ac45b03d06d9cd173a1c82101d1ecfe46897dd02b293956294c12c5f8ac6f34f8f7d95503134f78a6f08db25c82d574711b648e28345f5b9946
7
+ data.tar.gz: 95999b5817efbd205a1e3854ceadfb2ecb9d0d74833147f216ab102e538981005095cb2824d74bbd2e87edbb6467d99b8db4d628e2259e507517e92dc8a9f30f
data/.rubocop.yml CHANGED
@@ -6,8 +6,8 @@ AllCops:
6
6
  Exclude:
7
7
  - test.rb
8
8
 
9
- FactoryBot/IdSequence:
10
- Enabled: false
9
+ # FactoryBot/IdSequence:
10
+ # Enabled: false
11
11
 
12
12
  Layout/LineLength:
13
13
  Max: 100
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["id"] unless config.respond_to? :bot_id
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::Message
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubydium
4
- VERSION = '0.4.7'
4
+ VERSION = '0.4.9'
5
5
  end
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' => ['~> 1.0.0'],
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.7
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: 1.0.0
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: 1.0.0
25
+ version: '2.2'
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: async
28
28
  requirement: !ruby/object:Gem::Requirement