voloko / twitter-stream

Twitter realtime API client
MIT License
233 stars 81 forks source link

json_stream.rb:24: warning: key :path is duplicated and overwritten on line 27 #51

Closed rstueven closed 3 years ago

rstueven commented 3 years ago

I'm getting this warning from twitter-stream-0.1.12:

json_stream.rb:24: warning: key :path is duplicated and overwritten on line 27

Turns out it's right; the value is definitely in the hash twice.

    DEFAULT_OPTIONS = {
      :method       => 'GET',
      :path         => '/',
      :content_type => "application/x-www-form-urlencoded",
      :content      => '',
      :path         => '/1/statuses/filter.json',
      :host         => 'stream.twitter.com',
      :port         => 80,
      :ssl          => false,
      :user_agent   => 'TwitterStream',
      :timeout      => 0,
      :proxy        => ENV['HTTP_PROXY'],
      :auth         => nil,
      :oauth        => {},
      :filters      => [],
      :params       => {},
    }

It's not a high-priority thing, of course.

Rails 4.2.8 Ruby 2.4.6 OSX 10.15.7

rstueven commented 3 years ago

Ach! I see I'm a few versions behind. Never mind.