Skip to content

Instantly share code, notes, and snippets.

View myabc's full-sized avatar

Alexander Brandon Coles myabc

  • London, England
  • 04:22 (UTC +01:00)
View GitHub Profile
diff --git a/config/router.rb b/config/router.rb
index e128a6a..23b9686 100644
--- a/config/router.rb
+++ b/config/router.rb
@@ -32,14 +32,23 @@ Merb::Router.prepare do
# Adds the required routes for merb-auth using the password slice
slice(:merb_auth_slice_password, :name_prefix => nil, :path_prefix => "", :path => "blog/admin")
-
+
[alexbcoles@mondiale dm-core (next)]$ ADAPTERS=mysql jruby -S rake spec
(in /Users/alexbcoles/git-repos/dm-core)
/usr/local/jruby-1.1.6/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake/gempackagetask.rb:13:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009.
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
..............*....................**..........*.*.......*....*..***..................................................................................................*....*....*....*.......................*.........................................................................................................****......................................................................
DataMapper::Collection with mysql#slice with a positive offset and length
- should return the expected Resource (FAILED - 1)
1)
MySQL
122 examples, 1 failure, 1 pending
Postgres
128 examples, 6 failures, 1 pending
SQLite3
98 examples, 0 failures
diff --git a/do_jdbc/src/java/data_objects/Connection.java b/do_jdbc/src/java/data_objects/Connection.java
index bce16f2..bc4c310 100644
--- a/do_jdbc/src/java/data_objects/Connection.java
+++ b/do_jdbc/src/java/data_objects/Connection.java
@@ -8,6 +8,7 @@ import java.sql.SQLException;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
+import java.util.Properties;
import java.util.StringTokenizer;
-- cleanup typecasting code:
currently a mess of switch statements and ifs.. needs refactoring, a cleaner
way of type "negotiation".
-- fix for null-handling:
underlying JDBC Driver expects a JDBC Type to be passed along with a NULL
-- implement parameterized types (see above)
-- unit tests / implementation testing (use JUnit, JtestR (?))
1)
NoMethodError in 'DataMapper::Collection with mysql#slice with a positive offset and length should return the expected Resource'
undefined method `debug' for #<Spec::Example::ExampleGroup::Subclass_2::Subclass_1::Subclass_32::Subclass_2:0x1c5825>
/Users/alexbcoles/git-repos/dm-core/spec/public/shared/collection_shared_spec.rb:1952:
:1
2)
'DataMapper::Collection with mysql#slice with a positive offset and length should orphan the Resources' FAILED
expected equal?([#<Article @id=2 @title="Sample Article" @content=<not loaded> @original_id=1>, #<Article @id=nil @title=nil @content=<not loaded> @original_id=nil>, #<Article @id=nil @title=nil @content=<not loaded> @original_id=nil>, #<Article @id=nil @title=nil @content=<not loaded> @original_id=nil>, #<Article @id=nil @title=nil @content=<not loaded> @original_id=nil>, #<Article @id=nil @title=nil @content=<not loaded> @original_id=nil>, #<Article @id=nil @title=nil @content=<not loaded> @original_id=nil>, #<Article @id=nil @title=nil @content=<not loaded> @
jruby -S rake spec
(in /Users/alexbcoles/git-repos/dm-core)
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
Could not connect to the database using "sqlite3::memory:" because: #<ArgumentError: Malformed URI: java.net.URISyntaxException: Relative path in absolute URI: sqlite://:memory:>
redefining Driver
/usr/local/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:74 warning: already initialized constant Driver
..............*....................*.................F..*FF..F..FFF..F.......*......................................**....**....**....**..........*.*.......*..........*.*.......*..........*F*..F..FF*..FF......*.*.....F.*....*..***....*..***FF.*F.*F*....*..***........................................................*****.....................................*....*....*....*.......................*.........................................................................................................****...........
[alexbcoles@mondiale dm-core (master)]$ ADAPTER=mysql jruby -S rake spec
(in /Users/alexbcoles/git-repos/dm-core)
JRuby limited openssl loaded. gem install jruby-openssl for full support.
http://wiki.jruby.org/wiki/JRuby_Builtin_OpenSSL
redefining Driver
/usr/local/jruby/lib/ruby/site_ruby/1.8/builtin/javasupport/core_ext/object.rb:74 warning: already initialized constant Driver
FF....*F..FF...F.F...F..FFAn expectation of :reload was set on nil. Called from /Users/alexbcoles/git-repos/dm-core/spec/integration/association_spec.rb:504. Use allow_message_expectations_on_nil to disable warnings.
FFF..FFFF.FF..FFF.....FFFFFFFFFFFFFFF..FFFFF.FFF**FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF...F.F.........*.....FF...............FF......FF..FF.F..FF.F...F......F.....*..........FFFFFFF.FF....*......F........*.....FF...............FF......FF..FF.F..FF.F...F......F.....*..........FFFFFFF.FF....*......F...............FFFFFFFF.......F................*...................*......F........FFF....................*...
On OS X:
ssh myserver -D 10080
svn checkout http://dsocks.googlecode.com/svn/trunk/ dsocks
cd dsocks
bsdmake && sudo bsdmake install
cp dsocks.sh ~/bin/dsocks
dsocks svn ls http://secretsite/svn/secretproject/trunk
String
String
String
String
NilClass
NilClass
String
String
String
String