nobject 1.0.0 → 1.0.1

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: 8c44de9099814f0327fda7a884decbc6d497f43c071cc284da9ead26b3f2af1a
4
- data.tar.gz: e1ecc6b707af2c069e8e7a09e2c47063a6d1d2c73f4a6735d541f8fbb4a0abaf
3
+ metadata.gz: 99e7b2b83952e588a823fc66b9f9591d380e6b15ec6befc7a500f9175b708be3
4
+ data.tar.gz: 73520de71d444c9ce29d3a713a251c5135575c2d7ebe523d1425dcc5455424be
5
5
  SHA512:
6
- metadata.gz: 6770a322292eee28e9bbc9a3cccb0715443beeaba48abeed033c7108ae741a6d8b809eab6511a4f55a133fa9d697d11b322073c034c4efea26bc84c5b0832c82
7
- data.tar.gz: 0dada952eaef1de493b835fddff04b89ea5c0401ba989a45dadcb2ba0092d9730ae02cdabf679a5678ea39b49182e3730dfcb6ccaaba1e3d37eab8dad573de12
6
+ metadata.gz: 2cf62524464081dd0e49ff651c1f0ee817ab566c6cbe5666446f793cea4a6f143b7c41bd7e1f6c8030a36c7a646aceb4f8069dc0f30558f42f97b26b78444c21
7
+ data.tar.gz: a9e42da33528635173f4af66621b0e5aa81830371a091b1df0072d2f31c42a2dc5fedc346a83c26c62e62205116b67a7398d1d1d0507b167481f74ac358fd2a4
@@ -5,6 +5,9 @@ require_relative './nobject'
5
5
  # this class listens for incoming requests to store an object over the network,
6
6
  # accepts connections and then hands those sockets off to server object storage
7
7
  # and invocation.
8
+ #
9
+ # ex:
10
+ # NobjectServer.new(1234).start!
8
11
  class NobjectServer
9
12
  def initialize(port)
10
13
  @server = TCPServer.new(port)
data/lib/proxy_nobject.rb CHANGED
@@ -6,6 +6,10 @@ class ProxyNobject
6
6
  # host: the hostname of the server to push obj to
7
7
  # port: the port number of the server to push obj to
8
8
  # obj: the obj to store over the network
9
+ #
10
+ # ex:
11
+ # # this will create a new ProxyNobject, then put it to the specified server
12
+ # ProxyNobject.new('localhost', 1234, <object>)
9
13
  def initialize(host, port, obj)
10
14
  @socket = TCPSocket.new(host, port)
11
15
  obj_bytes = Marshal.dump(obj)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Lunt
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-31 00:00:00.000000000 Z
10
+ date: 2025-04-09 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: network-hosted objects that you can call methods on as if they were local
13
13
  email: jefflunt@gmail.com