telegram-bot 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/telegram/bot/updates_controller/translation.rb +4 -4
- data/lib/telegram/bot/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: 7cb3d6a6238c7d07cf8b6f33743dc5bc5a5442b9695f716cd22098b9dae341a6
|
4
|
+
data.tar.gz: 3d0d9ff96175d7e63041d2f76048f158f75fcc19bd059270e479e4034a21db3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d406dace6502e17764530733200f9f1d5a14d496087b35449a086675e1c15cd3cdcc71119e744422338f5367f75fffb82abc793dcc17f08c30b76565d487fd52
|
7
|
+
data.tar.gz: 97e4323e43fee40885628fadeb179edeff9d3d73da12e8803dfbf2ce36e2ec5ac94b7499da14721e4cedee44ca38dc9d1d36a5cf21b2c4918bb8f48230e2a794
|
data/CHANGELOG.md
CHANGED
@@ -12,15 +12,15 @@ module Telegram
|
|
12
12
|
|
13
13
|
module ClassMethods
|
14
14
|
# Class-level helper for lazy translations.
|
15
|
-
def translate(key, options
|
15
|
+
def translate(key, **options)
|
16
16
|
key = "#{controller_path.tr('/', '.')}#{key}" if key.to_s.start_with?('.')
|
17
|
-
I18n.translate(key, options)
|
17
|
+
I18n.translate(key, **options)
|
18
18
|
end
|
19
19
|
alias :t :translate
|
20
20
|
end
|
21
21
|
|
22
22
|
# See toplevel description.
|
23
|
-
def translate(key, options
|
23
|
+
def translate(key, **options)
|
24
24
|
if key.to_s.start_with?('.')
|
25
25
|
path = controller_path.tr('/', '.')
|
26
26
|
defaults = [:"#{path}#{key}"]
|
@@ -28,7 +28,7 @@ module Telegram
|
|
28
28
|
options[:default] = defaults.flatten
|
29
29
|
key = "#{path}.#{action_name_i18n_key}#{key}"
|
30
30
|
end
|
31
|
-
I18n.translate(key, options)
|
31
|
+
I18n.translate(key, **options)
|
32
32
|
end
|
33
33
|
alias :t :translate
|
34
34
|
|
data/lib/telegram/bot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: telegram-bot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Melentiev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|