rendezvous 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile.lock +4 -1
- data/README.md +28 -0
- data/lib/rendezvous.rb +7 -1
- data/lib/rendezvous/version.rb +1 -1
- metadata +3 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 377a3fd27bbe3c1d04ea21fdf4155a54abce83671747ad47b986127abea218fe
|
4
|
+
data.tar.gz: 2467fd352e8ecfcc96b09e3497a7c4dfcc500c296b699346b484756f68c2fc48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b60aec8283d46dfc73aa142f38f1ec4a0b589e94e587f0b08435efe690e9a4fc50f602117f3197f8c419f801db274cfb6e1e137469ab6805f89a2be25f5c10a3
|
7
|
+
data.tar.gz: 522c9c9896d4243e2fed5119bc34d3f93fa4f2775b7c032b6373b4329bb68403418259075e582a7d916c377af6bb4c59a815ac8df65730a388e6267f5f95336b
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -45,6 +45,34 @@ Rendezvous.start(
|
|
45
45
|
)
|
46
46
|
```
|
47
47
|
|
48
|
+
|
49
|
+
The Rendezvous class reads and writes from `STDIN` and `STDOUT`. If you want to manage that programatically, you can pass in other IO objects.
|
50
|
+
|
51
|
+
```
|
52
|
+
rz = Rendezvous.new({input:StringIO.new, output:StringIO.new, url: data['rendezvous_url']})
|
53
|
+
rz.start
|
54
|
+
# log the output, remember to rewind so it can be read
|
55
|
+
rz.output.rewind
|
56
|
+
log.debug("Results:#{rz.output.readlines.join}")
|
57
|
+
```
|
58
|
+
|
59
|
+
Since the Rendezvous class uses blocking IO, you may want to wrap it in a Thread so your main thread can continue while data is being read.
|
60
|
+
|
61
|
+
```
|
62
|
+
Thread.new do
|
63
|
+
begin
|
64
|
+
# set an activity timeout so it doesn't block forever
|
65
|
+
rz = Rendezvous.new({input:StringIO.new, output:StringIO.new, url: data['rendezvous_url'], activity_timeout:300})
|
66
|
+
rz.start
|
67
|
+
# do something with output ...
|
68
|
+
rescue => e
|
69
|
+
log.error("Error capturing output for dyno\n#{e.message}")
|
70
|
+
end
|
71
|
+
|
72
|
+
log.debug("completed capturing output for dyno")
|
73
|
+
end
|
74
|
+
```
|
75
|
+
|
48
76
|
## Contributing
|
49
77
|
|
50
78
|
1. Fork it
|
data/lib/rendezvous.rb
CHANGED
@@ -89,7 +89,13 @@ class Rendezvous
|
|
89
89
|
host, port, secret = uri.host, uri.port, uri.path[1..-1]
|
90
90
|
|
91
91
|
ssl_context = OpenSSL::SSL::SSLContext.new
|
92
|
-
|
92
|
+
|
93
|
+
if ssl_context.respond_to?(:min_version=)
|
94
|
+
ssl_context.min_version = :TLS1
|
95
|
+
ssl_context.max_version = :TLS1_2
|
96
|
+
else
|
97
|
+
ssl_context.ssl_version = :TLSv1
|
98
|
+
end
|
93
99
|
|
94
100
|
if @ssl_verify_peer
|
95
101
|
ssl_context.ca_file = File.expand_path("../../data/cacert.pem", __FILE__)
|
data/lib/rendezvous/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rendezvous
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- geemus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Client for interacting with Heroku processes.
|
14
14
|
email:
|
@@ -47,10 +47,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
47
47
|
- !ruby/object:Gem::Version
|
48
48
|
version: '0'
|
49
49
|
requirements: []
|
50
|
-
|
51
|
-
rubygems_version: 2.2.2
|
50
|
+
rubygems_version: 3.0.3
|
52
51
|
signing_key:
|
53
52
|
specification_version: 4
|
54
53
|
summary: Client for interacting with Heroku processes.
|
55
54
|
test_files: []
|
56
|
-
has_rdoc:
|