rubydium 0.3.6 → 0.3.8

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
  SHA256:
3
- metadata.gz: 25b7c60f1b5de37d7df492f2bafc20f1cba006a98884345c5d961b45282d6333
4
- data.tar.gz: dddc9b3caa3211391748b4847490f6ab9540b35f710151bd5cbddd92e9ed7bfa
3
+ metadata.gz: 5d4702884e4978975d1cb43d55b5d4dd71f575a25424747d98921bb49d8ec126
4
+ data.tar.gz: c4ac1f41fa0e9355b079d362aec2551da5149f5d681205f15d187546217343f8
5
5
  SHA512:
6
- metadata.gz: 4490a2d8a9392814f15295efb7def77de860f3e1b96a42b181c4682aeea93fbde061bd82067ce1de570ee24ff574b4d8fb4b9622aea9d7fd2c22c95789b1ee17
7
- data.tar.gz: 1b9f21ec1aff8ec3e751c92573417fb050c242718ae907699dc1c7f57461c98c0758bb918bccadbb84a73abf080d83ade11e2dccb02f687326165e2b902e3fa5
6
+ metadata.gz: b833da95c7c478177ab7d5155ef08624e6392bb8163b1b0ed0acda7ce57f96e46708af29b72bc80b0501553d6b6033d29bcad039e57b431e835d665062927334
7
+ data.tar.gz: dcbbbe31bd4f6174cb3395836eda880efb381e0bc5312865e35b0cf8cc064b178336577b3a23c2dff997b296506c108c49c2c8923aae46c7492e873e07d2d47c
@@ -10,7 +10,7 @@ module Rubydium
10
10
  (string.length / size.to_f).ceil.times.map { |i| string[i * size, size] }
11
11
  end
12
12
 
13
- def send_message(text, split: false **kwargs)
13
+ def send_message(text, split: false, **kwargs)
14
14
  return send_many_messages(text, **kwargs) if split
15
15
 
16
16
  @api.send_message(
@@ -87,11 +87,11 @@ module Rubydium
87
87
  )
88
88
  end
89
89
 
90
- def reply(text, **args)
90
+ def reply(text, **kwargs)
91
91
  send_message(
92
92
  text,
93
93
  reply_to_message_id: @message_id,
94
- **args
94
+ **kwargs
95
95
  )
96
96
  end
97
97
 
@@ -99,10 +99,11 @@ module Rubydium
99
99
  reply("```\n#{text}```", parse_mode: "Markdown")
100
100
  end
101
101
 
102
- def reply_to_target(text)
102
+ def reply_to_target(text, **kwargs)
103
103
  send_message(
104
+ text,
104
105
  reply_to_message_id: @replies_to.message_id,
105
- text: text
106
+ **kwargs
106
107
  )
107
108
  end
108
109
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubydium
4
- VERSION = "0.3.6"
4
+ VERSION = "0.3.8"
5
5
  end
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.3.6
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - bulgakke
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-24 00:00:00.000000000 Z
11
+ date: 2023-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: telegram-bot-ruby