vicvega/hpfeeds-ruby

Impossible to set `reconnect: false` when creating a new client

ffleming opened this issue · 0 comments

When you call

HPFeeds::Client.new(
  ...
  reconnect: false
)

which runs

 @reconnect = options[:reconnect] || true

If you pass false, the right side still evaluates and @reconnect is given the value of the disjunct. Of course, false || true evaluates to true.

PR incoming 🐶