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 +9 -0
- data/lib/carrier-pigeon.rb +5 -4
- data/lib/carrier-pigeon/version.rb +1 -1
- metadata +2 -2
data/README.org
CHANGED
data/lib/carrier-pigeon.rb
CHANGED
@@ -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
|
-
|
36
|
-
|
37
|
-
|
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
|
-
|
45
|
+
@socket.flush
|
45
46
|
end
|
46
47
|
|
47
48
|
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.
|
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-
|
13
|
+
date: 2011-07-11 00:00:00 -07:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|