telegram-bot 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +8 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile +7 -7
- data/README.md +3 -3
- data/gemfiles/rails_42.gemfile +7 -7
- data/gemfiles/rails_50.gemfile +7 -7
- data/gemfiles/rails_51.gemfile +7 -7
- data/gemfiles/rails_52.gemfile +7 -7
- data/gemfiles/rails_60.gemfile +7 -7
- data/gemfiles/rails_61.gemfile +7 -7
- data/lib/telegram/bot/client_stub.rb +2 -2
- data/lib/telegram/bot/version.rb +1 -1
- data/telegram-bot.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 81fae472dfd6080e48c0b3329cc7b5e8748aa89040162a089480bf0082a72477
|
4
|
+
data.tar.gz: a3620f420bcd83f58a70aa093ca8becf748156a88000f663d5b0ba5a4fb59f77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ccbbc372a75c5861ec8751f912282227e06850ca84d23617ddda126b0ab2eaa592d4f005b976d451c87c80f9bb59d27a13d58e752d6290dc27500d9c4252b97
|
7
|
+
data.tar.gz: 69553e905b7b8c7d31e8006e592ccfc824459c14dcc15f696e94866bd7a20f604dcf52a40622152602f44ec997628646a98fa75f2b766221c7cef2815c5271a1
|
data/.travis.yml
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
os: linux
|
2
|
+
dist: xenial
|
1
3
|
language: ruby
|
2
4
|
cache: bundler
|
3
5
|
rvm:
|
@@ -7,8 +9,13 @@ gemfile:
|
|
7
9
|
- gemfiles/rails_61.gemfile
|
8
10
|
- gemfiles/rails_60.gemfile
|
9
11
|
- gemfiles/rails_52.gemfile
|
10
|
-
|
12
|
+
jobs:
|
11
13
|
include:
|
14
|
+
# ruby 3.x
|
15
|
+
- rvm: 3.0
|
16
|
+
gemfile: gemfiles/rails_61.gemfile
|
17
|
+
- rvm: 3.0
|
18
|
+
gemfile: gemfiles/rails_60.gemfile
|
12
19
|
# old rails
|
13
20
|
- rvm: 2.5
|
14
21
|
gemfile: gemfiles/rails_51.gemfile
|
@@ -19,7 +26,5 @@ matrix:
|
|
19
26
|
# old rubies
|
20
27
|
- rvm: 2.4
|
21
28
|
gemfile: gemfiles/rails_52.gemfile
|
22
|
-
- rvm: 2.3
|
23
|
-
gemfile: gemfiles/rails_52.gemfile
|
24
29
|
notifications:
|
25
30
|
email: false
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
@@ -4,17 +4,17 @@ gemspec
|
|
4
4
|
group :development do
|
5
5
|
gem 'appraisal', '~> 2.2'
|
6
6
|
|
7
|
-
gem 'pry', '~> 0.
|
8
|
-
gem 'pry-byebug', '~> 3.
|
9
|
-
gem 'sdoc', '~> 0.
|
7
|
+
gem 'pry', '~> 0.13.1'
|
8
|
+
gem 'pry-byebug', '~> 3.9.0'
|
9
|
+
gem 'sdoc', '~> 2.0.3'
|
10
10
|
|
11
11
|
gem 'telegram-bot-types', '~> 0.6.2'
|
12
12
|
|
13
|
-
gem 'rspec', '~> 3.
|
14
|
-
gem 'rspec-its', '~> 1.
|
15
|
-
gem 'rspec-rails', '~>
|
13
|
+
gem 'rspec', '~> 3.10.0'
|
14
|
+
gem 'rspec-its', '~> 1.3.0'
|
15
|
+
gem 'rspec-rails', '~> 4.0.2'
|
16
16
|
|
17
17
|
gem 'rubocop', '~> 0.52.1'
|
18
18
|
|
19
|
-
gem 'coveralls', '~> 0.8.
|
19
|
+
gem 'coveralls', '~> 0.8.23', require: false
|
20
20
|
end
|
data/README.md
CHANGED
@@ -131,9 +131,9 @@ bot.send_message(chat_id: chat_id, text: 'Test')
|
|
131
131
|
```
|
132
132
|
|
133
133
|
There is no magic, they just pass params as is and set `path_suffix`.
|
134
|
-
See [
|
135
|
-
|
136
|
-
new API versions.
|
134
|
+
See [list of available methods](https://github.com/telegram-bot-rb/telegram-bot/blob/master/lib/telegram/bot/client/api_methods.txt)
|
135
|
+
fetched from [API docs](https://core.telegram.org/bots/api).
|
136
|
+
Please open PR or issue if it misses methods from new API versions.
|
137
137
|
|
138
138
|
Any API request error will raise `Telegram::Bot::Error` with description in its message.
|
139
139
|
Special `Telegram::Bot::Forbidden` is raised when bot can't post messages to the chat anymore.
|
data/gemfiles/rails_42.gemfile
CHANGED
@@ -7,15 +7,15 @@ gem "railties", "~> 4.2.0"
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem "appraisal", "~> 2.2"
|
10
|
-
gem "pry", "~> 0.
|
11
|
-
gem "pry-byebug", "~> 3.
|
12
|
-
gem "sdoc", "~> 0.
|
10
|
+
gem "pry", "~> 0.13.1"
|
11
|
+
gem "pry-byebug", "~> 3.9.0"
|
12
|
+
gem "sdoc", "~> 2.0.3"
|
13
13
|
gem "telegram-bot-types", "~> 0.6.2"
|
14
|
-
gem "rspec", "~> 3.
|
15
|
-
gem "rspec-its", "~> 1.
|
16
|
-
gem "rspec-rails", "~>
|
14
|
+
gem "rspec", "~> 3.10.0"
|
15
|
+
gem "rspec-its", "~> 1.3.0"
|
16
|
+
gem "rspec-rails", "~> 4.0.2"
|
17
17
|
gem "rubocop", "~> 0.52.1"
|
18
|
-
gem "coveralls", "~> 0.8.
|
18
|
+
gem "coveralls", "~> 0.8.23", require: false
|
19
19
|
end
|
20
20
|
|
21
21
|
gemspec path: "../"
|
data/gemfiles/rails_50.gemfile
CHANGED
@@ -7,15 +7,15 @@ gem "railties", "~> 5.0.0"
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem "appraisal", "~> 2.2"
|
10
|
-
gem "pry", "~> 0.
|
11
|
-
gem "pry-byebug", "~> 3.
|
12
|
-
gem "sdoc", "~> 0.
|
10
|
+
gem "pry", "~> 0.13.1"
|
11
|
+
gem "pry-byebug", "~> 3.9.0"
|
12
|
+
gem "sdoc", "~> 2.0.3"
|
13
13
|
gem "telegram-bot-types", "~> 0.6.2"
|
14
|
-
gem "rspec", "~> 3.
|
15
|
-
gem "rspec-its", "~> 1.
|
16
|
-
gem "rspec-rails", "~>
|
14
|
+
gem "rspec", "~> 3.10.0"
|
15
|
+
gem "rspec-its", "~> 1.3.0"
|
16
|
+
gem "rspec-rails", "~> 4.0.2"
|
17
17
|
gem "rubocop", "~> 0.52.1"
|
18
|
-
gem "coveralls", "~> 0.8.
|
18
|
+
gem "coveralls", "~> 0.8.23", require: false
|
19
19
|
end
|
20
20
|
|
21
21
|
gemspec path: "../"
|
data/gemfiles/rails_51.gemfile
CHANGED
@@ -7,15 +7,15 @@ gem "railties", "~> 5.1.0"
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem "appraisal", "~> 2.2"
|
10
|
-
gem "pry", "~> 0.
|
11
|
-
gem "pry-byebug", "~> 3.
|
12
|
-
gem "sdoc", "~> 0.
|
10
|
+
gem "pry", "~> 0.13.1"
|
11
|
+
gem "pry-byebug", "~> 3.9.0"
|
12
|
+
gem "sdoc", "~> 2.0.3"
|
13
13
|
gem "telegram-bot-types", "~> 0.6.2"
|
14
|
-
gem "rspec", "~> 3.
|
15
|
-
gem "rspec-its", "~> 1.
|
16
|
-
gem "rspec-rails", "~>
|
14
|
+
gem "rspec", "~> 3.10.0"
|
15
|
+
gem "rspec-its", "~> 1.3.0"
|
16
|
+
gem "rspec-rails", "~> 4.0.2"
|
17
17
|
gem "rubocop", "~> 0.52.1"
|
18
|
-
gem "coveralls", "~> 0.8.
|
18
|
+
gem "coveralls", "~> 0.8.23", require: false
|
19
19
|
end
|
20
20
|
|
21
21
|
gemspec path: "../"
|
data/gemfiles/rails_52.gemfile
CHANGED
@@ -7,15 +7,15 @@ gem "railties", "~> 5.2.0"
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem "appraisal", "~> 2.2"
|
10
|
-
gem "pry", "~> 0.
|
11
|
-
gem "pry-byebug", "~> 3.
|
12
|
-
gem "sdoc", "~> 0.
|
10
|
+
gem "pry", "~> 0.13.1"
|
11
|
+
gem "pry-byebug", "~> 3.9.0"
|
12
|
+
gem "sdoc", "~> 2.0.3"
|
13
13
|
gem "telegram-bot-types", "~> 0.6.2"
|
14
|
-
gem "rspec", "~> 3.
|
15
|
-
gem "rspec-its", "~> 1.
|
16
|
-
gem "rspec-rails", "~>
|
14
|
+
gem "rspec", "~> 3.10.0"
|
15
|
+
gem "rspec-its", "~> 1.3.0"
|
16
|
+
gem "rspec-rails", "~> 4.0.2"
|
17
17
|
gem "rubocop", "~> 0.52.1"
|
18
|
-
gem "coveralls", "~> 0.8.
|
18
|
+
gem "coveralls", "~> 0.8.23", require: false
|
19
19
|
end
|
20
20
|
|
21
21
|
gemspec path: "../"
|
data/gemfiles/rails_60.gemfile
CHANGED
@@ -7,15 +7,15 @@ gem "railties", "~> 6.0.0"
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem "appraisal", "~> 2.2"
|
10
|
-
gem "pry", "~> 0.
|
11
|
-
gem "pry-byebug", "~> 3.
|
12
|
-
gem "sdoc", "~> 0.
|
10
|
+
gem "pry", "~> 0.13.1"
|
11
|
+
gem "pry-byebug", "~> 3.9.0"
|
12
|
+
gem "sdoc", "~> 2.0.3"
|
13
13
|
gem "telegram-bot-types", "~> 0.6.2"
|
14
|
-
gem "rspec", "~> 3.
|
15
|
-
gem "rspec-its", "~> 1.
|
16
|
-
gem "rspec-rails", "~>
|
14
|
+
gem "rspec", "~> 3.10.0"
|
15
|
+
gem "rspec-its", "~> 1.3.0"
|
16
|
+
gem "rspec-rails", "~> 4.0.2"
|
17
17
|
gem "rubocop", "~> 0.52.1"
|
18
|
-
gem "coveralls", "~> 0.8.
|
18
|
+
gem "coveralls", "~> 0.8.23", require: false
|
19
19
|
end
|
20
20
|
|
21
21
|
gemspec path: "../"
|
data/gemfiles/rails_61.gemfile
CHANGED
@@ -7,15 +7,15 @@ gem "railties", "~> 6.1.0"
|
|
7
7
|
|
8
8
|
group :development do
|
9
9
|
gem "appraisal", "~> 2.2"
|
10
|
-
gem "pry", "~> 0.
|
11
|
-
gem "pry-byebug", "~> 3.
|
12
|
-
gem "sdoc", "~> 0.
|
10
|
+
gem "pry", "~> 0.13.1"
|
11
|
+
gem "pry-byebug", "~> 3.9.0"
|
12
|
+
gem "sdoc", "~> 2.0.3"
|
13
13
|
gem "telegram-bot-types", "~> 0.6.2"
|
14
|
-
gem "rspec", "~> 3.
|
15
|
-
gem "rspec-its", "~> 1.
|
16
|
-
gem "rspec-rails", "~>
|
14
|
+
gem "rspec", "~> 3.10.0"
|
15
|
+
gem "rspec-its", "~> 1.3.0"
|
16
|
+
gem "rspec-rails", "~> 4.0.2"
|
17
17
|
gem "rubocop", "~> 0.52.1"
|
18
|
-
gem "coveralls", "~> 0.8.
|
18
|
+
gem "coveralls", "~> 0.8.23", require: false
|
19
19
|
end
|
20
20
|
|
21
21
|
gemspec path: "../"
|
@@ -5,11 +5,11 @@ module Telegram
|
|
5
5
|
attr_reader :requests
|
6
6
|
|
7
7
|
module StubbedConstructor
|
8
|
-
def new(*args)
|
8
|
+
def new(*args, **kwargs)
|
9
9
|
if self == ClientStub || !ClientStub.stub_all?
|
10
10
|
super
|
11
11
|
else
|
12
|
-
ClientStub.new(*args)
|
12
|
+
ClientStub.new(*args, **kwargs)
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
data/lib/telegram/bot/version.rb
CHANGED
data/telegram-bot.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
18
|
spec.require_paths = ['lib']
|
19
19
|
|
20
|
-
spec.required_ruby_version = '
|
20
|
+
spec.required_ruby_version = '>= 2.4'
|
21
21
|
|
22
22
|
spec.add_dependency 'actionpack', '>= 4.0', '< 6.2'
|
23
23
|
spec.add_dependency 'activesupport', '>= 4.0', '< 6.2'
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Melentiev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionpack
|
@@ -92,7 +92,7 @@ dependencies:
|
|
92
92
|
- - "~>"
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '13.0'
|
95
|
-
description:
|
95
|
+
description:
|
96
96
|
email:
|
97
97
|
- melentievm@gmail.com
|
98
98
|
executables: []
|
@@ -163,15 +163,15 @@ homepage: https://github.com/telegram-bot-rb/telegram-bot
|
|
163
163
|
licenses:
|
164
164
|
- MIT
|
165
165
|
metadata: {}
|
166
|
-
post_install_message:
|
166
|
+
post_install_message:
|
167
167
|
rdoc_options: []
|
168
168
|
require_paths:
|
169
169
|
- lib
|
170
170
|
required_ruby_version: !ruby/object:Gem::Requirement
|
171
171
|
requirements:
|
172
|
-
- - "
|
172
|
+
- - ">="
|
173
173
|
- !ruby/object:Gem::Version
|
174
|
-
version: '2.
|
174
|
+
version: '2.4'
|
175
175
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - ">="
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
requirements: []
|
181
181
|
rubygems_version: 3.1.4
|
182
|
-
signing_key:
|
182
|
+
signing_key:
|
183
183
|
specification_version: 4
|
184
184
|
summary: Library for building Telegram Bots with Rails integration
|
185
185
|
test_files: []
|