slave 1.2.0 → 1.2.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.
- data/README +14 -6
- data/README.tmpl +4 -0
- data/lib/{slave-1.2.0.rb → slave-1.2.1.rb} +4 -4
- data/lib/slave.rb +4 -4
- data/slave-1.2.1.gem +0 -0
- metadata +60 -52
data/README
CHANGED
@@ -39,6 +39,10 @@ URIS
|
|
39
39
|
|
40
40
|
HISTORY
|
41
41
|
|
42
|
+
1.2.1:
|
43
|
+
- jruby/ThreadSafe patches from skaar and ez. using slave.rb with jruby,
|
44
|
+
how is that!?
|
45
|
+
|
42
46
|
1.2.0:
|
43
47
|
- cleaned up a bunch of warnings. thanks eric kolve <ekolve@gmail.com>
|
44
48
|
for reporting them.
|
@@ -159,7 +163,9 @@ SAMPLES
|
|
159
163
|
~ > ruby samples/b.rb
|
160
164
|
|
161
165
|
:postgresql
|
162
|
-
|
166
|
+
samples/b.rb:22: undefined method `typo' for #<Server:0xb756ed18> (NoMethodError)
|
167
|
+
from ./lib/slave.rb:369:in `[]'
|
168
|
+
from ./lib/slave.rb:369:in `initialize'
|
163
169
|
from samples/b.rb:22:in `new'
|
164
170
|
from samples/b.rb:22
|
165
171
|
|
@@ -192,9 +198,11 @@ SAMPLES
|
|
192
198
|
|
193
199
|
~ > ruby samples/c.rb
|
194
200
|
|
195
|
-
|
196
|
-
|
197
|
-
|
201
|
+
7971
|
202
|
+
7972
|
203
|
+
samples/c.rb:21: undefined local variable or method `fubar' for main:Object (NameError)
|
204
|
+
from ./lib/slave.rb:361:in `call'
|
205
|
+
from ./lib/slave.rb:361:in `initialize'
|
198
206
|
from samples/c.rb:21:in `new'
|
199
207
|
from samples/c.rb:21
|
200
208
|
|
@@ -289,6 +297,6 @@ SAMPLES
|
|
289
297
|
|
290
298
|
~ > ruby samples/g.rb
|
291
299
|
|
292
|
-
{"that"=>
|
293
|
-
{"that"=>[
|
300
|
+
{"that"=>7990, "this"=>7989}
|
301
|
+
{"that"=>[7991, Fri, Apr 27 2007 16:38:30 -0600], "this"=>[7989, Fri, Apr 27 2007 16:38:28 -0600]}
|
294
302
|
|
data/README.tmpl
CHANGED
@@ -40,7 +40,7 @@ require 'sync'
|
|
40
40
|
#
|
41
41
|
class Slave
|
42
42
|
#--{{{
|
43
|
-
VERSION = '1.2.
|
43
|
+
VERSION = '1.2.1'
|
44
44
|
def self.version() VERSION end
|
45
45
|
#
|
46
46
|
# env config
|
@@ -126,7 +126,7 @@ require 'sync'
|
|
126
126
|
#
|
127
127
|
class ThreadSafe
|
128
128
|
#--{{{
|
129
|
-
instance_methods.each{|m| undef_method unless m[%r/__/]}
|
129
|
+
instance_methods.each{|m| undef_method m.to_sym unless m[%r/__/]}
|
130
130
|
def initialize object
|
131
131
|
@object = object
|
132
132
|
@sync = Sync.new
|
@@ -137,8 +137,8 @@ require 'sync'
|
|
137
137
|
def method_missing m, *a, &b
|
138
138
|
ex{ @object.send m, *a, &b }
|
139
139
|
end
|
140
|
-
def respond_to?
|
141
|
-
ex{ @object.respond_to?
|
140
|
+
def respond_to? *a, &b
|
141
|
+
ex{ @object.respond_to? *a, &b }
|
142
142
|
end
|
143
143
|
def inspect
|
144
144
|
ex{ @object.inspect }
|
data/lib/slave.rb
CHANGED
@@ -40,7 +40,7 @@ require 'sync'
|
|
40
40
|
#
|
41
41
|
class Slave
|
42
42
|
#--{{{
|
43
|
-
VERSION = '1.2.
|
43
|
+
VERSION = '1.2.1'
|
44
44
|
def self.version() VERSION end
|
45
45
|
#
|
46
46
|
# env config
|
@@ -126,7 +126,7 @@ require 'sync'
|
|
126
126
|
#
|
127
127
|
class ThreadSafe
|
128
128
|
#--{{{
|
129
|
-
instance_methods.each{|m| undef_method unless m[%r/__/]}
|
129
|
+
instance_methods.each{|m| undef_method m.to_sym unless m[%r/__/]}
|
130
130
|
def initialize object
|
131
131
|
@object = object
|
132
132
|
@sync = Sync.new
|
@@ -137,8 +137,8 @@ require 'sync'
|
|
137
137
|
def method_missing m, *a, &b
|
138
138
|
ex{ @object.send m, *a, &b }
|
139
139
|
end
|
140
|
-
def respond_to?
|
141
|
-
ex{ @object.respond_to?
|
140
|
+
def respond_to? *a, &b
|
141
|
+
ex{ @object.respond_to? *a, &b }
|
142
142
|
end
|
143
143
|
def inspect
|
144
144
|
ex{ @object.inspect }
|
data/slave-1.2.1.gem
ADDED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.
|
2
|
+
rubygems_version: 0.9.2
|
3
3
|
specification_version: 1
|
4
4
|
name: slave
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 1.2.
|
7
|
-
date:
|
6
|
+
version: 1.2.1
|
7
|
+
date: 2007-04-27 00:00:00 -06:00
|
8
8
|
summary: slave
|
9
9
|
require_paths:
|
10
|
-
|
10
|
+
- lib
|
11
11
|
email: ara.t.howard@noaa.gov
|
12
12
|
homepage: http://codeforpeople.com/lib/ruby/slave/
|
13
13
|
rubyforge_project:
|
@@ -18,63 +18,71 @@ bindir: bin
|
|
18
18
|
has_rdoc: true
|
19
19
|
required_ruby_version: !ruby/object:Gem::Version::Requirement
|
20
20
|
requirements:
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
version: 0.0.0
|
21
|
+
- - ">"
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 0.0.0
|
25
24
|
version:
|
26
25
|
platform: ruby
|
27
26
|
signing_key:
|
28
27
|
cert_chain:
|
28
|
+
post_install_message:
|
29
29
|
authors:
|
30
|
-
|
30
|
+
- Ara T. Howard
|
31
31
|
files:
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
32
|
+
- install.rb
|
33
|
+
- test.old
|
34
|
+
- test.old/slave.rb
|
35
|
+
- lib
|
36
|
+
- lib/slave.rb
|
37
|
+
- lib/slave-1.2.1.rb
|
38
|
+
- README
|
39
|
+
- rdoc.cmd
|
40
|
+
- gemspec.rb
|
41
|
+
- samples
|
42
|
+
- samples/a.rb
|
43
|
+
- samples/b.rb
|
44
|
+
- samples/c.rb
|
45
|
+
- samples/d.rb
|
46
|
+
- samples/e.rb
|
47
|
+
- samples/f.rb
|
48
|
+
- samples/g.rb
|
49
|
+
- README.tmpl
|
50
|
+
- gen_readme.rb
|
51
|
+
- doc
|
52
|
+
- doc/created.rid
|
53
|
+
- doc/dot
|
54
|
+
- doc/dot/f_0.dot
|
55
|
+
- doc/dot/f_0.jpg
|
56
|
+
- doc/dot/f_1.dot
|
57
|
+
- doc/dot/f_1.jpg
|
58
|
+
- doc/rdoc-style.css
|
59
|
+
- doc/files
|
60
|
+
- doc/files/lib
|
61
|
+
- doc/files/lib/slave_rb.html
|
62
|
+
- doc/files/README.html
|
63
|
+
- doc/classes
|
64
|
+
- doc/classes/o.html
|
65
|
+
- doc/classes/Slave.html
|
66
|
+
- doc/classes/Slave
|
67
|
+
- doc/classes/Slave/ThreadSafe.html
|
68
|
+
- doc/classes/Slave/LifeLine.html
|
69
|
+
- doc/classes/Slave/ThreadSafeHash.html
|
70
|
+
- doc/fr_file_index.html
|
71
|
+
- doc/fr_class_index.html
|
72
|
+
- doc/fr_method_index.html
|
73
|
+
- doc/index.html
|
74
|
+
- slave-1.2.1.gem
|
74
75
|
test_files: []
|
76
|
+
|
75
77
|
rdoc_options: []
|
78
|
+
|
76
79
|
extra_rdoc_files: []
|
80
|
+
|
77
81
|
executables: []
|
82
|
+
|
78
83
|
extensions: []
|
84
|
+
|
79
85
|
requirements: []
|
80
|
-
|
86
|
+
|
87
|
+
dependencies: []
|
88
|
+
|