telepost 0.5.2 → 0.7.0
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/.github/workflows/copyrights.yml +1 -1
- data/.github/workflows/markdown-lint.yml +1 -1
- data/.github/workflows/typos.yml +1 -1
- data/.rubocop.yml +1 -0
- data/Gemfile +4 -4
- data/Gemfile.lock +20 -20
- data/REUSE.toml +1 -0
- data/lib/telepost.rb +2 -2
- data/telepost.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce9f085814a576e30a317fe675e5b9614b7ea2d5e29115b68dc97fc47b38bad4
|
4
|
+
data.tar.gz: 8ab2ba95abc2b1374545b9786c085d2fc9c0800971534e552c116db28a0fd7a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0bebef45aa63ee4fd189bfbd8fb36d66f231ffd1b1968d8c7e160ad4b768bc3898491bc0c4eaa5e7ebc344ee4585cd9f1a1c86752c9a164c3d68e6a0315012e8
|
7
|
+
data.tar.gz: a1ef9ccedac60beb0092a6cbf417fcd90272e9fdeb4ea836bc4c34dcc8f8ebde080ba61d182adfdb8609bb64680a6ad162f49d8efe641d809010ad40c8042f74
|
data/.github/workflows/typos.yml
CHANGED
data/.rubocop.yml
CHANGED
data/Gemfile
CHANGED
@@ -10,10 +10,10 @@ gem 'minitest', '~>5.25', require: false
|
|
10
10
|
gem 'minitest-reporters', '~>1.7', require: false
|
11
11
|
gem 'rake', '~>13.2', require: false
|
12
12
|
gem 'rubocop', '~>1.71', require: false
|
13
|
-
gem 'rubocop-minitest', '
|
14
|
-
gem 'rubocop-performance', '
|
15
|
-
gem 'rubocop-rake', '
|
13
|
+
gem 'rubocop-minitest', '~>0.38', require: false
|
14
|
+
gem 'rubocop-performance', '~>1.25', require: false
|
15
|
+
gem 'rubocop-rake', '~>0.7', require: false
|
16
16
|
gem 'simplecov', '~>0.22', require: false
|
17
|
-
gem 'simplecov-cobertura', '~>
|
17
|
+
gem 'simplecov-cobertura', '~>3.0', require: false
|
18
18
|
gem 'webmock', '~>3.23', require: false
|
19
19
|
gem 'yard', '~>0.9', require: false
|
data/Gemfile.lock
CHANGED
@@ -11,7 +11,7 @@ GEM
|
|
11
11
|
public_suffix (>= 2.0.2, < 7.0)
|
12
12
|
ansi (1.5.0)
|
13
13
|
ast (2.4.3)
|
14
|
-
bigdecimal (3.
|
14
|
+
bigdecimal (3.2.2)
|
15
15
|
builder (3.3.0)
|
16
16
|
concurrent-ruby (1.3.5)
|
17
17
|
crack (1.0.0)
|
@@ -33,25 +33,25 @@ GEM
|
|
33
33
|
dry-types (~> 1.8, >= 1.8.2)
|
34
34
|
ice_nine (~> 0.11)
|
35
35
|
zeitwerk (~> 2.6)
|
36
|
-
dry-types (1.8.
|
36
|
+
dry-types (1.8.3)
|
37
37
|
bigdecimal (~> 3.0)
|
38
38
|
concurrent-ruby (~> 1.0)
|
39
39
|
dry-core (~> 1.0)
|
40
40
|
dry-inflector (~> 1.0)
|
41
41
|
dry-logic (~> 1.4)
|
42
42
|
zeitwerk (~> 2.6)
|
43
|
-
faraday (2.13.
|
43
|
+
faraday (2.13.2)
|
44
44
|
faraday-net_http (>= 2.0, < 3.5)
|
45
45
|
json
|
46
46
|
logger
|
47
|
-
faraday-multipart (1.1.
|
47
|
+
faraday-multipart (1.1.1)
|
48
48
|
multipart-post (~> 2.0)
|
49
|
-
faraday-net_http (3.4.
|
49
|
+
faraday-net_http (3.4.1)
|
50
50
|
net-http (>= 0.5.0)
|
51
|
-
hashdiff (1.
|
51
|
+
hashdiff (1.2.0)
|
52
52
|
ice_nine (0.11.2)
|
53
|
-
json (2.
|
54
|
-
language_server-protocol (3.17.0.
|
53
|
+
json (2.13.0)
|
54
|
+
language_server-protocol (3.17.0.5)
|
55
55
|
lint_roller (1.1.0)
|
56
56
|
logger (1.7.0)
|
57
57
|
minitest (5.25.5)
|
@@ -71,10 +71,10 @@ GEM
|
|
71
71
|
public_suffix (6.0.2)
|
72
72
|
racc (1.8.1)
|
73
73
|
rainbow (3.1.1)
|
74
|
-
rake (13.
|
74
|
+
rake (13.3.0)
|
75
75
|
regexp_parser (2.10.0)
|
76
76
|
rexml (3.4.1)
|
77
|
-
rubocop (1.
|
77
|
+
rubocop (1.78.0)
|
78
78
|
json (~> 2.3)
|
79
79
|
language_server-protocol (~> 3.17.0.2)
|
80
80
|
lint_roller (~> 1.1.0)
|
@@ -82,13 +82,13 @@ GEM
|
|
82
82
|
parser (>= 3.3.0.2)
|
83
83
|
rainbow (>= 2.2.2, < 4.0)
|
84
84
|
regexp_parser (>= 2.9.3, < 3.0)
|
85
|
-
rubocop-ast (>= 1.
|
85
|
+
rubocop-ast (>= 1.45.1, < 2.0)
|
86
86
|
ruby-progressbar (~> 1.7)
|
87
87
|
unicode-display_width (>= 2.4.0, < 4.0)
|
88
|
-
rubocop-ast (1.
|
88
|
+
rubocop-ast (1.46.0)
|
89
89
|
parser (>= 3.3.7.2)
|
90
90
|
prism (~> 1.4)
|
91
|
-
rubocop-minitest (0.38.
|
91
|
+
rubocop-minitest (0.38.1)
|
92
92
|
lint_roller (~> 1.1)
|
93
93
|
rubocop (>= 1.75.0, < 2.0)
|
94
94
|
rubocop-ast (>= 1.38.0, < 2.0)
|
@@ -104,10 +104,10 @@ GEM
|
|
104
104
|
docile (~> 1.1)
|
105
105
|
simplecov-html (~> 0.11)
|
106
106
|
simplecov_json_formatter (~> 0.1)
|
107
|
-
simplecov-cobertura (
|
107
|
+
simplecov-cobertura (3.0.0)
|
108
108
|
rexml
|
109
109
|
simplecov (~> 0.19)
|
110
|
-
simplecov-html (0.13.
|
110
|
+
simplecov-html (0.13.2)
|
111
111
|
simplecov_json_formatter (0.1.4)
|
112
112
|
telegram-bot-ruby (1.0.0)
|
113
113
|
dry-struct (~> 1.6)
|
@@ -123,7 +123,7 @@ GEM
|
|
123
123
|
crack (>= 0.3.2)
|
124
124
|
hashdiff (>= 0.4.0, < 2.0.0)
|
125
125
|
yard (0.9.37)
|
126
|
-
zeitwerk (2.7.
|
126
|
+
zeitwerk (2.7.3)
|
127
127
|
|
128
128
|
PLATFORMS
|
129
129
|
arm64-darwin-22
|
@@ -137,11 +137,11 @@ DEPENDENCIES
|
|
137
137
|
minitest-reporters (~> 1.7)
|
138
138
|
rake (~> 13.2)
|
139
139
|
rubocop (~> 1.71)
|
140
|
-
rubocop-minitest (
|
141
|
-
rubocop-performance (
|
142
|
-
rubocop-rake (
|
140
|
+
rubocop-minitest (~> 0.38)
|
141
|
+
rubocop-performance (~> 1.25)
|
142
|
+
rubocop-rake (~> 0.7)
|
143
143
|
simplecov (~> 0.22)
|
144
|
-
simplecov-cobertura (~>
|
144
|
+
simplecov-cobertura (~> 3.0)
|
145
145
|
telepost!
|
146
146
|
webmock (~> 3.23)
|
147
147
|
yard (~> 0.9)
|
data/REUSE.toml
CHANGED
data/lib/telepost.rb
CHANGED
@@ -101,10 +101,10 @@ class Telepost
|
|
101
101
|
# @param chat [Integer, String] Chat ID or channel name
|
102
102
|
# @param lines [Array<String>] Message lines to send
|
103
103
|
# @return [Telegram::Bot::Types::Message] The sent message object
|
104
|
-
def post(chat, *lines)
|
104
|
+
def post(chat, *lines, parse_mode: 'Markdown')
|
105
105
|
@bot.api.send_message(
|
106
106
|
chat_id: chat,
|
107
|
-
parse_mode
|
107
|
+
parse_mode:,
|
108
108
|
disable_web_page_preview: true,
|
109
109
|
text: lines.join(' ')
|
110
110
|
)
|
data/telepost.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
10
10
|
s.required_ruby_version = '>=3.2'
|
11
11
|
s.name = 'telepost'
|
12
|
-
s.version = '0.
|
12
|
+
s.version = '0.7.0'
|
13
13
|
s.license = 'MIT'
|
14
14
|
s.summary = 'Simple Telegram posting Ruby gem'
|
15
15
|
s.description = 'Simple Telegram posting Ruby gem'
|