diff options
author | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-10-09 08:47:00 +0900 |
---|---|---|
committer | Toshiaki Asai <toshi.alternative@gmail.com> | 2016-10-09 08:47:00 +0900 |
commit | 866085a5a5a506bbe571e2f33c75ece368eca650 (patch) | |
tree | bd8d875a711707a81c08e79203f900746df11c54 | |
parent | 0a51370a95a4f57c643bfd1db46ea2630b42d97d (diff) | |
download | mikutter-866085a5a5a506bbe571e2f33c75ece368eca650.tar.gz |
tco: URL展開時にKernel.#timeoutを呼んでいて、Ruby2.3で警告が出ている
-rw-r--r-- | core/plugin/tco/tco.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/plugin/tco/tco.rb b/core/plugin/tco/tco.rb index cdca5b30..38a87c86 100644 --- a/core/plugin/tco/tco.rb +++ b/core/plugin/tco/tco.rb @@ -13,7 +13,7 @@ module Plugin::TCo def expand_url(url) no_mainthread begin - res = timeout(5){ Net::HTTP.get_response(URI.parse(url)) } + res = Timeout.timeout(5){ Net::HTTP.get_response(URI.parse(url)) } if res.is_a?(Net::HTTPRedirection) res["location"] else |