rubydium 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubydium/bot.rb +1 -1
- data/lib/rubydium/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9550a176613e73a419e3b8844028e6c01b1e32440025a387a058e8032ee5ee4
|
4
|
+
data.tar.gz: 963c0a9d0bd7095b7ebe36ebdecb8114c3886ff2a3a2fd8abe1be8894287113b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c91cf1a165ac133b27d5e8a73d04e8cef603f13eb3322876fbae006257fd795054c385fd874c001f520c117291c2255964246a12a4c27b71db3604d66bf6be7
|
7
|
+
data.tar.gz: 74ea953f0de92b66f7346d865d3879c34145ed5f6183f095f2d3b30d97ae658f2130389c2e45277a4abebfa848d7d117ef1b327801bf474537bc686f83918240
|
data/lib/rubydium/bot.rb
CHANGED
@@ -47,7 +47,7 @@ module Rubydium
|
|
47
47
|
@target = @replies_to&.from
|
48
48
|
@text = @msg.text.to_s
|
49
49
|
@message_id = @msg.message_id
|
50
|
-
@command = get_command(@msg.text)
|
50
|
+
@command = get_command(@msg.text || @msg.caption)
|
51
51
|
@text_without_command = @text.gsub(@command.to_s, "").gsub(/@#{config.bot_username}\b/,
|
52
52
|
"").strip
|
53
53
|
@text_without_bot_mentions = @text.gsub(/@#{config.bot_username}\b/, "")
|
data/lib/rubydium/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- bulgakke
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: telegram-bot-ruby
|