Code Monkey home page Code Monkey logo

hpfeeds-ruby's People

Contributors

vicvega avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hpfeeds-ruby's Issues

Missing require for `TimeoutError / Timeout::Error`

๐Ÿฉ  forrestfleming@fsf-work ~ % pry
>> require 'hpfeeds'
=> true
>> ::HPFeeds::Client.new(host:   'localhost', port:   10_000, ident:  'abc', secret: '123', reconnect: false)
W, [2017-04-27T14:45:05.574814 #37703]  WARN -- : NameError caught while connecting: uninitialized constant HPFeeds::TimeoutError. Reconnecting in 20 seconds...
NameError: uninitialized constant HPFeeds::TimeoutError
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/exception.rb:4:in `<module:HPFeeds>'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/exception.rb:1:in `<top (required)>'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/client.rb:62:in `rescue in connect'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/client.rb:57:in `connect'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/client.rb:42:in `block in tryconnect'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/client.rb:40:in `loop'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/client.rb:40:in `tryconnect'
	from: /Users/forrestfleming/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/hpfeeds-0.1.7/lib/hpfeeds/client.rb:36:in `initialize'
	from: (pry):2:in `new'
>>

PR incoming ๐Ÿ˜ƒ

README issue

Instructions provided in README are wrong

@hp.publish('channel', 'message')

The right syntax is

@hp.publish('message', 'channel')

hello, can you give me an example.

I keep getting
ERROR: "accessfail."
ERROR: "accessfail."

but I am putting the right info server and port.
for testing im just leaving your example as it is.. Im trying to sent data to my hpfeeds broker.
@hp.publish('message', '#{chan}') <-- this is the only change I done, apart of the channel names and auth information.

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

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 ๐Ÿถ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.