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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8bc330d0b778c14b69fbb23bcba9a8f63b7bed6bf05052a2e3e8faab7755958
4
- data.tar.gz: 7acf2142a9262b5d7da2224e2e4de911274ceb979b3d0204c1960402bc69d42b
3
+ metadata.gz: ce9f085814a576e30a317fe675e5b9614b7ea2d5e29115b68dc97fc47b38bad4
4
+ data.tar.gz: 8ab2ba95abc2b1374545b9786c085d2fc9c0800971534e552c116db28a0fd7a0
5
5
  SHA512:
6
- metadata.gz: e03cc73adf7505c48d5613018ecf113f37b2934efe30b4a4331a809925ad4fc57b00d0f775898006188c5d8e615b9e1c636b50e3937ecca61ef2ee261a2e7e1b
7
- data.tar.gz: 7a9ee2a7f17bff75bc64b35926e2ccf0841aacadfc1de04f19e8f5b8c697ec3f89e428757fa3b3751122d374762ffd95796b5474eb153e05ba9f6077cc695c58
6
+ metadata.gz: 0bebef45aa63ee4fd189bfbd8fb36d66f231ffd1b1968d8c7e160ad4b768bc3898491bc0c4eaa5e7ebc344ee4585cd9f1a1c86752c9a164c3d68e6a0315012e8
7
+ data.tar.gz: a1ef9ccedac60beb0092a6cbf417fcd90272e9fdeb4ea836bc4c34dcc8f8ebde080ba61d182adfdb8609bb64680a6ad162f49d8efe641d809010ad40c8042f74
@@ -12,4 +12,4 @@ jobs:
12
12
  runs-on: ubuntu-24.04
13
13
  steps:
14
14
  - uses: actions/checkout@v4
15
- - uses: yegor256/copyrights-action@0.0.8
15
+ - uses: yegor256/copyrights-action@0.0.12
@@ -20,4 +20,4 @@ jobs:
20
20
  runs-on: ubuntu-24.04
21
21
  steps:
22
22
  - uses: actions/checkout@v4
23
- - uses: articulate/actions-markdownlint@v1
23
+ - uses: DavidAnson/markdownlint-cli2-action@v20.0.0
@@ -16,4 +16,4 @@ jobs:
16
16
  runs-on: ubuntu-24.04
17
17
  steps:
18
18
  - uses: actions/checkout@v4
19
- - uses: crate-ci/typos@v1.32.0
19
+ - uses: crate-ci/typos@v1.33.1
data/.rubocop.yml CHANGED
@@ -35,3 +35,4 @@ Metrics/ParameterLists:
35
35
  Max: 10
36
36
  Layout/ParameterAlignment:
37
37
  Enabled: false
38
+ require: []
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', '>0', require: false
14
- gem 'rubocop-performance', '>0', require: false
15
- gem 'rubocop-rake', '>0', require: false
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', '~>2.1', require: false
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.1.9)
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.2)
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.1)
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.0)
47
+ faraday-multipart (1.1.1)
48
48
  multipart-post (~> 2.0)
49
- faraday-net_http (3.4.0)
49
+ faraday-net_http (3.4.1)
50
50
  net-http (>= 0.5.0)
51
- hashdiff (1.1.2)
51
+ hashdiff (1.2.0)
52
52
  ice_nine (0.11.2)
53
- json (2.11.3)
54
- language_server-protocol (3.17.0.4)
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.2.1)
74
+ rake (13.3.0)
75
75
  regexp_parser (2.10.0)
76
76
  rexml (3.4.1)
77
- rubocop (1.75.5)
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.44.0, < 2.0)
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.44.1)
88
+ rubocop-ast (1.46.0)
89
89
  parser (>= 3.3.7.2)
90
90
  prism (~> 1.4)
91
- rubocop-minitest (0.38.0)
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 (2.1.0)
107
+ simplecov-cobertura (3.0.0)
108
108
  rexml
109
109
  simplecov (~> 0.19)
110
- simplecov-html (0.13.1)
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.2)
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 (> 0)
141
- rubocop-performance (> 0)
142
- rubocop-rake (> 0)
140
+ rubocop-minitest (~> 0.38)
141
+ rubocop-performance (~> 1.25)
142
+ rubocop-rake (~> 0.7)
143
143
  simplecov (~> 0.22)
144
- simplecov-cobertura (~> 2.1)
144
+ simplecov-cobertura (~> 3.0)
145
145
  telepost!
146
146
  webmock (~> 3.23)
147
147
  yard (~> 0.9)
data/REUSE.toml CHANGED
@@ -10,6 +10,7 @@ path = [
10
10
  ".pdd",
11
11
  "**.json",
12
12
  "**.md",
13
+ "**.png",
13
14
  "**.svg",
14
15
  "**.txt",
15
16
  "**/.DS_Store",
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: 'Markdown',
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.5.2'
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'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: telepost
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko