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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 113ad4cfd9374055cf8da30c1628d50929f4142177755fbeae9bff8d96381996
4
- data.tar.gz: b161be1ea1c8509998b1421b86c96db9e8a1b6c10b6630f0bc9eea6adb806310
3
+ metadata.gz: 81fae472dfd6080e48c0b3329cc7b5e8748aa89040162a089480bf0082a72477
4
+ data.tar.gz: a3620f420bcd83f58a70aa093ca8becf748156a88000f663d5b0ba5a4fb59f77
5
5
  SHA512:
6
- metadata.gz: 72d227b63dcdfb7d95fcafbb5fa564688a62433916ddad105b7a0784a65a053ddd379aac943645b1ab592ea02b3023577d15a187cbee3d3216e9227bae027405
7
- data.tar.gz: a7449ef3e57885b7e7aa1be9ce32a2c05907401619727fe4a5acada4ace148d0bb0c7590837c8e62531daa8e1bdd2930b172ca6c566100cab6eedb4df3eac896
6
+ metadata.gz: 0ccbbc372a75c5861ec8751f912282227e06850ca84d23617ddda126b0ab2eaa592d4f005b976d451c87c80f9bb59d27a13d58e752d6290dc27500d9c4252b97
7
+ data.tar.gz: 69553e905b7b8c7d31e8006e592ccfc824459c14dcc15f696e94866bd7a20f604dcf52a40622152602f44ec997628646a98fa75f2b766221c7cef2815c5271a1
@@ -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
- matrix:
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
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.15.2
4
+
5
+ - Ruby 3.0 support. Drop support for Ruby < 2.4.
6
+
3
7
  # 0.15.1
4
8
 
5
9
  - Rails 6.1 support.
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.10.1'
8
- gem 'pry-byebug', '~> 3.2.0'
9
- gem 'sdoc', '~> 0.4.1'
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.5.0'
14
- gem 'rspec-its', '~> 1.1.0'
15
- gem 'rspec-rails', '~> 3.5.0'
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.2', require: false
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 [`Client`](https://github.com/telegram-bot-rb/telegram-bot/blob/master/lib/telegram/bot/client.rb)
135
- class for list of available methods. Please open PR or issue if it misses methods from
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.
@@ -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.10.1"
11
- gem "pry-byebug", "~> 3.2.0"
12
- gem "sdoc", "~> 0.4.1"
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.5.0"
15
- gem "rspec-its", "~> 1.1.0"
16
- gem "rspec-rails", "~> 3.5.0"
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.2", require: false
18
+ gem "coveralls", "~> 0.8.23", require: false
19
19
  end
20
20
 
21
21
  gemspec path: "../"
@@ -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.10.1"
11
- gem "pry-byebug", "~> 3.2.0"
12
- gem "sdoc", "~> 0.4.1"
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.5.0"
15
- gem "rspec-its", "~> 1.1.0"
16
- gem "rspec-rails", "~> 3.5.0"
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.2", require: false
18
+ gem "coveralls", "~> 0.8.23", require: false
19
19
  end
20
20
 
21
21
  gemspec path: "../"
@@ -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.10.1"
11
- gem "pry-byebug", "~> 3.2.0"
12
- gem "sdoc", "~> 0.4.1"
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.5.0"
15
- gem "rspec-its", "~> 1.1.0"
16
- gem "rspec-rails", "~> 3.5.0"
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.2", require: false
18
+ gem "coveralls", "~> 0.8.23", require: false
19
19
  end
20
20
 
21
21
  gemspec path: "../"
@@ -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.10.1"
11
- gem "pry-byebug", "~> 3.2.0"
12
- gem "sdoc", "~> 0.4.1"
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.5.0"
15
- gem "rspec-its", "~> 1.1.0"
16
- gem "rspec-rails", "~> 3.5.0"
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.2", require: false
18
+ gem "coveralls", "~> 0.8.23", require: false
19
19
  end
20
20
 
21
21
  gemspec path: "../"
@@ -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.10.1"
11
- gem "pry-byebug", "~> 3.2.0"
12
- gem "sdoc", "~> 0.4.1"
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.5.0"
15
- gem "rspec-its", "~> 1.1.0"
16
- gem "rspec-rails", "~> 3.5.0"
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.2", require: false
18
+ gem "coveralls", "~> 0.8.23", require: false
19
19
  end
20
20
 
21
21
  gemspec path: "../"
@@ -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.10.1"
11
- gem "pry-byebug", "~> 3.2.0"
12
- gem "sdoc", "~> 0.4.1"
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.5.0"
15
- gem "rspec-its", "~> 1.1.0"
16
- gem "rspec-rails", "~> 3.5.0"
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.2", require: false
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
@@ -1,6 +1,6 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.15.1'.freeze
3
+ VERSION = '0.15.2'.freeze
4
4
 
5
5
  def self.gem_version
6
6
  Gem::Version.new VERSION
@@ -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 = '~> 2.0'
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.1
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: 2020-12-20 00:00:00.000000000 Z
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.0'
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: []