nobject 1.1.9 → 1.1.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01dcdc821f2b06b03b96282723b4d182e94568b2e0638e449f617d07997dbbf2
4
- data.tar.gz: cd05daf2e5f7bc5b70989ed458c7e0dd94b2bb2517cfe08a735a169337a756b0
3
+ metadata.gz: fc2ff76b449785517799157499e4a37ac521720989159e62069651aed97b284e
4
+ data.tar.gz: 6c1050a3b13a1b383989f95e04856aeb230ddeb4ec6bc4b82a91e5bad3f64c99
5
5
  SHA512:
6
- metadata.gz: fdab616b26d403aed00b0c76dbb87ef9b3e7b1d89418de6ccc8960f7bfb31ff976f1a4720712785b283f65aee5c4a5ec1b49a98af294ab762531c5059ef10768
7
- data.tar.gz: 924cd1453bf40a411f2c57c126a45012ad9ed03db1f6460379e5104cb8f2f1376be2e7857057dd2a806875cedeafb27b47e922a3881bd608b4072904f73a68f1
6
+ metadata.gz: 4e1f5c1721e49134d785ba98683498d9aad764443a6536b4c7353d7c44a282c19f60e8e691343d809a77247a028722f12339d31978b02fe2934ca246631997d6
7
+ data.tar.gz: 655d80fa20878b30813194dec0107607c0dfaf4410f23965462b64e089364b57f6bf828bd2f560afc914acece8e7408829d4bb33938bc3364bcc616acf4c6f6f
data/lib/nobject/local.rb CHANGED
@@ -17,7 +17,7 @@ module Nobject
17
17
  @socket = TCPSocket.new(host, port)
18
18
  obj_bytes = Marshal.dump(obj)
19
19
 
20
- File.open('/tmp/nobject.log', 'a') {|f| f.puts "L:#{@msg_counter += 1} #{obj_bytes.length}"; f.flush }
20
+ File.open('/tmp/nobject.log', 'a') {|f| f.puts "L:##{@msg_counter += 1} sz#{obj_bytes.length}"; f.flush }
21
21
  @socket.send([obj_bytes.length].pack('Q>'), 0)
22
22
  @socket.send(obj_bytes, 0)
23
23
  end
@@ -28,7 +28,7 @@ module Nobject
28
28
 
29
29
  begin
30
30
  @socket.send([msg_bytes.length].pack('Q>'), 0)
31
- File.open('/tmp/nobject.log', 'a') {|f| f.puts " LMS:#{@msg_counter += 1} #{msg_bytes.length}"; f.flush }
31
+ File.open('/tmp/nobject.log', 'a') {|f| f.puts " LMS:##{@msg_counter += 1} sz#{msg_bytes.length}"; f.flush }
32
32
  @socket.send(msg_bytes, 0)
33
33
  rescue Exception
34
34
  raise Local::MethodRequestFailure.new("did not receive response from call to `#{method}' over the network")
@@ -36,7 +36,7 @@ module Nobject
36
36
 
37
37
  return_data = begin
38
38
  msg_size = @socket.recv(8).unpack('Q>').first
39
- File.open('/tmp/nobject.log', 'a') {|f| f.puts " LMGotit :#{@msg_counter += 1} #{msg_size}"; f.flush }
39
+ File.open('/tmp/nobject.log', 'a') {|f| f.puts " LMGotit :##{@msg_counter += 1} sz#{msg_size}"; f.flush }
40
40
  Marshal.load(@socket.recv(msg_size))
41
41
  rescue Exception
42
42
  raise Local::MethodResponseFailure.new("did not receive response from call to `#{method}' over the network")
@@ -7,7 +7,7 @@ module Nobject
7
7
  @msg_counter = 0
8
8
  @socket = socket
9
9
  obj_size = @socket.recv(8).unpack('Q>').first
10
- File.open('/tmp/nobject.log', 'a') {|f| f.puts "R:#{@msg_counter += 1} #{obj_size}"; f.flush }
10
+ File.open('/tmp/nobject.log', 'a') {|f| f.puts "R:##{@msg_counter += 1} sz#{obj_size}"; f.flush }
11
11
  @obj = Marshal.load(@socket.recv(obj_size))
12
12
  end
13
13
 
@@ -15,7 +15,7 @@ module Nobject
15
15
  Thread.new do
16
16
  loop do
17
17
  msg_size = @socket.recv(8).unpack('Q>').first
18
- File.open('/tmp/nobject.log', 'a') {|f| f.puts " RMR:#{@msg_counter += 1} #{msg_size}"; f.flush }
18
+ File.open('/tmp/nobject.log', 'a') {|f| f.puts " RMR:##{@msg_counter += 1} sz#{msg_size}"; f.flush }
19
19
  msg = Marshal.load(@socket.recv(msg_size))
20
20
 
21
21
  result = @obj.send(msg[:method], *msg[:args])
@@ -31,7 +31,7 @@ module Nobject
31
31
  data_bytes = Marshal.dump(data)
32
32
 
33
33
  @socket.send([data_bytes.length].pack('Q>'), 0)
34
- File.open('/tmp/nobject.log', 'a') {|f| f.puts " RMResult:#{@msg_counter += 1} #{data_bytes.length}"; f.flush }
34
+ File.open('/tmp/nobject.log', 'a') {|f| f.puts " RMResult:##{@msg_counter += 1} sz#{data_bytes.length}"; f.flush }
35
35
  @socket.send(data_bytes, 0)
36
36
  end
37
37
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt