1
0
зеркало из https://github.com/glebtv/telegram-bot.git synced 2026-09-07 19:35:52 +03:00

Fix "can't dup Fixnum (TypeError)" for Ruby 2.2.0

Этот коммит содержится в:
bob-frost
2016-11-13 09:47:01 +06:00
родитель ec1d5bad7d
Коммит 9f2234c132
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@@ -116,7 +116,7 @@ module Telegram
attr_reader :id attr_reader :id
def initialize(*, id: nil, async: nil, **) def initialize(*, id: nil, async: nil, **options)
@id = id @id = id
self.async = async self.async = async
super super

Просмотреть файл

@@ -5,7 +5,7 @@ module Telegram
module ClientHelpers module ClientHelpers
attr_reader :botan attr_reader :botan
def initialize(*, botan: nil, **) def initialize(*, botan: nil, **options)
super super
@botan = Botan.wrap(botan, id: id) if botan @botan = Botan.wrap(botan, id: id) if botan
end end