Giter Club home page Giter Club logo

camper_van's People

Contributors

calebhearth avatar danp avatar haileys avatar icco avatar jjasghar avatar lunks avatar technomancy avatar ttleish avatar wallace avatar zerowidth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

camper_van's Issues

`ignoring irc command {:cap=>["LS"]}`

Good evening,

Thanks for Camper_Van. I'm attempting to hook it up to my ZNC bouncer, but when I do, I see the following log messages:

2015-02-11 03:24:01 96337  INFO CamperVan : got connection from 127.0.0.1
2015-02-11 03:24:01 96337  INFO CamperVan : ignoring irc command {:cap=>["LS"]}: no handler
2015-02-11 03:24:02 96337  INFO CamperVan : closed connection from 127.0.0.1
2015-02-11 03:24:32 96337  INFO CamperVan : got connection from 127.0.0.1
2015-02-11 03:24:32 96337  INFO CamperVan : ignoring irc command {:cap=>["LS"]}: no handler
2015-02-11 03:24:32 96337  INFO CamperVan : closed connection from 127.0.0.1

I guess this means that Camper_Van doesn't support the IRC Client Capabilities Extension, but might it be able to keep the connection open anyway or otherwise respond with a empty capability list? I'd really like to be able to use Camper_Van in my daily work, but in practice that means that it must be pluggable with ZNC.

Thanks!

Crash when joining a locked room

Attempted to join a locked room, unfortunately camper_van crashes. Doesn't happen with rooms that aren't locked.

2013-05-11 20:41:12 29157 DEBUG CamperVan : irc -> JOIN #locked_room
2013-05-11 20:41:12 29157  INFO CamperVan : performing request to https://x.campfirenow.com/rooms.json
2013-05-11 20:41:13 29157  INFO CamperVan : closed connection from 127.0.0.1
$ camper_van 127.0.0.1 6668 -l debug -f out.log
/usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/camper_van-0.0.9/lib/camper_van/channel.rb:46:in `join': undefined method `numeric_reply' for #<CamperVan::Channel:0x007f8c9a8b0a00> (NoMethodError)
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/camper_van-0.0.9/lib/camper_van/ircd.rb:337:in `block in join_channel'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/firering-1.2.2/lib/firering/requests.rb:31:in `call'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/firering-1.2.2/lib/firering/requests.rb:31:in `block in rooms'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/firering-1.2.2/lib/firering/connection.rb:69:in `call'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/firering-1.2.2/lib/firering/connection.rb:69:in `block in http'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `call'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `set_deferred_status'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/em/deferrable.rb:173:in `succeed'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/em-http-request-0.3.0/lib/em-http/client.rb:307:in `unbind'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:1417:in `event_callback'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/camper_van-0.0.9/lib/camper_van/server.rb:21:in `run'
    from /usr/local/var/rbenv/versions/1.9.3-p374/lib/ruby/gems/1.9.1/gems/camper_van-0.0.9/bin/camper_van:64:in `<top (required)>'
    from /usr/local/var/rbenv/versions/1.9.3-p374/bin/camper_van:23:in `load'
    from /usr/local/var/rbenv/versions/1.9.3-p374/bin/camper_van:23:in `<main>'

Dies when using non-ascii chars in message

When I tried to send a message:

próbowałem flamethrower'a, ale coś gubił wiadomości i się wywalił na nicku z "Ł"

it dies with error:

2012-04-27 16:00:37  9020  INFO CamperVan : closed connection from 127.0.0.1
2012-04-27 16:00:37  9020 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-04-27 16:00:37  9020 ERROR CamperVan : http error . Trying again in 2 seconds...
/home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/lib/camper_van/channel.rb:127:in `sub': incompatible character encodings: ASCII-8BIT and UTF-8 (Encoding::CompatibilityError)
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/lib/camper_van/channel.rb:127:in `privmsg'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/lib/camper_van/ircd.rb:213:in `block in <class:IRCD>'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/lib/camper_van/command_definition.rb:59:in `handle'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/lib/camper_van/ircd.rb:67:in `receive_line'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/lib/camper_van/server.rb:97:in `receive_line'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:64:in `receive_data'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/lib/camper_van/server.rb:21:in `run'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/gems/camper_van-0.0.3/bin/camper_van:64:in `<top (required)>'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/bin/camper_van:19:in `load'
        from /home/kill/.rvm/gems/ruby-1.9.2-p318/bin/camper_van:19:in `<main>'

Suddenly crashing on parts

This has suddenly started happening to me a lot:

/usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/channel.rb:90:in part': undefined methodclose_connection' for #EventMachine::HttpClient:0x00000004657fa8 (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/ircd.rb:285:in block (2 levels) in <class:IRCD>' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/ircd.rb:284:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/ircd.rb:284:in block in <class:IRCD>' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/command_definition.rb:59:inhandle'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/ircd.rb:77:in receive_line' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/server.rb:126:inreceive_line'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/eventmachine-1.0.3/lib/em/protocols/linetext2.rb:64:in receive_data' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:inrun_machine'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/eventmachine-1.0.3/lib/eventmachine.rb:187:in run' from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/lib/camper_van/server.rb:23:inrun'
from /usr/local/rvm/gems/ruby-1.9.3-p392/gems/camper_van-0.0.11/bin/camper_van:75:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/camper_van:19:inload'
from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/camper_van:19:in <main>' from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:ineval'
from /usr/local/rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `

'

Binding Failure?

Hi Aniero,

Do you happen to know anything about the below issue?

kyle@Kyles-MacBook-Pro:s000 ~❯ camper_van --log-level debug
2012-11-05 22:09:53  8723  INFO CamperVan : starting server on 127.0.0.1:6667
2012-11-05 22:09:55  8723  INFO CamperVan : got connection from 127.0.0.1
2012-11-05 22:09:55  8723 DEBUG CamperVan : irc -> PASS subdomain:apikey
2012-11-05 22:09:55  8723 DEBUG CamperVan : irc -> NICK Kyle
2012-11-05 22:09:55  8723 DEBUG CamperVan : irc -> USER Kyle 0 * Kyle
2012-11-05 22:09:55  8723  INFO CamperVan : performing request to https://subdomain.campfirenow.com/users/me.json
dyld: lazy symbol binding failed: Symbol not found: _yajl_set_static_value
  Referenced from: /Users/kyle/.rvm/gems/ruby-1.9.3-p286/gems/yajl-ruby-0.7.9/ext/yajl/yajl.bundle
  Expected in: flat namespace

dyld: Symbol not found: _yajl_set_static_value
  Referenced from: /Users/kyle/.rvm/gems/ruby-1.9.3-p286/gems/yajl-ruby-0.7.9/ext/yajl/yajl.bundle
  Expected in: flat namespace

[1]    8723 trace trap  camper_van --log-level debug

Thanks in advance!

Kyle

File upload links incorrect

When a user uploads a file they get a link something like:

https://subdomain.campfirenow.com/room/ID1/uploads/ID2/filename

In the IRC channel this arrives as

ACTION   uploaded https://subdomain.campfirenow.com/room/ID1/uploads/ID3/filename

so - the second ID part of the URL has a different value and therefore the link doesn't work.

Am guessing the first ID is the room number - but what the second is (or where the third comes from in the IRC ACTION call) I have no clue.

Please change paste behavior

Hello,

Grate job. Super simple and works but can you implement past links instead of text ? Or a shortend paste + links, on long paste the chat gets flooded.

Thanks

Tweets crash camper_van

Any time a tweet arrives, camper_van crashes with an error message similar to the following. This occurs with the latest tag of firering (1.2.2) and master.

2013-01-07 20:23:17 15060 WARN CamperVan : WARNING: Could not set attribute 'tweet' to value '{:author_avatar_url=>"http://a0.twimg.com/profile_images/1261953917/headshot_normal.png", :author_username=>"tenderlove", :id=>288351675289317377, :message=>"Chewing the fat with various steak holders."}' on Firering::Message object. It is likely the Campfire API has changed. Please report this! (https://github.com/EmmanuelOga/firering/issues)
2013-01-07 20:23:17 15060 INFO CamperVan : closed connection from 127.0.0.1
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
2013-01-07 20:23:17 15060 ERROR CamperVan : http error . Trying again in 2 seconds...
/Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/camper_van-0.0.6/lib/camper_van/utils.rb:15:in stringify_keys': undefined methodkeys' for #String:0x007f9f9ba34890 (NoMethodError)
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/camper_van-0.0.6/lib/camper_van/channel.rb:370:in block in map_message_to_irc' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/camper_van-0.0.6/lib/camper_van/channel.rb:390:inuser_for_message'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/camper_van-0.0.6/lib/camper_van/channel.rb:260:in map_message_to_irc' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/camper_van-0.0.6/lib/camper_van/channel.rb:250:inblock in stream_campfire_to_channel'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/firering-1.2.2/lib/firering/connection.rb:90:in call' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/firering-1.2.2/lib/firering/connection.rb:90:inblock in stream'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/firering-1.2.2/lib/firering/connection.rb:103:in call' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/firering-1.2.2/lib/firering/connection.rb:103:in<<'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/firering-1.2.2/lib/firering/connection.rb:103:in block in stream' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/em-http-request-0.3.0/lib/em-http/client.rb:275:incall'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/em-http-request-0.3.0/lib/em-http/client.rb:275:in on_decoded_body_data' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/em-http-request-0.3.0/lib/em-http/client.rb:268:inon_body_data'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/em-http-request-0.3.0/lib/em-http/client.rb:582:in process_chunk_body' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/em-http-request-0.3.0/lib/em-http/client.rb:330:indispatch'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/em-http-request-0.3.0/lib/em-http/client.rb:256:in receive_data' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun_machine'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/camper_van-0.0.6/lib/camper_van/server.rb:21:inrun'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/gems/camper_van-0.0.6/bin/camper_van:64:in <top (required)>' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/bin/camper_van:19:inload'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/bin/camper_van:19:in <main>' from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:ineval'
from /Users/jonathanwallace/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `

'

names in channels are broken

As of recently (last couple of weeks maybe?), when I join a room via irssi, everything looks great to me but I do not show up as being in that room in the campfire web interface, which confuses everyone else.

If I manually join the room in the web interface, I see this:

27-12:36 -!- robin_powell [robin_powell@campfire] has joined #qa
27-12:36 [Users #qa]
27-12:36 -!- Irssi: #qa: Total of 0 nicks [0 ops, 0 halfops, 0 voices, 0 normal]

that last bit is the output of /names ; something about joining via the web interface causes irssi/campfire/something to lose track of all the other nicks in the channel.

So my choices are: (1) be invisible to everyone else or (2) have no-other nicks to auto-complete

The one saving grace is that if other people actually say something, I can auto-complete them again.

No idea what's up. Suggestions on how I can help debug?

Undefined method `email_address` for `User`

Once every 3-4 days I'll get a crash (stack trace below). It seems to occur passively (i.e. not something triggered directly by an action on my part). Let me know whether you need any help tracking it down further or with the fix!

/home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/lib/camper_van/user.rb:51:in
 `initialize': undefined method `email_address' for #<CamperVan::User:0xa159960> (NoMethodError)
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/lib/camper_van/
channel.rb:299:in `new'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/lib/camper_van/
channel.rb:299:in `block in map_message_to_irc'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/lib/camper_van/
channel.rb:380:in `user_for_message'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/lib/camper_van/
channel.rb:256:in `map_message_to_irc'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/lib/camper_van/
channel.rb:246:in `block in stream_campfire_to_channel'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/firering-1.1.1/lib/firering/conn
ection.rb:84:in `call'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/firering-1.1.1/lib/firering/conn
ection.rb:84:in `block in stream'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/firering-1.1.1/lib/firering/connection.rb:97:in `call'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/firering-1.1.1/lib/firering/connection.rb:97:in `<<'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/firering-1.1.1/lib/firering/connection.rb:97:in `block in stream'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/em-http-request-0.3.0/lib/em-http/client.rb:275:in `call'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/em-http-request-0.3.0/lib/em-http/client.rb:275:in `on_decoded_body_data'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/em-http-request-0.3.0/lib/em-http/client.rb:268:in `on_body_data'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/em-http-request-0.3.0/lib/em-http/client.rb:582:in `process_chunk_body'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/em-http-request-0.3.0/lib/em-http/client.rb:330:in `dispatch'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/em-http-request-0.3.0/lib/em-http/client.rb:256:in `receive_data'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/lib/camper_van/server.rb:16:in `run'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/camper_van-0.0.1/bin/camper_van:53:in `<top (required)>'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/bin/camper_van:19:in `load'
        from /home/fyrerise/.rbenv/versions/1.9.2-p290/bin/camper_van:19:in `<main>'

Proxy Support

Is there any HTTP proxy support included or planned?

Duplicates

So a bunch of us are using this at my work, and some of us (especially the people using irssi) pretty regularily get duplicated messages, where each campfire message will get sent to us 2 or more times (I've seen as much as five).

-Robin

Yajl problems on OSX 10.9

2014-02-19 16:59:36  7469  INFO CamperVan : performing request to https://everlane.campfirenow.com/users/me.json
dyld: lazy symbol binding failed: Symbol not found: _yajl_set_static_value
  Referenced from: /Users/vwoo/.gem/ruby/2.1.0/gems/yajl-ruby-0.7.9/ext/yajl/yajl.bundle
  Expected in: flat namespace

dyld: Symbol not found: _yajl_set_static_value
  Referenced from: /Users/vwoo/.gem/ruby/2.1.0/gems/yajl-ruby-0.7.9/ext/yajl/yajl.bundle
  Expected in: flat namespace

I'm using ruby 2.0.0

Users still present on campfire after quitting

Hi! CamperVan is great, but since I began using it people started to complain they can't ever tell if I'm online or not. When I quit IRC, a ghost of me stays on campfire and doesn't seem to go away ever.

Received messages from Campfire that start with `:` are cut off

(22:44:20) < andy_lindeman> groovebot: ruby me puts ":)"
(22:44:26) < groovebot> )

I expected a smiley :)

I think it has something to do with this line: https://github.com/aniero/camper_van/blob/081b1e66f5d3f14fb3332ae79b0b6b0da12e50b5/lib/camper_van/server_reply.rb#L85. I think removing the conditional would fix it--and I don't think it's problematic to add : as a prefix to the last argument in an IRC command, even if there is no space--but I'm not totally sure.

Thoughts?

camper_van requests info of joining user after I disconnected

Hey,

so I've been playing around with camper_van - great tool to make Campfire chats less painful. But there seem to be some inaccuracies or even problems.

After I disconnected my IRC client (Quassel) from camper_van it still requested information on a user that joined later. Here's the log output of camper_van:

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten.

C:\Users\User>camper_van
2013-10-12 12:06:41  2184  INFO CamperVan : starting server on 127.0.0.1:6667
2013-10-12 13:08:12  2184  INFO CamperVan : got connection from 127.0.0.1
2013-10-12 13:08:12  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/users/me.json
2013-10-12 13:08:13  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/users/me.json
2013-10-12 13:08:13  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/rooms.json
2013-10-12 13:08:14  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:08:14  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#/join.json
2013-10-12 13:08:15  2184  INFO CamperVan : performing streaming request to https://streaming.campfirenow.com/room/#my_user_id#/live.json
2013-10-12 13:08:18  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:08:40  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/rooms.json
2013-10-12 13:08:41  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:08:43  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:08:52  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/rooms.json
2013-10-12 13:08:53  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:08:58  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:09:04  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/rooms.json
2013-10-12 13:09:05  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:09:08  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:09:11  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/rooms.json
2013-10-12 13:09:11  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:09:13  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/room/#my_user_id#.json
2013-10-12 13:09:18  2184  INFO CamperVan : closed connection from 127.0.0.1
2013-10-12 14:23:37  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/users/#different_user_id#.json
2013-10-12 14:23:37  2184  INFO CamperVan : performing request to https://#channelname#.campfirenow.com/users/#different_user_id#.json

As I was still in the channel as a guest with a second PC, I know that a user with #different_user_id# joined around that time.

Shouldn't camper_van leave the channel when my IRC client closes the connection?
How did camper_van learn that this new user joined? I don't see anything in the logs.

Can't install on OS X

$ sudo gem install camper_van
Password:
Building native extensions.  This could take a while...
ERROR:  Error installing camper_van:
    ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h


Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/ext/gem_make.out

Paste URLs have duplicate hosts

Whenever somebody pastes something into Campfire the URL for said paste contains the Campfire host twice.

For example, if Campfire is running at cookies.campfirenow.com then the resulting URL will be something along the lines of cookies.campfirenow.com.campfirenow.com/room/X/paste/Y.

This issue occurs on camper_van 0.0.6. Although I updated to 0.0.7 I haven't had people paste anything in yet so I can't confirm/deny whether the issue is still the case on this version. There however don't seem to be any commits addressing this issue between the two mentioned versions.

RuntimeError when starting camper_van

When I try to run camper_van with no arguments I get this:

2013-05-07 03:27:40 23709  INFO CamperVan : starting server on 127.0.0.1:6667
/home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_tcp_server': no acceptor (RuntimeError)
        from /home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:572:in `start_server'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/camper_van-0.0.9/lib/camper_van/server.rb:24:in `block in run'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `call'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/camper_van-0.0.9/lib/camper_van/server.rb:21:in `run'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/lib/ruby/gems/1.9.1/gems/camper_van-0.0.9/bin/camper_van:64:in `<top (required)>'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/bin/camper_van:23:in `load'
        from /home/linduxed/.rbenv/versions/1.9.2-p320/bin/camper_van:23:in `<main>'

Could it be a setup issue of some kind?

znc-push is not working with camper_van for me

I have camper_van running on my server, and znc connects to it. I'm trying to get znc-push to notify my when there's activity in certain Campfire rooms.

Currently I'm seeing this message in the camper_van output:
INFO CamperVan : ignoring irc command {:ison=>["*push"]}: no handler

I haven't looked into this much yet.

`parse': undefined method `size' for nil:NilClass (NoMethodError)

I get the following error when attempting to connect, after this error the app stops running

/Library/Ruby/Gems/1.8/gems/camper_van-0.0.2/lib/camper_van/command_parser.rb:32:in parse': undefined methodsize' for nil:NilClass (NoMethodError)
from /Library/Ruby/Gems/1.8/gems/camper_van-0.0.2/lib/camper_van/ircd.rb:66:in receive_line' from /Library/Ruby/Gems/1.8/gems/camper_van-0.0.2/lib/camper_van/server.rb:97:inreceive_line'
from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/em/protocols/linetext2.rb:64:in receive_data' from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun_machine'
from /Library/Ruby/Gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run' from /Library/Ruby/Gems/1.8/gems/camper_van-0.0.2/lib/camper_van/server.rb:21:inrun'
from /Library/Ruby/Gems/1.8/gems/camper_van-0.0.2/bin/camper_van:57
from /usr/bin/camper_van:19:in `load'
from /usr/bin/camper_van:19

Crash in channel.rb:260


2012-04-25 14:30:02  5670 DEBUG CamperVan : irc <- :camper_van PONG camper_van
2012-04-25 14:30:02  5670 DEBUG CamperVan : irc -> MODE #plex_incorporated b
2012-04-25 14:30:02  5670 DEBUG CamperVan : irc <- :camper_van 472 tobias_hieta b :Unknown mode b
2012-04-25 14:30:34  5670  WARN CamperVan : WARNING: Tried to set starred= "false" on a Firering::Message instance but it didn't respond. Probably the API got updated, please report this! (https://github.com/EmmanuelOga/firering/issues)
/var/lib/gems/1.8/gems/camper_van-0.0.3/lib/camper_van/channel.rb:388: warning: multiple values for a block parameter (2 for 1)
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/data/message.rb:46
2012-04-25 14:30:34  5670  INFO CamperVan : closed connection from 127.0.0.1
2012-04-25 14:30:34  5670 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-04-25 14:30:34  5670 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-04-25 14:30:34  5670 ERROR CamperVan : http error . Trying again in 2 seconds...
/var/lib/gems/1.8/gems/camper_van-0.0.3/lib/camper_van/channel.rb:260:in `map_message_to_irc': undefined method `name' for #<Array:0x7fdda51ce780> (NoMethodError)
    from /var/lib/gems/1.8/gems/camper_van-0.0.3/lib/camper_van/channel.rb:389:in `user_for_message'
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/data/message.rb:46:in `call'
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/data/message.rb:46:in `user'
    from /var/lib/gems/1.8/gems/camper_van-0.0.3/lib/camper_van/channel.rb:388:in `user_for_message'
    from /var/lib/gems/1.8/gems/camper_van-0.0.3/lib/camper_van/channel.rb:257:in `map_message_to_irc'
    from /var/lib/gems/1.8/gems/camper_van-0.0.3/lib/camper_van/channel.rb:247:in `stream_campfire_to_channel'
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/connection.rb:84:in `call'
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/connection.rb:84:in `stream'
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/connection.rb:97:in `call'
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/connection.rb:97:in `<<'
    from /var/lib/gems/1.8/gems/firering-1.1.1/lib/firering/connection.rb:97:in `stream'
    from /var/lib/gems/1.8/gems/em-http-request-0.3.0/lib/em-http/client.rb:275:in `call'
    from /var/lib/gems/1.8/gems/em-http-request-0.3.0/lib/em-http/client.rb:275:in `on_decoded_body_data'
    from /var/lib/gems/1.8/gems/em-http-request-0.3.0/lib/em-http/client.rb:268:in `on_body_data'
    from /var/lib/gems/1.8/gems/em-http-request-0.3.0/lib/em-http/client.rb:582:in `process_chunk_body'
    from /var/lib/gems/1.8/gems/em-http-request-0.3.0/lib/em-http/client.rb:330:in `dispatch'
    from /var/lib/gems/1.8/gems/em-http-request-0.3.0/lib/em-http/client.rb:256:in `receive_data'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
    from /var/lib/gems/1.8/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
    from /var/lib/gems/1.8/gems/camper_van-0.0.3/lib/camper_van/server.rb:21:in `run'
    from /var/lib/gems/1.8/gems/camper_van-0.0.3/bin/camper_van:64
    from /usr/local/bin/camper_van:19:in `load'
    from /usr/local/bin/camper_van:19

Ability to daemonize camper_van

Currently camper_van always runs in the foreground and doesn't create any PID files. This in turn makes it a bit more tricky to run and monitor it (e.g. using Monit) unless you create a wrapper script. It would be nice if camper_van could daemonize itself (e.g. by specifying the -d/--daemon flag) and create a PID file (specified using another option)`.

Getting started

Maybe someone can help me out and the README or wiki can be improved.

The public room I want to join is https://assemblyhq.campfirenow.com/room/578218.
My IRC client is weechat.

set up a connection to localhost:6667

Using /connect localhost 6667 didn't work.
So I added a new server as /server add localhost localhost/6667.

Then I opened my ~/.weechat/irc.conf file and scrolled down to the new localhost server settings. Here's what I have so far

image

Am I on the right track? Where do I find the API key?

camper_van goes berserk when trying to reconnect

At times it appears that camper_van is no longer able to connect to the Campfire servers (not exactly sure why/when this happens) which will result in camper_van constantly trying to reconnect. This introduces two problems:

  • When logging output to a file (even when the log level is set to "info") this will very quickly result in a very large log file. In my case I ended up with a 1,2GB (largest so far was 1,5GB) log file in a matter of minutes.
  • Both CPU usage and memory usage skyrockets up to the point where Monit started complaining that around 80% of my server's memory (which is around 1,6GB) was being used. CPU usage in this case sits at around 100%.

I'm not entirely sure what's causing it as it appears to be random, though I've noticed an increase of this behaviour in the past 2-3 weeks.

I suspect part of the problem can be resolved by only reconnecting every N seconds (e.g. every 10 seconds) and increasing the time with every failed attempt. However, I can't really figure out where the reconnecting related code is located.

First time I speak camper_van crashes

I can reliably reproduce camper_van crashing by connecting to campfire, joining the channel, and saying something. I then restart camper_van and connect again and it works, but I get 2 messages at once.

2012-02-24 09:39:32 29407  INFO CamperVan : got connection from 127.0.0.1
2012-02-24 09:39:32 29407  INFO CamperVan : performing request to https://example.campfirenow.com/users/me.json
2012-02-24 09:39:33 29407  INFO CamperVan : performing request to https://example.campfirenow.com/users/me.json
2012-02-24 09:39:38 29407  INFO CamperVan : performing request to https://example.campfirenow.com/rooms.json
2012-02-24 09:39:39 29407  INFO CamperVan : performing request to https://example.campfirenow.com/room/423619.json
2012-02-24 09:39:39 29407  INFO CamperVan : performing request to https://example.campfirenow.com/room/423619/join.json
2012-02-24 09:39:40 29407  INFO CamperVan : performing streaming request to https://streaming.campfirenow.com/room/423619/live.json
2012-02-24 09:39:46 29407  INFO CamperVan : performing request to https://example.campfirenow.com/room/423619/speak.json
2012-02-24 09:39:49 29407  WARN CamperVan : WARNING: Tried to set starred= "false" on a Firering::Message instance but it didn't respond. Probably the API got updated, please report this! (https://github.com/EmmanuelOga/firering/issues)
2012-02-24 09:39:49 29407  INFO CamperVan : performing request to https://example.campfirenow.com/users/960484.json
2012-02-24 09:39:50 29407  INFO CamperVan : closed connection from 127.0.0.1
2012-02-24 09:39:50 29407 ERROR CamperVan : http error . Trying again in 2 seconds...
/Users/myusername/src/camper_van/lib/camper_van/channel.rb:266:in `block in map_message_to_irc': unexpected return (LocalJumpError)
        from /Users/myusername/src/camper_van/lib/camper_van/channel.rb:390:in `block in user_for_message'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/firering-1.1.1/lib/firering/instantiator.rb:28:in `call'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/firering-1.1.1/lib/firering/instantiator.rb:28:in `instantiate'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/firering-1.1.1/lib/firering/requests.rb:15:in `block in user'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/firering-1.1.1/lib/firering/connection.rb:68:in `call'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/firering-1.1.1/lib/firering/connection.rb:68:in `block in http'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `call'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `set_deferred_status'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/eventmachine-0.12.10/lib/em/deferrable.rb:173:in `succeed'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/em-http-request-0.3.0/lib/em-http/client.rb:307:in `unbind'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/eventmachine-0.12.10/lib/eventmachine.rb:1417:in `event_callback'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
        from /Users/myusername/src/camper_van/lib/camper_van/server.rb:21:in `run'
        from /Users/myusername/src/camper_van/bin/camper_van:57:in `<top (required)>'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/bin/camper_van:19:in `load'
        from /Users/myusername/.rvm/gems/ruby-1.9.3-p0@camper_van/bin/camper_van:19:in `<main>'

License missing from gemspec

RubyGems.org doesn't report a license for your gem. This is because it is not specified in the gemspec of your last release.

via e.g.

spec.license = 'MIT'
# or
spec.licenses = ['MIT', 'GPL-2']

Including a license in your gemspec is an easy way for rubygems.org and other tools to check how your gem is licensed. As you can imagine, scanning your repository for a LICENSE file or parsing the README, and then attempting to identify the license or licenses is much more difficult and more error prone. So, even for projects that already specify a license, including a license in your gemspec is a good practice. See, for example, how rubygems.org uses the gemspec to display the rails gem license.

There is even a License Finder gem to help companies/individuals ensure all gems they use meet their licensing needs. This tool depends on license information being available in the gemspec. This is an important enough issue that even Bundler now generates gems with a default 'MIT' license.

I hope you'll consider specifying a license in your gemspec. If not, please just close the issue with a nice message. In either case, I'll follow up. Thanks for your time!

Appendix:

If you need help choosing a license (sorry, I haven't checked your readme or looked for a license file), GitHub has created a license picker tool. Code without a license specified defaults to 'All rights reserved'-- denying others all rights to use of the code.
Here's a list of the license names I've found and their frequencies

p.s. In case you're wondering how I found you and why I made this issue, it's because I'm collecting stats on gems (I was originally looking for download data) and decided to collect license metadata,too, and make issues for gemspecs not specifying a license as a public service :). See the previous link or my blog post about this project for more information.

Outdated dependency eventmachine doesn't build on modern systems

This is a known issue in eventmachine that's fixed in versions newer than the four (4!) year old version camper_van is targeting.

This was all run on a newly spun up EC2 instance of Ubuntu Server 12.10:

root@ip-10-253-82-98:~# ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
root@ip-10-253-82-98:~# git clone https://github.com/aniero/camper_van.git
Cloning into 'camper_van'...
remote: Counting objects: 628, done.
remote: Compressing objects: 100% (272/272), done.
remote: Total 628 (delta 354), reused 606 (delta 333)
Receiving objects: 100% (628/628), 84.28 KiB | 65 KiB/s, done.
Resolving deltas: 100% (354/354), done.
root@ip-10-253-82-98:~# cd camper_van/
root@ip-10-253-82-98:~/camper_van# gem install camper_van
Building native extensions.  This could take a while...
ERROR:  Error installing camper_van:
    ERROR: Failed to build gem native extension.

        /usr/bin/ruby1.9.1 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for inotify_init() in sys/inotify.h... yes
checking for writev() in sys/uio.h... yes
checking for rb_thread_check_ints()... yes
checking for rb_time_new()... yes
checking for sys/event.h... no
checking for epoll_create() in sys/epoll.h... yes
checking for main() in -lcrypto... no
creating Makefile

make
compiling em.cpp
em.cpp: In member function ‘bool EventMachine_t::_RunEpollOnce()’:
em.cpp:501:3: warning: ‘int rb_thread_select(int, fd_set*, fd_set*, fd_set*, timeval*)’ is deprecated (declared at /usr/include/ruby-1.9.1/ruby/intern.h:379) [-Wdeprecated-declarations]
em.cpp:501:37: warning: ‘int rb_thread_select(int, fd_set*, fd_set*, fd_set*, timeval*)’ is deprecated (declared at /usr/include/ruby-1.9.1/ruby/intern.h:379) [-Wdeprecated-declarations]
em.cpp:556:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
em.cpp: In member function ‘bool EventMachine_t::_RunSelectOnce()’:
em.cpp:873:4: warning: ‘int rb_thread_select(int, fd_set*, fd_set*, fd_set*, timeval*)’ is deprecated (declared at /usr/include/ruby-1.9.1/ruby/intern.h:379) [-Wdeprecated-declarations]
em.cpp:873:38: warning: ‘int rb_thread_select(int, fd_set*, fd_set*, fd_set*, timeval*)’ is deprecated (declared at /usr/include/ruby-1.9.1/ruby/intern.h:379) [-Wdeprecated-declarations]
em.cpp: In member function ‘void EventMachine_t::_ReadLoopBreaker()’:
em.cpp:924:52: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘bool EventMachine_t::_RunTimers()’:
em.cpp:948:72: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘const long unsigned int EventMachine_t::ConnectToServer(const char*, int, const char*, int)’:
em.cpp:1089:22: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘const long unsigned int EventMachine_t::ConnectToUnixServer(const char*)’:
em.cpp:1218:22: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1221:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1237:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1243:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1249:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘const long unsigned int EventMachine_t::CreateTcpServer(const char*, int)’:
em.cpp:1453:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1455:33: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1535:9: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘const long unsigned int EventMachine_t::OpenDatagramSocket(const char*, int)’:
em.cpp:1545:33: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1596:9: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘const long unsigned int EventMachine_t::_OpenFileForWriting(const char*)’:
em.cpp:1773:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘const long unsigned int EventMachine_t::CreateUnixDomainServer(const char*)’:
em.cpp:1805:33: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1866:9: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘const long unsigned int EventMachine_t::Socketpair(char* const*)’:
em.cpp:1927:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1932:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1934:33: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1938:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp:1948:10: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
em.cpp: In member function ‘void EventMachine_t::_ReadLoopBreaker()’:
em.cpp:922:50: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
em.cpp: In member function ‘void EventMachine_t::SignalLoopBreaker()’:
em.cpp:294:34: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
compiling cplusplus.cpp
compiling kb.cpp
kb.cpp: In member function ‘virtual void KeyboardDescriptor::Read()’:
kb.cpp:79:27: warning: ignoring return value of ‘ssize_t read(int, void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
compiling sigs.cpp
compiling ed.cpp
ed.cpp: In member function ‘virtual int ConnectionDescriptor::SendOutboundData(const char*, int)’:
ed.cpp:503:76: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ed.cpp: In member function ‘void ConnectionDescriptor::_WriteOutboundData()’:
ed.cpp:956:67: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
compiling ssl.cpp
compiling pipe.cpp
compiling emwin.cpp
compiling files.cpp
compiling binder.cpp
compiling page.cpp
compiling cmain.cpp
compiling epoll.cpp
compiling rubymain.cpp
rubymain.cpp: In function ‘VALUE t_connect_server(VALUE, VALUE, VALUE)’:
rubymain.cpp:468:42: error: format not a string literal and no format arguments [-Werror=format-security]
rubymain.cpp: In function ‘VALUE t_bind_connect_server(VALUE, VALUE, VALUE, VALUE, VALUE)’:
rubymain.cpp:488:42: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors
make: *** [rubymain.o] Error 1

Can't install camper_van on OSX 10.8.5

➜ ✗ rvm use 2.0.0
Using /opt/twitter/rvm/gems/ruby-2.0.0-p353
➜ ✗ gem install camper_van
Building native extensions. This could take a while...
ERROR: Error installing camper_van:
ERROR: Failed to build gem native extension.

/opt/twitter/rvm/rubies/ruby-2.0.0-p353/bin/ruby extconf.rb

creating Makefile

make "DESTDIR=" clean

make "DESTDIR="
compiling yajl.c
yajl.c:33:10: fatal error: 'api/yajl_parse.h' file not found

include "api/yajl_parse.h"

     ^

1 error generated.
make: *** [yajl.o] Error 1

make failed, exit code 2

Gem files will remain installed in /opt/twitter/rvm/gems/ruby-2.0.0-p353/gems/yajl-ruby-0.7.9 for inspection.
Results logged to /opt/twitter/rvm/gems/ruby-2.0.0-p353/extensions/x86_64-darwin-12/2.0.0-static/yajl-ruby-0.7.9/gem_make.out

crash bug

No idea what happened here, but:

2012-05-31 15:42:20 13200 INFO CamperVan : performing request to https://engineyard.campfirenow.com.campfirenow.com/users/789439.json
2012-05-31 15:42:21 13200 WARN CamperVan : WARNING: Tried to set starred= "false" on a Firering::Message instance but it didn't respond. Probably the API got updated, please report this! (https://github.com/EmmanuelOga/firering/issues)
2012-05-31 15:42:21 13200 INFO CamperVan : closed connection from 209.251.180.162
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 INFO CamperVan : closed connection from 76.180.129.249
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 INFO CamperVan : closed connection from 72.45.208.163
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
2012-05-31 15:42:21 13200 ERROR CamperVan : http error . Trying again in 2 seconds...
/usr/local/rvm/gems/ruby-1.9.3-p194/gems/camper_van-0.0.3/lib/camper_van/channel.rb:267:in block in map_message_to_irc': unexpected return (LocalJumpError) from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/camper_van-0.0.3/lib/camper_van/channel.rb:389:inblock in user_for_message'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/firering-1.1.1/lib/firering/instantiator.rb:28:in call' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/firering-1.1.1/lib/firering/instantiator.rb:28:ininstantiate'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/firering-1.1.1/lib/firering/requests.rb:15:in block in user' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/firering-1.1.1/lib/firering/connection.rb:68:incall'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/firering-1.1.1/lib/firering/connection.rb:68:in block in http' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:incall'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in set_deferred_status' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/em/deferrable.rb:173:insucceed'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/em-http-request-0.3.0/lib/em-http/client.rb:307:in unbind' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/eventmachine.rb:1417:inevent_callback'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in run_machine' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:inrun'
from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/camper_van-0.0.3/lib/camper_van/server.rb:21:in run' from /usr/local/rvm/gems/ruby-1.9.3-p194/gems/camper_van-0.0.3/bin/camper_van:64:in<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/camper_van:19:in load' from /usr/local/rvm/gems/ruby-1.9.3-p194/bin/camper_van:19:in

'

mIRC issues

mIRC and possibly other clients do not like the : character in the server password, and server connections cannot be made.

Could you possibly change this character or make it configurable? maybe ; or !

crash when joining a room

I ran into this while trying to connect to campfire through camper_van via dircproxy. Everything seems to work until I join a room.

2012-04-15 19:49:17  6919  INFO CamperVan : performing request to https://x.campfirenow.com.campfirenow.com/rooms.json
2012-04-15 19:49:17  6919 DEBUG CamperVan : irc <- :camper_van 403 christoph_otto #ecto-1 :No such campfire room!
2012-04-15 19:49:20  6919 DEBUG CamperVan : irc -> JOIN #ecto_1
2012-04-15 19:49:20  6919  INFO CamperVan : performing request to https://x.campfirenow.com.campfirenow.com/rooms.json
2012-04-15 19:49:20  6919  INFO CamperVan : performing request to https://x.campfirenow.com.campfirenow.com/room/426698.json
2012-04-15 19:49:20  6919 DEBUG CamperVan : irc <- :[email protected] JOIN :#ecto_1
2012-04-15 19:49:20  6919  INFO CamperVan : closed connection from 96.126.105.162
/home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/camper_van-0.0.3/lib/camper_van/channel.rb:59:in `+': can't convert nil into String (TypeError)
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/camper_van-0.0.3/lib/camper_van/channel.rb:59:in `block in join'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/camper_van-0.0.3/lib/camper_van/channel.rb:239:in `call'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/camper_van-0.0.3/lib/camper_van/channel.rb:239:in `block in update_users'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/firering-1.1.1/lib/firering/data/room.rb:21:in `call'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/firering-1.1.1/lib/firering/data/room.rb:21:in `block in users'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/firering-1.1.1/lib/firering/connection.rb:68:in `call'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/firering-1.1.1/lib/firering/connection.rb:68:in `block in http'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `call'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/em/deferrable.rb:134:in `set_deferred_status'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/em/deferrable.rb:173:in `succeed'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/em-http-request-0.3.0/lib/em-http/client.rb:307:in `unbind'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:1417:in `event_callback'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/camper_van-0.0.3/lib/camper_van/server.rb:21:in `run'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/gems/camper_van-0.0.3/bin/camper_van:64:in `<top (required)>'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/bin/camper_van:19:in `load'
        from /home/cotto/.rvm/gems/ruby-1.9.3-p125/bin/camper_van:19:in `<main>'

Some messages are recognized as commands which are not recognized.

Basically we have a Pager user sending messages to our room but they are not recognized:

│00:21:01 campfire =!= | irc: command "Cloud" not found:
│00:21:01 campfire =!= | Cloud server 25 - https://foo.com/servers/5 - Unreachable Mon Oct 29 00:17:55 UTC 2012
│00:21:01 campfire =!= | irc: command "http://foo..com/pages/24312" not found:
│00:21:01 campfire =!= | http://foo.com/pages/24312

Here's HTML from campfire website:

Campfire HTML

Is this something that can be fixed ?

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.