aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshiaki Asai <toshi.alternative@gmail.com>2016-10-09 08:47:00 +0900
committerToshiaki Asai <toshi.alternative@gmail.com>2016-10-09 08:47:00 +0900
commit866085a5a5a506bbe571e2f33c75ece368eca650 (patch)
treebd8d875a711707a81c08e79203f900746df11c54
parent0a51370a95a4f57c643bfd1db46ea2630b42d97d (diff)
downloadmikutter-866085a5a5a506bbe571e2f33c75ece368eca650.tar.gz
tco: URL展開時にKernel.#timeoutを呼んでいて、Ruby2.3で警告が出ている
-rw-r--r--core/plugin/tco/tco.rb2
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