vicvega / hpfeeds-ruby Goto Github PK
View Code? Open in Web Editor NEWRuby client for hpfeeds protocol
License: MIT License
Ruby client for hpfeeds protocol
License: MIT License
while using Jruby I get this error
and I've opened an issue on jruby repo and here is their response
jruby/jruby#2997
if it's not essential, can you please remove it and update the gem?
Thanks,
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 ๐ถ
Instructions provided in README are wrong
@hp.publish('channel', 'message')
The right syntax is
@hp.publish('message', 'channel')
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.
๐ฉ 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 ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.