camper_van 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -37,26 +37,29 @@ bidirectionally. Some of the mappings are:
37
37
  ### Installation
38
38
 
39
39
  gem install camper_van
40
+
41
+ ### Command-line Options
42
+
40
43
  camper_van --help
41
44
 
42
45
  ### Running CamperVan
43
46
 
44
47
  camper_van
45
48
 
46
- Then, from your IRC client, set up a connection to `localhost:6667`. To
47
- authenticate with Campfire, you must configure your connection's
48
- password (the IRC PASS command) to be
49
+ From your IRC client, set up a connection to `localhost:6667`. To authenticate
50
+ with Campfire, you must configure your connection's password (the IRC PASS
51
+ command) to be:
49
52
 
50
53
  campfire_subdomain:api_key
51
54
 
52
- Connect, and `/LIST` will show you the irc channels / campfire rooms you
55
+ Connect, and `/LIST` will show you the IRC channels / campfire rooms you
53
56
  have access to. To connect to more than one subdomain, make a separate
54
57
  connection for each.
55
58
 
56
- If your IRC client (mIRC) doesn't allow `:` in the password, you can use `-`.
57
-
58
59
  Your campfire subdomain should be just the subdomain part. If your campfire url
59
- is `mycompany.campfirenow.com`, your subdomain would be `mycompany`.
60
+ is `mycompany.campfirenow.com`, the subdomain would be `mycompany`.
61
+
62
+ If your IRC client (mIRC) doesn't allow `:` in the password, you can use `-`.
60
63
 
61
64
  ## Development
62
65
 
@@ -86,7 +86,10 @@ module CamperVan
86
86
  # connections: allowing them to time out rather than leaving explicitly.
87
87
  def part
88
88
  client.user_reply :part, channel
89
- # FIXME this doesn't work. Not even on next_tick. EM/em-http-request bug?
89
+ if stream
90
+ stream.close if stream.respond_to?('close') # EM/em-http-request gem is installed and uses .close
91
+ stream.close_connection if stream.respond_to?('close_connection')
92
+ end
90
93
  stream.close_connection if stream
91
94
  # room.leave # let the timeout do it rather than being explicit!
92
95
  end
@@ -1,3 +1,3 @@
1
1
  module CamperVan
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: camper_van
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-29 00:00:00.000000000 Z
12
+ date: 2013-08-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  segments:
152
152
  - 0
153
- hash: 1272619163857585529
153
+ hash: -640128890155604269
154
154
  requirements: []
155
155
  rubyforge_project: camper_van
156
156
  rubygems_version: 1.8.23