Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
rstueven opened this issue Nov 18, 2020 · 1 comment

Comments

@rstueven
Copy link

rstueven commented Nov 18, 2020

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant