From 9f2234c132af2bd4f5530e6bf25f6cfd3b5fe7fc Mon Sep 17 00:00:00 2001 From: bob-frost Date: Sun, 13 Nov 2016 09:47:01 +0600 Subject: [PATCH] Fix "can't dup Fixnum (TypeError)" for Ruby 2.2.0 --- lib/telegram/bot/async.rb | 2 +- lib/telegram/bot/botan/client_helpers.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/telegram/bot/async.rb b/lib/telegram/bot/async.rb index f97d862..10bddbc 100644 --- a/lib/telegram/bot/async.rb +++ b/lib/telegram/bot/async.rb @@ -116,7 +116,7 @@ module Telegram attr_reader :id - def initialize(*, id: nil, async: nil, **) + def initialize(*, id: nil, async: nil, **options) @id = id self.async = async super diff --git a/lib/telegram/bot/botan/client_helpers.rb b/lib/telegram/bot/botan/client_helpers.rb index b88efa1..1f889a9 100644 --- a/lib/telegram/bot/botan/client_helpers.rb +++ b/lib/telegram/bot/botan/client_helpers.rb @@ -5,7 +5,7 @@ module Telegram module ClientHelpers attr_reader :botan - def initialize(*, botan: nil, **) + def initialize(*, botan: nil, **options) super @botan = Botan.wrap(botan, id: id) if botan end