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
ruby-1.9.2-p0 > b = Blog.create(:title => "This is blog") | |
=> #<Blog _id: 4d529be33e4dd32664000002, title: "This is blog"> | |
ruby-1.9.2-p0 > Blog.count | |
=> 1 | |
ruby-1.9.2-p0 > b.comments.create(:body => "This is body") | |
=> #<Comment _id: 4d529bf63e4dd32664000003, body: "This is body"> | |
ruby-1.9.2-p0 > b.comments.count | |
=> 1 | |
ruby-1.9.2-p0 > reload! | |
Reloading... |
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
ruby-1.9.2-p0 > b = Blog.first | |
=> #<Blog _id: 4d529be33e4dd32664000002, title: "This is blog"> | |
ruby-1.9.2-p0 > b.comments.length | |
=> 0 | |
ruby-1.9.2-p0 > b.comments.create(:body => "New body again") | |
=> #<Comment _id: 4d529f0c3e4dd329a9000001, body: "New body again"> | |
ruby-1.9.2-p0 > b.comments.count | |
=> 1 | |
ruby-1.9.2-p0 > b.comments.clear | |
=> [] |
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
test_apps/issue_2383 git:(master)* bundle install --without development test assets jruby-1.6.3 | |
Using rake (0.9.2) | |
Using multi_json (1.0.3) | |
Using activesupport (3.1.0.rc5) | |
Using bcrypt-ruby (2.1.4) | |
Using builder (3.0.0) | |
Using i18n (0.6.0) | |
Using activemodel (3.1.0.rc5) | |
Using erubis (2.7.0) | |
Using rack (1.3.2) |
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
ubuntu@srv-zcq3y:~/clones/rails/activerecord$ gem install json | |
Fetching: json-1.6.0-java.gem (100%) | |
Successfully installed json-1.6.0-java | |
1 gem installed | |
ubuntu@srv-zcq3y:~/clones/rails/activerecord$ irb | |
jruby-1.6.4 :001 > require 'rubygems' | |
=> true | |
jruby-1.6.4 :002 > require 'json' | |
NameError: uninitialized constant JSON::Ext::Parser | |
from org/jruby/RubyModule.java:2569:in `const_missing' |
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/actionpack/lib/action_dispatch/routing/mapper.rb b/actionpack/lib/action_dispatch/routing/mapper.rb | |
index bb0441c..f66d28b 100644 | |
--- a/actionpack/lib/action_dispatch/routing/mapper.rb | |
+++ b/actionpack/lib/action_dispatch/routing/mapper.rb | |
@@ -1014,10 +1014,10 @@ module ActionDispatch | |
member do | |
get :edit if parent_resource.actions.include?(:edit) | |
get :show if parent_resource.actions.include?(:show) | |
- delete :destroy if parent_resource.actions.include?(:destroy) | |
if parent_resource.actions.include?(:update) |
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
build_user@Ubuntu-1004-lucid-64-minimal:~/clones/rails$ bundle install --path bundle | |
Fetching git://github.com/rails/journey.git | |
Fetching gem metadata from https://rubygems.org/.JRuby limited openssl loaded. http://jruby.org/openssl | |
gem install jruby-openssl for full support. | |
Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks! | |
LoadError: OpenSSL::SSL requires the jruby-openssl gem | |
(root) at /home/build_user/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb:8 | |
use_ssl= at /home/build_user/.rvm/rubies/jruby-1.6.7/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb:124 | |
ssl at /home/build_user/.rvm/gems/jruby-1.6.7@global/gems/bundler-1.1.3/lib/bundler/vendor/net/http/persistent.rb:448 | |
conne |
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
checkouts/rails git:(master)> rvm ruby-head ruby-1.9.3-p125 | |
checkouts/rails git:(master)> ruby -v ruby-head | |
ruby 2.0.0dev (2012-04-28 trunk 35487) [x86_64-darwin11.3.0] | |
checkouts/rails git:(master)> gem -v ruby-head | |
/Users/arunagw/.rvm/rubies/ruby-head/bin/gem:4: warning: Insecure world writable dir /usr/local in PATH, mode 040777 | |
1.8.24 | |
checkouts/rails git:(master)> bundle update ruby-head | |
/Users/arunagw/.rvm/gems/ruby-head/ |
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-1.6.7.2 :009 > s = "Foo" | |
=> "Foo" | |
jruby-1.6.7.2 :010 > s.encode(s.encoding, :xml => :attr) | |
=> "Foo" | |
jruby-1.6.7.2 :011 > | |
1.9.3p194 :021 > s = "Foo" | |
=> "Foo" | |
1.9.3p194 :022 > s.encode(s.encoding, :xml => :attr) |
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
gem 'activerecord-jdbc-adapter', :path => "/Users/arunagw/checkouts/activerecord-jdbc-adapter" | |
gem 'activerecord-jdbcsqlite3-adapter', :path => "/Users/arunagw/checkouts/activerecord-jdbc-adapter/activerecord-jdbcsqlite3-adapter" |
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 "rubygems" | |
require "rake" | |
require "rake/tasklib" | |
require "colored" | |
require "fileutils" | |
#require 'mysql' | |
#require 'jdbc-mysql' | |
OlderNewer