bk-one / shoutbox-client Goto Github PK
View Code? Open in Web Editor NEWRuby Client to post messages to a Shoutbox Server
License: MIT License
Ruby Client to post messages to a Shoutbox Server
License: MIT License
When a shoutbox server is more or less dead (in this case alive but nearly not responding) the following breaks your code:
Timeout::Error
/usr/lib64/ruby/1.9.1/net/protocol.rb:140:in rescue in rbuf_fill' /usr/lib64/ruby/1.9.1/net/protocol.rb:134:in
rbuf_fill'
/usr/lib64/ruby/1.9.1/net/protocol.rb:116:in readuntil' /usr/lib64/ruby/1.9.1/net/protocol.rb:126:in
readline'
/usr/lib64/ruby/1.9.1/net/http.rb:2211:in read_status_line' /usr/lib64/ruby/1.9.1/net/http.rb:2200:in
read_new'
/usr/lib64/ruby/1.9.1/net/http.rb:1183:in transport_request' /usr/lib64/ruby/1.9.1/net/http.rb:1169:in
request'
/usr/lib64/ruby/gems/1.9.1/gems/shoutbox-client-0.1.1/lib/shoutbox_client.rb:39:in block in update_status' /usr/lib64/ruby/1.9.1/net/http.rb:627:in
start'
/usr/lib64/ruby/1.9.1/net/http.rb:490:in start' /usr/lib64/ruby/gems/1.9.1/gems/shoutbox-client-0.1.1/lib/shoutbox_client.rb:31:in
update_status'
/usr/lib64/ruby/gems/1.9.1/gems/shoutbox-client-0.1.1/lib/shoutbox_client.rb:21:in `shout'
something like
$ shout --group test remove '*'
should remove all shouts in test group.
On a Mac require 'json" and also require 'JSON' works fine but on a linux machine only require 'json' works so it should be changed to require 'json' to work on all machines.
linux $ irb -rubygems
> require 'json'
=> true
linux $ irb -rubygems
> require 'JSON'
LoadError: no such file to load -- JSON
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.