carrier-pigeon 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.org CHANGED
@@ -1,3 +1,12 @@
1
+ * Requirements
2
+
3
+ - Ruby (MRI)
4
+ - RubyGems
5
+
6
+ * Install
7
+
8
+ : gem install carrier-pigeon
9
+
1
10
  * Usage
2
11
 
3
12
  : require 'carrier-pigeon'
@@ -11,6 +11,7 @@ class CarrierPigeon
11
11
  ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
12
12
  @socket = OpenSSL::SSL::SSLSocket.new(tcp_socket, ssl_context)
13
13
  @socket.sync = true
14
+ @socket.sync_close = true
14
15
  @socket.connect
15
16
  else
16
17
  @socket = tcp_socket
@@ -32,16 +33,16 @@ class CarrierPigeon
32
33
  raise ArgumentError unless options[:uri] && options[:message]
33
34
  uri = Addressable::URI.parse(options[:uri])
34
35
  ssl = options[:ssl] || false
35
- pidgeon = new(uri.host, uri.port, uri.user, uri.password, ssl)
36
- pidgeon.message("#" + uri.fragment, options[:message])
37
- pidgeon.die
36
+ pigeon = new(uri.host, uri.port, uri.user, uri.password, ssl)
37
+ pigeon.message("#" + uri.fragment, options[:message])
38
+ pigeon.die
38
39
  end
39
40
 
40
41
  private
41
42
 
42
43
  def sendln(cmd)
43
44
  @socket.write("#{cmd}\r\n")
44
- STDOUT.flush
45
+ @socket.flush
45
46
  end
46
47
 
47
48
  end
@@ -1,5 +1,5 @@
1
1
  module Carrier
2
2
  module Pigeon
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: carrier-pigeon
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.3
5
+ version: 0.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Sean Porter
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-06-15 00:00:00 +09:00
13
+ date: 2011-07-11 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency