rendezvous 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 6967d61f147986afb2b2933cd6d9d6fbdcb9b231
4
- data.tar.gz: 2e62de51546396d7550d409a39c2827e25e862be
2
+ SHA256:
3
+ metadata.gz: 377a3fd27bbe3c1d04ea21fdf4155a54abce83671747ad47b986127abea218fe
4
+ data.tar.gz: 2467fd352e8ecfcc96b09e3497a7c4dfcc500c296b699346b484756f68c2fc48
5
5
  SHA512:
6
- metadata.gz: 73e3ce521d22bfdce6a8b33f49be9733a00ab36461a7184f9d3c7954fd2d80a60a89494b37d8cd078cebcceb1229908b5aa3e5e0d0448a909e5b8586560abae6
7
- data.tar.gz: 1813fc03f7c89df8dc5ab42596d2c6b2204bc50dad79cf605100232a080f4821a23749536e35084872ff3872a38c15d21d7c76064616b8fc5b293bef1cb72493
6
+ metadata.gz: b60aec8283d46dfc73aa142f38f1ec4a0b589e94e587f0b08435efe690e9a4fc50f602117f3197f8c419f801db274cfb6e1e137469ab6805f89a2be25f5c10a3
7
+ data.tar.gz: 522c9c9896d4243e2fed5119bc34d3f93fa4f2775b7c032b6373b4329bb68403418259075e582a7d916c377af6bb4c59a815ac8df65730a388e6267f5f95336b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rendezvous (0.0.2)
4
+ rendezvous (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -12,3 +12,6 @@ PLATFORMS
12
12
 
13
13
  DEPENDENCIES
14
14
  rendezvous!
15
+
16
+ BUNDLED WITH
17
+ 2.0.1
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
@@ -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
- ssl_context.ssl_version = :TLSv1
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__)
@@ -1,3 +1,3 @@
1
1
  class Rendezvous
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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: 2014-11-24 00:00:00.000000000 Z
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
- rubyforge_project:
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: