This file contains hidden or 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
| require 'rubygems' | |
| gem 'dm-core', '0.10.2' | |
| gem 'do_sqlite3', '0.10.1.1' | |
| require 'dm-core' | |
| p DataMapper::VERSION | |
| require 'do_sqlite3/version' |
This file contains hidden or 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
| [INFO] Processing UsersController#index (for 0:0:0:0:0:0:0:1 at 2010-05-20 00:37:48) [GET] | |
| [INFO] Parameters: {"controller"=>"users", "action"=>"index"} | |
| [INFO] | |
| [INFO] TypeError (compared with non class/module): | |
| [INFO] target/wargems/gems/extlib-0.9.14/lib/extlib/hook.rb:264:in `execute_before_valid_ques_hook_stack' | |
| [INFO] target/wargems/gems/extlib-0.9.14/lib/extlib/hook.rb:298:in `valid?' | |
| [INFO] target/wargems/gems/extlib-0.9.14/lib/extlib/hook.rb:297:in `catch' | |
| [INFO] target/wargems/gems/extlib-0.9.14/lib/extlib/hook.rb:297:in `valid?' | |
| [INFO] target/wargems/gems/dm-validations-0.10.2/lib/dm-validations.rb:60:in `save_self' | |
| [INFO] target/wargems/gems/dm-core-0.10.2/lib/dm-core/resource.rb:912:in `_save' |
This file contains hidden or 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
| [WARNING] log4j:WARN No appenders could be found for logger (org.hibernate.cfg.annotations.Version). | |
| [WARNING] log4j:WARN Please initialize the log4j system properly. | |
| [INFO] DataMapperOrm::Tests::LoadPeople===================================== | |
| [INFO] DataMapperOrm::Tests::LoadPeople;1;0;0.230000;0.230000;0.229000;0.230000;0.230000;0.229000;1;1;10 | |
| [INFO] DataMapperOrm::Tests::LoadPeople;1;1;0.240000;0.240000;0.240000;0.240000;0.240000;0.240000;1;1;10 | |
| [INFO] DataMapperOrm::Tests::LoadPeople;0;0;0.084000;0.084000;0.084000;0.084000;0.084000;0.084000;1;1;10 | |
| [INFO] DataMapperOrm::Tests::LoadPeople;0;1;0.087000;0.087000;0.087000;0.087000;0.087000;0.087000;1;1;10 | |
| [INFO] DataMapperOrm::Tests::LoadPeople;1;0;0.819000;0.819000;0.819000;0.081900;0.081900;0.081900;10;1;10 | |
| [INFO] DataMapperOrm::Tests::LoadPeople;1;1;0.371000;0.371000;0.370000;0.037100;0.037100;0.037000;10;1;10 | |
| [INFO] DataMapperOrm::Tests::LoadPeople;0;0;0.388000;0.388000;0.389000;0.038800;0.038800;0.038900;10;1;10 |
This file contains hidden or 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
| require 'rubygems' | |
| require 'dm-core' | |
| require 'dm-migrations' | |
| $KCODE = 'u' | |
| DataMapper.setup(:default, 'sqlite:test') | |
| class A | |
| include DataMapper::Resource |
This file contains hidden or 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/src/main/ruby/jruby/rack/app_layout.rb b/src/main/ruby/jruby/rack/app_layout.rb | |
| index 293e824..ac4a6a2 100644 | |
| --- a/src/main/ruby/jruby/rack/app_layout.rb | |
| +++ b/src/main/ruby/jruby/rack/app_layout.rb | |
| @@ -69,7 +69,8 @@ module JRuby | |
| if path =~ /^#{rx}\// | |
| path.sub(/^#{rx}/, app_path) | |
| else | |
| - super | |
| + rel_path = File.expand_path(super('/') + path) |
This file contains hidden or 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/src/main/ruby/jruby/rack/app_layout.rb b/src/main/ruby/jruby/rack/app_layout.rb | |
| index ecdb074..d62cd8f 100644 | |
| --- a/src/main/ruby/jruby/rack/app_layout.rb | |
| +++ b/src/main/ruby/jruby/rack/app_layout.rb | |
| @@ -93,8 +93,8 @@ module JRuby | |
| class RailsFilesystemLayout < AppLayout | |
| def initialize(context) | |
| super(context) | |
| - @public_uri = context.getInitParameter("public.root") | |
| - @app_uri = context.getInitParameter("rails.root") |
This file contains hidden or 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
| $ time jruby -S rake -T | |
| rake about # List versions of all Rails frameworks and the env... | |
| rake db:create # Create the database from config/database.yml for ... | |
| rake db:drop # Drops the database for the current Rails.env (use... | |
| rake db:fixtures:load # Load fixtures into the current environment's data... | |
| rake db:migrate # Migrate the database (options: VERSION=x, VERBOSE... | |
| rake db:migrate:status # Display status of migrations | |
| rake db:rollback # Rolls the schema back to the previous version (sp... | |
| rake db:schema:dump # Create a db/schema.rb file that can be portably u... | |
| rake db:schema:load # Load a schema.rb file into the database |
This file contains hidden or 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
| $ time jruby -e 'puts "hi"'hi | |
| real 0m0.551s | |
| user 0m0.444s | |
| sys 0m0.104s | |
| $ time java -client -Xbootclasspath/a:/home/kristian/.m2/repository/org/jruby/jruby-complete/1.5.1/jruby-complete-1.5.1.jar org.jruby.Main -e 'puts "hi"' | |
| hi | |
| real 0m0.569s |
This file contains hidden or 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
| $ time mvn installWarning: JAVA_HOME environment variable is not set. | |
| [INFO] Scanning for projects... | |
| [INFO] | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] Building Ruby Tools 0.2-SNAPSHOT | |
| [INFO] ------------------------------------------------------------------------ | |
| [INFO] | |
| [INFO] --- maven-resources-plugin:2.4.2:resources (default-resources) @ ruby-tools --- | |
| [INFO] Using 'UTF-8' encoding to copy filtered resources. | |
| [INFO] Copying 7 resources |
This file contains hidden or 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
| source 'http://rubygems.org' | |
| gem 'rails', '3.0.0' | |
| # Bundle edge Rails instead: | |
| # gem 'rails', :git => 'git://github.com/rails/rails.git' | |
| gem 'mysql2' unless defined?(JRUBY_VERSION) | |
| gem "activerecord-jdbc-adapter" if defined?(JRUBY_VERSION) | |
| gem "jdbc-mysql", :require => false if defined?(JRUBY_VERSION) |