telegram-bot 0.16.0 → 0.16.1

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: 678fc8a052951d69320003265d082899860e18dbaea0cf2e26b03498fc3d355f
4
- data.tar.gz: c29b6e9dee95f9dbb795d5461bfc134946fafde604a25b020aecdfdea2399ad4
3
+ metadata.gz: 71f0e613a4546cd530c2abf33c26521740b2210ad1a4d1fedf1fc9b46be804ef
4
+ data.tar.gz: 623c0f1bfc57ce2d021be33237df291e93cde17573cbce64cf04ab53c83b14f5
5
5
  SHA512:
6
- metadata.gz: 863cf376b6ee18ed9b62c387a3306b09e95a250e4d15db241dbf9deb5c5e04acb5f970eb0c459adc7dc41ecc8b7e815ab00a0d49572624849213a1152049b380
7
- data.tar.gz: a43acea839782fdfa01bf4b52a963c95ac6db7a7ed1bb9de3e625e20bc934a2bd9951af4d6cfab4898ecbf096423da45cd74bcf68ec17deb7157acbe1281053e
6
+ metadata.gz: 04aefa97d17e5d67881e9be5e291464bd04c933ff53d8b9daadd43a87d30387b38c14bf97567affe4b4ec9ef9292e7402d437aa5545bd87e6d3a833212e1d223
7
+ data.tar.gz: d279d8954013c7b6a2e6f7e923bef162f389751f5ce3e0672fc2ec7d9b8622c79125870fbc69043488e9d9933ef6967b2629c17c28321d786046109b18216fe6
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Unreleased
2
2
 
3
+ # 0.16.1
4
+
5
+ - Fix logger in poller mode in rails 7.1
6
+
3
7
  # 0.16.0
4
8
 
5
9
  - Add `UpdatesController#webhook_request` that is set to `ActionDispatch::Request`
data/Gemfile CHANGED
@@ -6,15 +6,15 @@ group :development do
6
6
 
7
7
  gem 'pry', '~> 0.14.1'
8
8
  gem 'pry-byebug', '~> 3.10.1'
9
- # gem 'sdoc', '~> 2.0.3'
9
+ gem 'sdoc', '~> 2.0.3'
10
10
 
11
- # gem 'telegram-bot-types', '~> 0.6.3'
11
+ gem 'telegram-bot-types', '~> 0.6.3'
12
12
 
13
- # gem 'rspec', '~> 3.12.0'
14
- # gem 'rspec-its', '~> 1.3.0'
15
- # gem 'rspec-rails', '~> 4.0.2'
13
+ gem 'rspec', '~> 3.12.0'
14
+ gem 'rspec-its', '~> 1.3.0'
15
+ gem 'rspec-rails', '~> 4.0.2'
16
16
 
17
- # gem 'rubocop', '~> 0.52.1'
17
+ gem 'rubocop', '~> 0.52.1'
18
18
 
19
- # gem 'coveralls', '~> 0.8.23', require: false
19
+ gem 'coveralls', '~> 0.8.23', require: false
20
20
  end
data/Rakefile CHANGED
@@ -1,22 +1,22 @@
1
1
  require 'bundler/gem_tasks'
2
- # require 'rspec/core/rake_task'
2
+ require 'rspec/core/rake_task'
3
3
 
4
- # RSpec::Core::RakeTask.new(:spec)
4
+ RSpec::Core::RakeTask.new(:spec)
5
5
 
6
6
  task default: :spec
7
7
 
8
- # require 'sdoc'
9
- # RDoc::Task.new(:doc) do |rdoc|
10
- # rdoc.rdoc_dir = 'doc'
8
+ require 'sdoc'
9
+ RDoc::Task.new(:doc) do |rdoc|
10
+ rdoc.rdoc_dir = 'doc'
11
11
 
12
- # rdoc.title = 'RailsStuff'
12
+ rdoc.title = 'RailsStuff'
13
13
 
14
- # rdoc.options << '--markup' << 'markdown'
15
- # rdoc.options << '-e' << 'UTF-8'
16
- # rdoc.options << '--format' << 'sdoc'
17
- # rdoc.options << '--template' << 'rails'
18
- # rdoc.options << '--all'
14
+ rdoc.options << '--markup' << 'markdown'
15
+ rdoc.options << '-e' << 'UTF-8'
16
+ rdoc.options << '--format' << 'sdoc'
17
+ rdoc.options << '--template' << 'rails'
18
+ rdoc.options << '--all'
19
19
 
20
- # rdoc.rdoc_files.include('README.md')
21
- # rdoc.rdoc_files.include('lib/**/*.rb')
22
- # end
20
+ rdoc.rdoc_files.include('README.md')
21
+ rdoc.rdoc_files.include('lib/**/*.rb')
22
+ end
@@ -7,7 +7,11 @@ namespace :telegram do
7
7
  Rake::Task['environment'].invoke
8
8
  if ENV.fetch('LOG_TO_STDOUT') { Rails.env.development? }.present?
9
9
  console = ActiveSupport::Logger.new(STDERR)
10
- Rails.logger.extend ActiveSupport::Logger.broadcast console
10
+ if ::Rails.logger.respond_to?(:broadcast_to)
11
+ ::Rails.logger.broadcast_to(console)
12
+ else
13
+ Rails.logger.extend ActiveSupport::Logger.broadcast console
14
+ end
11
15
  end
12
16
  Telegram::Bot::UpdatesPoller.start(ENV['BOT'].try!(:to_sym) || :default)
13
17
  end
@@ -1,6 +1,6 @@
1
1
  module Telegram
2
2
  module Bot
3
- VERSION = '0.16.0'.freeze
3
+ VERSION = '0.16.1'.freeze
4
4
 
5
5
  def self.gem_version
6
6
  Gem::Version.new VERSION
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.16.0
4
+ version: 0.16.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Melentiev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-10 00:00:00.000000000 Z
11
+ date: 2023-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  requirements: []
182
- rubygems_version: 3.4.20
182
+ rubygems_version: 3.3.3
183
183
  signing_key:
184
184
  specification_version: 4
185
185
  summary: Library for building Telegram Bots with Rails integration