This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> @ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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*....*..***........................................................*****.....................................*....*....*....*.......................*.........................................................................................................****........... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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....................*... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String | |
String | |
String | |
String | |
NilClass | |
NilClass | |
String | |
String | |
String | |
String |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.test.web.view; | |
import java.util.Locale; | |
import org.springframework.beans.BeansException; | |
import org.springframework.context.ApplicationContext; | |
import org.springframework.core.Ordered; | |
import org.springframework.web.servlet.View; | |
import org.springframework.web.servlet.ViewResolver; | |
import org.springframework.web.servlet.view.BeanNameViewResolver; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'pathname' | |
require 'zlib' | |
# files and extensions to process | |
FILES = %w[ capfile CHANGELOG LICENSE Manifest MIT-LICENSE README QUICKLINKS README_FOR_APP RUNNING_UNIT_TESTS Rakefile SPECS TODO USAGE .autotest .gitignore .htaccess ].freeze | |
EXTENSIONS = %w[ builder cgi conf css deploy erb example fcgi feature gemspec haml htc htm html java js jsp key markdown opts php rake ratom rb rcsv rdf rhtml rjs rpdf ru rxml sake sass sh sql thor txt vcf xml yml ].freeze | |
Pathname.glob(ARGV).each do |path_in| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/do_jdbc/src/main/java/data_objects/Connection.java b/do_jdbc/src/main/java/data_objects/Connection.java | |
index f0ce819..b857a8e 100644 | |
--- a/do_jdbc/src/main/java/data_objects/Connection.java | |
+++ b/do_jdbc/src/main/java/data_objects/Connection.java | |
@@ -28,8 +28,7 @@ import org.jruby.runtime.ObjectAllocator; | |
import org.jruby.runtime.builtin.IRubyObject; | |
import data_objects.drivers.DriverDefinition; | |
-import java.util.regex.Matcher; | |
-import java.util.regex.Pattern; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In response to all the responses to: | |
http://twitter.com/rtomayko/status/1155906157 | |
You should never do this in a source file included with your library, | |
app, or tests: | |
require 'rubygems' | |
The system I use to manage my $LOAD_PATH is not your library/app/tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Install JRuby (tested with v.1.2.0 and 1.3.1) | |
* Install Addresable, Extlib, DataObjects (edge): | |
jruby -S gem install addressable | |
git clone git://github.com/datamapper/extlib && cd extlib | |
git checkout -b next --track origin/next | |
jruby -S rake install & cd .. | |
git clone git://github.com/datamapper/do && cd do |