sam / do fork watch download tarball
public
Rubygem
Description: DataObjects
Homepage: http://rubyforge.org/projects/dorb
Clone URL: git://github.com/sam/do.git
Search Repo:
Small tweaks for data_objects to work with Rubinius

* Ignoring .rbc files
* Default logger uses a symbol for error level
Mon May 12 21:18:06 -0700 2008
commit  a836ad14f12befb63dbb19162763653fc98fd59d
tree    8b38055023cfefe7b442ee6f2852e38ed5a913e6
parent  42bb9452cf34de166fba7d98d1d66369f5a727ad
...
10
11
12
 
...
10
11
12
13
0
@@ -10,4 +10,5 @@
0
 nbproject
0
 *.*~
0
 *.*#
0
+*.rbc
...
6
7
8
9
10
11
12
13
...
6
7
8
 
 
9
10
11
0
@@ -6,8 +6,6 @@
0
 rescue LoadError
0
 end
0
 
0
-require 'logger'
0
-
0
 module DataObjects
0
   class Connection
0
 
...
194
195
196
197
 
198
199
...
194
195
196
 
197
198
199
0
@@ -194,7 +194,7 @@
0
   end # class Logger
0
   
0
   # HACK: Not cross-platform
0
- DeadLogger = Logger.new(File.open('/dev/null', 'w'), 7)
0
+ DeadLogger = Logger.new(File.open('/dev/null', 'w'), :fatal)
0
   
0
 end # module DataObjects
...
 
1
2
3
4
...
46
47
48
49
50
51
52
53
 
 
 
 
54
55
56
...
1
2
3
4
5
...
47
48
49
 
50
51
 
 
52
53
54
55
56
57
58
0
@@ -1,3 +1,4 @@
0
+require File.expand_path(File.join(File.dirname(__FILE__), '..', 'spec_helper'))
0
 require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'data_objects', 'support', 'pooling')
0
 require 'timeout'
0
 
0
0
@@ -46,11 +47,12 @@
0
   end
0
   
0
   it "should raise an error if the target object doesn't implement a `dispose' method" do
0
- lambda do
0
       class Durian
0
         include Object::Pooling
0
- end.new
0
- end.should raise_error(Object::Pooling::MustImplementDisposeError)
0
+ end
0
+ lambda do
0
+ Durian.new
0
+ end.should raise_error(Object::Pooling::MustImplementDisposeError)
0
   end
0
   
0
   it "should be able to aquire an object" do

Comments

    No one has commented yet.