slave 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
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
- ./lib/slave.rb:458:in `initialize': undefined method `typo' for #<Server:0xb7567fa4> (NoMethodError)
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
- 30103
196
- 30104
197
- ./lib/slave.rb:458:in `initialize': undefined local variable or method `fubar' for main:Object (NameError)
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"=>30122, "this"=>30121}
293
- {"that"=>[30123, Fri Dec 08 08:32:37 MST 2006], "this"=>[30121, Fri Dec 08 08:32:35 MST 2006]}
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
@@ -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.
@@ -40,7 +40,7 @@ require 'sync'
40
40
  #
41
41
  class Slave
42
42
  #--{{{
43
- VERSION = '1.2.0'
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? m
141
- ex{ @object.respond_to? m }
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.0'
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? m
141
- ex{ @object.respond_to? m }
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.8.11
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.0
7
- date: 2006-12-08 00:00:00.000000 -07:00
6
+ version: 1.2.1
7
+ date: 2007-04-27 00:00:00 -06:00
8
8
  summary: slave
9
9
  require_paths:
10
- - lib
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
- - !ruby/object:Gem::Version
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
- - Ara T. Howard
30
+ - Ara T. Howard
31
31
  files:
32
- - install.rb
33
- - test.old
34
- - lib
35
- - README
36
- - rdoc.cmd
37
- - gemspec.rb
38
- - samples
39
- - README.tmpl
40
- - gen_readme.rb
41
- - doc
42
- - test.old/slave.rb
43
- - lib/slave.rb
44
- - lib/slave-1.2.0.rb
45
- - samples/a.rb
46
- - samples/b.rb
47
- - samples/c.rb
48
- - samples/d.rb
49
- - samples/e.rb
50
- - samples/f.rb
51
- - samples/g.rb
52
- - doc/created.rid
53
- - doc/dot
54
- - doc/rdoc-style.css
55
- - doc/files
56
- - doc/classes
57
- - doc/fr_file_index.html
58
- - doc/fr_class_index.html
59
- - doc/fr_method_index.html
60
- - doc/index.html
61
- - doc/dot/f_0.dot
62
- - doc/dot/f_0.jpg
63
- - doc/dot/f_1.dot
64
- - doc/dot/f_1.jpg
65
- - doc/files/lib
66
- - doc/files/README.html
67
- - doc/files/lib/slave_rb.html
68
- - doc/classes/o.html
69
- - doc/classes/Slave.html
70
- - doc/classes/Slave
71
- - doc/classes/Slave/ThreadSafe.html
72
- - doc/classes/Slave/LifeLine.html
73
- - doc/classes/Slave/ThreadSafeHash.html
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
- dependencies: []
86
+
87
+ dependencies: []
88
+