apiotics 0.1.108 → 0.1.109

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
2
  SHA1:
3
- metadata.gz: 8c3b55ab5d6e8c545b68329203c419caf6a0c701
4
- data.tar.gz: aaa5dd4f7e19ffcb23c9aa5c2220000d08eed14d
3
+ metadata.gz: d6ef8e91565022893a800c46b3993e58e4634276
4
+ data.tar.gz: 558da476179e50b2146f3ecc8b693ac578196c2c
5
5
  SHA512:
6
- metadata.gz: fb66093234cac28ce0e01b86718f85d9f961eefd6cf8877707161e658bf1d6abbd773cfa0a7a3aac124734aa6d0b09bc92f877dcaef23e8b1941b8941ac05462
7
- data.tar.gz: 5e10557cd0a0dd972f473d5332998b2ae65ad42ceb37b8784e756510188570d2c2c59260eeb20205c3877385509b0245f74e1ee30c2621a3df215e85cce06627
6
+ metadata.gz: ea49225b841f7281f5e2046c1adf4fdb51d2673185e12a0014b01f08d04fe67200ab98997298d7e4b85232cd32f43d789bcf0dc39db4190760312f9094ab3a6b
7
+ data.tar.gz: 188d6b12d2ef73bd4bc8bef4876c6fa23bfc86dbd6f3bf1c8780b5e73762651fa5c30da14f799f1d62b2333a977757fa740456bf6c7eb2b76355fc3ca13300a5
@@ -60,7 +60,7 @@ module Apiotics
60
60
  context.verify_mode = OpenSSL::SSL::VERIFY_PEER
61
61
  end
62
62
  @server = OpenSSL::SSL::SSLSocket.new socket, context
63
- server.sync_close = true
63
+ @server.sync_close = true
64
64
  @server.connect
65
65
  if Apiotics.configuration.verify_peer == true
66
66
  ca_tempfile.close(true)
@@ -125,10 +125,10 @@ module Apiotics
125
125
  def listen_local
126
126
  if Apiotics.configuration.redis_comms_connection == false
127
127
  begin
128
- server = TCPServer.open(@localport)
128
+ @local_server = TCPServer.open(@localport)
129
129
  loop do
130
130
  Thread.abort_on_exception = true
131
- Thread.fork(server.accept) do |client|
131
+ Thread.fork(@local_server.accept) do |client|
132
132
  s = client.gets
133
133
  if @error_msg != nil
134
134
  string = '{"error":"' + error_msg + '"}'
@@ -139,7 +139,7 @@ module Apiotics
139
139
  end
140
140
  end
141
141
  rescue => e
142
- server.close
142
+ @local_server.close
143
143
  sleep 1
144
144
  raise e
145
145
  end
@@ -205,16 +205,16 @@ module Apiotics
205
205
  context.ca_file = ca_tempfile.path
206
206
  context.verify_mode = OpenSSL::SSL::VERIFY_PEER
207
207
  end
208
- server = OpenSSL::SSL::SSLSocket.new socket, context
209
- server.sync_close = true
210
- server.connect
208
+ @apiary_server = OpenSSL::SSL::SSLSocket.new socket, context
209
+ @apiary_server.sync_close = true
210
+ @apiary_server.connect
211
211
  else
212
- server = TCPSocket.open(Apiotics.configuration.server, Apiotics.configuration.server_port)
212
+ @apiary_server = TCPSocket.open(Apiotics.configuration.server, Apiotics.configuration.server_port)
213
213
  end
214
- server.puts('{"action":"lookup"}')
215
- msg = server.gets
214
+ @apiary_server.puts('{"action":"lookup"}')
215
+ msg = @apiary_server.gets
216
216
  hash = JSON.parse(msg)
217
- server.close
217
+ @apiary_server.close
218
218
  if Apiotics.configuration.verify_peer == true
219
219
  ca_tempfile.close(true)
220
220
  end
@@ -1,3 +1,3 @@
1
1
  module Apiotics
2
- VERSION = '0.1.108'
2
+ VERSION = '0.1.109'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiotics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.108
4
+ version: 0.1.109
5
5
  platform: ruby
6
6
  authors:
7
7
  - MicroArx Corporation