uu 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
2
  SHA256:
3
- metadata.gz: 7717f2099099eab9e82d072b956482bf5385e42c23da4e5ca3ca0ee7e68add65
4
- data.tar.gz: 5d33bc23abf19deee81d3387fc5136eb7dd6d26aaf7800312ef9a6c4bc076f7a
3
+ metadata.gz: f7023bef5e1ac4552b55961c4c06ee1208176f6c98ecf229272a7838d1fb44b3
4
+ data.tar.gz: 3a87f44e5294518151735954eb095028d564ae039709e13d3b77d964d0f46506
5
5
  SHA512:
6
- metadata.gz: 31309e9312993e2a6e2d905fe75772aacaa7e0638a57d4ee8ef39c85bb05f66eab86b76c70ed5b9653eac32727b802a585744ad37f81f729d0ee583aff9914b1
7
- data.tar.gz: 12e53c040bc00db454646a76ddc34972c1d9aeeacdea79f8a842b73347ea71e2fe2d1a9bb7ae6a4ccbba71a88d2aea064bcb370206822df41fae3a848f9a82e5
6
+ metadata.gz: 587ab7cbf357afeb0f4f2d0005207f08e24623f323d6635899b74c91ed6262877d3b7d25f84858d709344f40b4acaac0307a727c14a27d582dc617f342483ce3
7
+ data.tar.gz: c80f5308e135f0a3e7b0a7ee161afc39423d91ab0992bfa21032c860edf175a104b4778bdf7cbb746a29bb59939a378440052d7a72ad2c77887679152689380c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- uu (0.1.2)
4
+ uu (0.1.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'drb'
4
4
 
5
- Class.include DRb::DRbUndumped
5
+ Class.include UU::Remotable
6
6
 
7
7
  module DRb
8
8
  class DRbObject
data/lib/uu.rb CHANGED
@@ -3,6 +3,7 @@
3
3
  require 'uu/version'
4
4
 
5
5
  module UU
6
+ autoload :Remotable, 'uu/remotable'
6
7
  autoload :RemoteServer, 'uu/remote_server'
7
8
  autoload :Remote, 'uu/remote'
8
9
  end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'drb'
4
+
5
+ module UU
6
+ module Remotable
7
+ def self.included(mod)
8
+ mod.include(DRb::DRbUndumped) if server
9
+ end
10
+
11
+ attr_accessor :server
12
+ module_function :server, :server=
13
+ self.server = false
14
+ end
15
+ end
data/lib/uu/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module UU
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uu
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
  - Minwoo Lee
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-10 00:00:00.000000000 Z
11
+ date: 2018-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -201,6 +201,7 @@ files:
201
201
  - lib/drb/http0helper.rb
202
202
  - lib/drb/http0serv.rb
203
203
  - lib/uu.rb
204
+ - lib/uu/remotable.rb
204
205
  - lib/uu/remote.rb
205
206
  - lib/uu/remote_server.rb
206
207
  - lib/uu/version.rb
@@ -225,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
225
226
  version: '0'
226
227
  requirements: []
227
228
  rubyforge_project:
228
- rubygems_version: 2.7.6
229
+ rubygems_version: 2.7.3
229
230
  signing_key:
230
231
  specification_version: 4
231
232
  summary: UU