[jruby-dev] [jira] Created: (JRUBY-1214) The behaviour of File.flock is not same with C Ruby

2007-07-16 Thread Li Xiao (JIRA)
The behaviour of File.flock is not same with C Ruby --- Key: JRUBY-1214 URL: http://jira.codehaus.org/browse/JRUBY-1214 Project: JRuby Issue Type: Bug Components: Core Classes/Modules

Re: [jruby-dev] Example persistence code

2007-07-16 Thread Alan McKean
Here is the update API include Persistence persistent 'people', 'employees', 'children' person = Person.new('Alan') employee = Employee.new('Bob', 12345) txn people << person employees << employee person.children = Array.new employee.children = Array.new person.children << Person.new('

[jruby-dev] [jira] Created: (JRUBY-1213) Something wrong with 'require' handling or with ActiveSupport code interpretation (?)

2007-07-16 Thread George Khromchenko (JIRA)
Something wrong with 'require' handling or with ActiveSupport code interpretation (?) - Key: JRUBY-1213 URL: http://jira.codehaus.org/browse/JRUBY-1213 Project: JRuby

[jruby-dev] JRuby Inside site launches

2007-07-16 Thread Charles Oliver Nutter
This is pretty cool news. Peter Cooper has launched a "sister site" to Ruby Inside for JRuby: http://www.dzone.com/rsslinks/jruby_inside_daily_jruby_news_items_and_links_136.html http://www.jrubyinside.com It looks like an outstanding aggregator of articles, blog posts, and wikis all about JR

Re: [jruby-dev] Example persistence code

2007-07-16 Thread Charles Oliver Nutter
Alan McKean wrote: I like your suggestions to make it more Rubyish. I will fix it up.I only did it (created an instance variable @people) because I knew how to do it. Is people (in your example) a local variable and is there an API for creating locals? people gets created as an attribute: cl

Re: [jruby-dev] Example persistence code

2007-07-16 Thread Alan McKean
I like your suggestions to make it more Rubyish. I will fix it up.I only did it (created an instance variable @people) because I knew how to do it. Is people (in your example) a local variable and is there an API for creating locals? BTW, this API is wholly my design and I am not nearly as

[jruby-dev] [jira] Created: (JRUBY-1212) Serialization/Persistence Fix

2007-07-16 Thread Alan McKean (JIRA)
Serialization/Persistence Fix - Key: JRUBY-1212 URL: http://jira.codehaus.org/browse/JRUBY-1212 Project: JRuby Issue Type: Bug Components: Java Integration Affects Versions: JRuby 1.0.0 R

Re: [jruby-dev] A choice of two serialization/persistence strategies

2007-07-16 Thread Charles Oliver Nutter
Alan McKean wrote: I currently have two strategies implemented for serialization and persistence. Both require storing the runtime in a thread local variable 'currentRuntime'. They fetch the runtime from there when they need it via a Ruby.getCurrentRuntime() call. I would like to hear your cr

Re: [jruby-dev] How to wrap a Java class for use in Ruby?

2007-07-16 Thread Nick Sieger
On 7/15/07, Alan McKean <[EMAIL PROTECTED]> wrote: We use a concurrent HashMap in our persistence to control concurrent access to the persistent object by multiple users. It's called CuHashMap. I assume that I need to create a RubyClass that dispatches to it because I get a NullPointerException

Re: [jruby-dev] How to wrap a Java class for use in Ruby?

2007-07-16 Thread Charles Oliver Nutter
Alan McKean wrote: We use a concurrent HashMap in our persistence to control concurrent access to the persistent object by multiple users. It's called CuHashMap. I assume that I need to create a RubyClass that dispatches to it because I get a NullPointerException (no metaclass) when I try to s

Re: [jruby-dev] Example persistence code

2007-07-16 Thread Charles Oliver Nutter
Alan McKean wrote: To write persistent objects require 'java' require 'employee' require 'persistence' include Persistence I presume you would normally include this into a custom type rather than into Object, but it's pretty convenient you can do this anywhere to gain persistence functional

[jruby-dev] [jira] Created: (JRUBY-1211) Hash should raise a RuntimeError when rehashed during iteration

2007-07-16 Thread Marcin Mielżyński (JIRA)
Hash should raise a RuntimeError when rehashed during iteration --- Key: JRUBY-1211 URL: http://jira.codehaus.org/browse/JRUBY-1211 Project: JRuby Issue Type: Bug Componen

[jruby-dev] [jira] Created: (JRUBY-1210) Array#join behaves inconsistently on recursive arrays

2007-07-16 Thread Marcin Mielżyński (JIRA)
Array#join behaves inconsistently on recursive arrays - Key: JRUBY-1210 URL: http://jira.codehaus.org/browse/JRUBY-1210 Project: JRuby Issue Type: Bug Components: Core Classes/Mod

[jruby-dev] [jira] Created: (JRUBY-1209) Array#uniq, Array#|, Array#&, Array#- should be implemented in terms of RubyHash to actually use #eql? method on objects an array contains

2007-07-16 Thread Marcin Mielżyński (JIRA)
Array#uniq, Array#|, Array#&, Array#- should be implemented in terms of RubyHash to actually use #eql? method on objects an array contains -- Ke

[jruby-dev] [jira] Created: (JRUBY-1208) JRuby -v option is not compatible with Ruby

2007-07-16 Thread TAKAI Naoto (JIRA)
JRuby -v option is not compatible with Ruby --- Key: JRUBY-1208 URL: http://jira.codehaus.org/browse/JRUBY-1208 Project: JRuby Issue Type: Bug Components: Miscellaneous Affects Versions:

[jruby-dev] [jira] Created: (JRUBY-1207) jruby command does not work with -p option

2007-07-16 Thread TAKAI Naoto (JIRA)
jruby command does not work with -p option -- Key: JRUBY-1207 URL: http://jira.codehaus.org/browse/JRUBY-1207 Project: JRuby Issue Type: Bug Components: Miscellaneous Affects Versions: JR

[jruby-dev] [jira] Created: (JRUBY-1206) Form's with enctype="multipart/form-data" fail in JRuby/Rails

2007-07-16 Thread Selva Sarangan (JIRA)
Form's with enctype="multipart/form-data" fail in JRuby/Rails - Key: JRUBY-1206 URL: http://jira.codehaus.org/browse/JRUBY-1206 Project: JRuby Issue Type: Bug Affects Versions:

[jruby-dev] [jira] Created: (JRUBY-1205) String as condition of if be parsed as MatchNode

2007-07-16 Thread Ye Zheng (JIRA)
String as condition of if be parsed as MatchNode Key: JRUBY-1205 URL: http://jira.codehaus.org/browse/JRUBY-1205 Project: JRuby Issue Type: Bug Components: Parser Affects Version

Re: [jruby-dev] A bug about if

2007-07-16 Thread dreamhead
I've committed it to JIRA. http://jira.codehaus.org/browse/JRUBY-1205 2007/7/16, Charles Oliver Nutter <[EMAIL PROTECTED]>: Wow, that's a weird one. Looks like a job for Mr. Enebo...unless you have a patch handy :) Could you file a JIRA? - Charlie -