Skip to content

Commit

Permalink
Merge pull request #190 from cre-ne-jp/gem-update-twitter
Browse files Browse the repository at this point in the history
Twitter gem のアップデートに伴う、UrlFetchTitle のテストエラー
  • Loading branch information
ochaochaocha3 committed Sep 8, 2020
2 parents 543e32a + 402d2a9 commit 3d5c967
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source 'https://rubygems.org'

gem 'activesupport', '~> 6.0'
gem 'twitter', '~> 6.2'
gem 'twitter', '~> 7.0'
gem 'lumberjack', '~> 1.0'
gem 'sysexits', '~> 1.2'
gem 'http', '> 3.0'
Expand Down
17 changes: 11 additions & 6 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,23 @@ GEM
equalizer (0.0.11)
event_emitter (0.2.6)
ffi (1.13.1)
ffi-compiler (1.0.1)
ffi (>= 1.0.0)
rake
gdbm (2.1.0)
guess_html_encoding (0.0.11)
hashdiff (1.0.1)
http (3.3.0)
http (4.4.1)
addressable (~> 2.3)
http-cookie (~> 1.0)
http-form_data (~> 2.0)
http_parser.rb (~> 0.6.0)
http-form_data (~> 2.2)
http-parser (~> 1.2.0)
http-accept (1.7.0)
http-cookie (1.0.3)
domain_name (~> 0.5)
http-form_data (2.3.0)
http-parser (1.2.1)
ffi-compiler (>= 1.0, < 2.0)
http_parser.rb (0.6.0)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
Expand Down Expand Up @@ -133,11 +138,11 @@ GEM
thread_safe (0.3.6)
tins (1.25.0)
sync
twitter (6.2.0)
twitter (7.0.0)
addressable (~> 2.3)
buftok (~> 0.2.0)
equalizer (~> 0.0.11)
http (~> 3.0)
http (~> 4.0)
http-form_data (~> 2.0)
http_parser.rb (~> 0.6.0)
memoizable (~> 0.4.0)
Expand Down Expand Up @@ -183,7 +188,7 @@ DEPENDENCIES
rspec (~> 3.1)
rubocop (~> 0.28)
sysexits (~> 1.2)
twitter (~> 6.2)
twitter (~> 7.0)
webmock (~> 3.3)
yard (~> 0.8)

Expand Down
3 changes: 1 addition & 2 deletions lib/rgrb/plugin/url_fetch_title/generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ def fetch_title(url)
body =
begin
response = HTTP.
timeout(:global,
write: @write_timeout,
timeout(write: @write_timeout,
connect: @connect_timeout,
read: @read_timeout).
get(url,
Expand Down

0 comments on commit 3d5c967

Please sign in to comment.