Re: [jruby-dev] Improving jruby-rack performance

2009-07-31 Thread David Calavera
- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- David Calavera http://www.thinkincode.net - To unsubscribe

Re: [jruby-dev] Improving jruby-rack performance

2009-07-31 Thread David Calavera
what you have here would only work if a single runtime is acceptable. On Fri, Jul 31, 2009 at 5:33 AM, David Calavera david.calav...@gmail.com wrote: I'm starting to include these advice in patches, here is the first one: http://kenai.com/jira/browse/JRUBY_RACK-20 Btw, I also get similar

[jruby-dev] using regular expressions into jruby code

2009-08-28 Thread David Calavera
Hi, I'm working in a patch for an issue and I want to use a regular expression to solve it but I have a question, what regular expression engine should I use, java default pattern classes or joni engine? is there any convention for that? Thanks

Re: [jruby-dev] Policy concerning lib/ruby/1.9 lib/ruby/1.8

2009-08-28 Thread David Calavera
on Rails (http://apress.com/book/view/9781590598818) Yields falsehood when quined yields falsehood when quined. - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- David

Re: [jruby-dev] using regular expressions into jruby code

2009-08-28 Thread David Calavera
or using joni might be more appropriate. /Nick - To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- David Calavera http://www.thinkincode.net

[jruby-dev] RubyIO 1.9, trying to work with internal encoding.

2009-09-07 Thread David Calavera
Hi, I'm working in the issue 3943, http://jira.codehaus.org/browse/JRUBY-3943,[1.9] IO objects should use internal encoding to transcode output strings but I think I don't understand the behavior of ByteList class. Actually, what I'm trying to do is to change the RubyString encoding just before

[jruby-dev] Weird behaviour running specs with jruby 1.4dev on 1.9 compliant mode.

2009-09-28 Thread David Calavera
Hi, I've seen some recurrent weird behaviour running specs with 1.9 mode that I can't fix and perhaps you could give me some clues to resolve it. Some specs work fine in 1.8 mode, but, although the code is the same for 1.9 mode, they fail in 1.9 mode. I've copied two of them in this gist:

Re: [jruby-dev] Weird behaviour running specs with jruby 1.4dev on 1.9 compliant mode.

2009-09-28 Thread David Calavera
have any idea on how jit works. On Mon, Sep 28, 2009 at 11:26 PM, Vladimir Sizikov vsizi...@gmail.comwrote: Hi David, folks, On Mon, Sep 28, 2009 at 6:00 PM, David Calavera david.calav...@gmail.com wrote: Hi, I've seen some recurrent weird behaviour running specs with 1.9 mode that I

Re: [jruby-dev] Weird behaviour running specs with jruby 1.4dev on 1.9 compliant mode.

2009-09-28 Thread David Calavera
it for 1.9. -Tom On Mon, Sep 28, 2009 at 4:34 PM, David Calavera david.calav...@gmail.com wrote: Yep, everything works fine in 1.8 mode. I'm pretty sure that problem is related with object constructors because the equal? method is the same for 1.8 and 1.9 mode. Right now I'm working

[jruby-dev] Some thoughts on Jibernate

2009-10-09 Thread David Calavera
Hi, I've been hacking around Jibernate and I'd like to start an open discussion about the project and its future. Right now the project is not useful at all, it's just a wrapper to create basic models with attributes, it has some bugs, it's not gemified... But, from the point of view of an old

Re: [jruby-dev] Some thoughts on Jibernate

2009-10-14 Thread David Calavera
9, 2009 at 5:29 AM, David Calavera david.calav...@gmail.com wrote: Hi, I've been hacking around Jibernate and I'd like to start an open discussion about the project and its future. Right now the project is not useful at all, it's just a wrapper to create basic models with attributes

Re: [jruby-dev] [ANN] New Committer: Yoko Harada (yokolet)

2009-10-15 Thread David Calavera
- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- David Calavera http://www.thinkincode.net

Re: [jruby-dev] Wrapping up 1.5

2010-03-08 Thread David Calavera
- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email -- David Calavera http://www.thinkincode.net

Re: [jruby-dev] Wrapping up 1.5

2010-03-08 Thread David Calavera
, 2010 at 6:48 PM, David Calavera david.calav...@gmail.comwrote: On Mon, Mar 8, 2010 at 5:38 PM, Hirotsugu Asari asari.r...@gmail.comwrote: On Mar 8, 2010, at 10:26 AM, Nick Sieger wrote: On Sun, Mar 7, 2010 at 2:50 PM, Charles Oliver Nutter head...@headius.com wrote: Ok, we want to go

Re: [jruby-dev] Wrapping up 1.5

2010-03-08 Thread David Calavera
30 seconds after clicking the Send button I just found a bug XD, I'm installing the native launcher when the installer is been built but I should install it when the user is installing the package, it's a quite easy modification. On Mon, Mar 8, 2010 at 11:54 PM, David Calavera david.calav

Re: [jruby-dev] Re: New procedure for updating stdlib

2010-06-01 Thread David Calavera
Hi, I'd like to change this procedure a little bit. Instead of have two separated scripts I've merged both in one. It also allows us to syncronize the external tests and does the checkout of the right branch for us. So, to update JRuby's stdlib will be as follows: 1. clone this repo

Re: [jruby-dev] My JRuby dev presentation materials

2010-08-25 Thread David Calavera
Hi Nahi, it looks really good to me, I just miss the javasupport package in the source code reading guide. It's under `lib/ruby/site_ruby/shared/builtin/javasupport/` and includes the required code to interact with java classes, like import and include_package methods. On Wed, Aug 25, 2010 at

Re: [jruby-dev] how to retrieve parameter names

2010-11-18 Thread David Calavera
There is another way to access it running the 1.8 version but I don't remember the syntax right now using this: https://github.com/jruby/jruby/blob/master/src/org/jruby/RubyJRuby.java#L621 https://github.com/jruby/jruby/blob/master/src/org/jruby/RubyJRuby.java#L621it needs to require the

Re: [jruby-dev] Start contributing

2011-01-12 Thread David Calavera
Hola Miquel, it's great to hear about people that want to contribute. Probably the core classes are the easiest starting point, each ruby class is represented as a java class, so you can get used to the annotations we use to declare methods... We have a component into our Jira called Intro with

Re: [jruby-dev] Problem with RubySpecs

2011-01-14 Thread David Calavera
Hi Miquel, the problem is that we use Rspec 1.3 to run our tests but you have Rspec 2.4 installed and they are incompatibles. Rvm sets your gem path so even when you are running jruby from the source code it can find your gems. You have two options to solve it, tell rvm to use the ruby

Re: [jruby-dev] New contributor question(s)

2011-01-19 Thread David Calavera
Hi, the ant script contains several targets to execute the complete suites of Rubyspec. If you just want to execute some of them you can use a script that I wrote some time ago: https://gist.github.com/190948 https://gist.github.com/190948or call them directly with Mspec, for instance, from my

Re: [jruby-dev] Class.ForName in java

2011-02-15 Thread David Calavera
Hi Tim, the problem is that the -J-cp option sets the classpath for the java process rather than the jruby one. Last week I wrote a post about class loaders in jruby that might help you: http://thinkincode.net/2011/02/09/jruby-class-loader-by-example.html Cheers On Tue, Feb 15, 2011 at 7:51

[jruby-dev] [jira] Created: (JRUBY-3889) java errors are hidden when an instance of a class is created and we used the method include_package to load the specific java package

2009-08-19 Thread David Calavera (JIRA)
: JRUBY-3889 URL: http://jira.codehaus.org/browse/JRUBY-3889 Project: JRuby Issue Type: Bug Components: Java Integration Reporter: David Calavera Attachments: include_package_patch.zip Using the method include_package to load a full

[jruby-dev] [jira] Created: (JRUBY-3897) Dir::entries doesn't work within a jar

2009-08-20 Thread David Calavera (JIRA)
: JRuby 1.3.1 Reporter: David Calavera When I execute Dir::entries with the path to a jar file jruby raises an error with the message No such directory but executing File.directory? with the same path it returns true. Example executed from the jruby source code directory: jruby -e

[jruby-dev] [jira] Created: (JRUBY-3927) Jar complete doesn't compile

2009-08-31 Thread David Calavera (JIRA)
Jar complete doesn't compile Key: JRUBY-3927 URL: http://jira.codehaus.org/browse/JRUBY-3927 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.4 Reporter: David Calavera

[jruby-dev] [jira] Created: (JRUBY-3942) [1.9] File.new should accept encoding options within the mode parameter and a hash with options as the third parameter

2009-09-02 Thread David Calavera (JIRA)
: http://jira.codehaus.org/browse/JRUBY-3942 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.3.1 Reporter: David Calavera Fix For: JRuby 1.4 Attachments: file_initialize.patch Ruby 1.9 allows

[jruby-dev] [jira] Created: (JRUBY-3944) [1.9] IO should handle options :binmode and :textmode

2009-09-02 Thread David Calavera (JIRA)
[1.9] IO should handle options :binmode and :textmode - Key: JRUBY-3944 URL: http://jira.codehaus.org/browse/JRUBY-3944 Project: JRuby Issue Type: Bug Reporter: David Calavera

[jruby-dev] [jira] Created: (JRUBY-3945) [1.9] IO and file initialization should ignore internal encoding when is equal to external encoding

2009-09-03 Thread David Calavera (JIRA)
-3945 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Reporter: David Calavera Attachments: ignore_internal_encoding.patch It also shows a warning. I include the patch with a test case. -- This message is automatically generated

[jruby-dev] [jira] Created: (JRUBY-3967) remove some duplicated tests that have been added to rubyspecs

2009-09-15 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Priority: Minor Attachments: remove_1_9_tests.patch I've removed some tests that I already added to rubyspecs, so we don't need to mantain them anymore. -- This message is automatically generated by JIRA. - If you think

[jruby-dev] [jira] Created: (JRUBY-3975) [1.9] Encoding.locale_charmap is missing

2009-09-17 Thread David Calavera (JIRA)
[1.9] Encoding.locale_charmap is missing Key: JRUBY-3975 URL: http://jira.codehaus.org/browse/JRUBY-3975 Project: JRuby Issue Type: Bug Components: Ruby 1.9 Reporter: David

[jruby-dev] [jira] Created: (JRUBY-3978) [1.9] Array#frozen? returns false for an array being sorted by #sort!

2009-09-19 Thread David Calavera (JIRA)
Components: Ruby 1.9 Reporter: David Calavera Assignee: Thomas E Enebo Attachments: array_frozen.patch the spec core/array/frozen_spec.rb doesn't pass due to this bug. I've attached a patch that solves the problem, I don't include a test because we already

[jruby-dev] [jira] Created: (JRUBY-3979) [1.9] Array.collect returns an Enumerator when no block given

2009-09-19 Thread David Calavera (JIRA)
: Ruby 1.9 Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: array_collect.patch spec core/array/shared/collect.rb is broken due to this bug. I've attached a patch that solves this bug. It doesn't contain a patch because

[jruby-dev] [jira] Created: (JRUBY-3984) [1.9] Array improvements to solve several specs

2009-09-21 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: array_specs.patch Fix several specs for ruby 1.9 mode: Subject: [PATCH] [1.9] Array#frozen? returns false for an array being sorted by #sort! Subject: [PATCH] [1.9] Array.collect

[jruby-dev] [jira] Created: (JRUBY-3985) [1.9] ARGF improvements to solve several specs

2009-09-21 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: argf_spec.patch This patch solves bugs for 1.9 and 1.8 modes: Subject: [PATCH] ARGF.binmode? method added. Little refactor to clean some code Subject: [PATCH] ARGF#close raises

[jruby-dev] [jira] Created: (JRUBY-3987) [1.9] Bignum improvements to pass some ruby specs

2009-09-22 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: bignum_spec.patch The patch submitted fixes these specs: [PATCH] [1.9] Bignum# Bignum#| Bignum#^ raises a TypeError when passed a Float [PATCH] [1.9] Bignum#divmod raises

[jruby-dev] [jira] Created: (JRUBY-3991) [1.9] Comparable improvements to pass ruby specs

2009-09-23 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: comparable_specs.patch The patch attached fixes all the specs failed for comparable module: [1.9] Comparable#== returns false if calling #= on self raises an Exception. [1.9

[jruby-dev] [jira] Created: (JRUBY-3992) [1.9] Complex improvements to pass ruby specs

2009-09-23 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: complex_specs.patch passes all the failed specs: [1.9] Complex#== with Object calls other#== with self -- This message is automatically generated by JIRA. - If you think it was sent

[jruby-dev] [jira] Created: (JRUBY-3993) [1.9] Dir improvements to pass some ruby specs

2009-09-23 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: dir_specs.patch The attached patch passes these failing specs: [1.9] adds Dir#exists? and Dir#exist? methods and fixes their specs [1.9] Dir.mkdir calls #to_path on non-String

[jruby-dev] [jira] Created: (JRUBY-3994) [1.9] Enumerable improvements to pass some ruby specs

2009-09-23 Thread David Calavera (JIRA)
1.9 Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: enumerable_specs.patch This patch fixes the next specs: [1.9] Enumerable#zip converts arguments to arrays using #to_ary [1.9] Enumerable#collect returns an enumerator

[jruby-dev] [jira] Created: (JRUBY-4000) [1.9] Fixnum improvements to solve ruby specs

2009-09-24 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.4 Attachments: fixnum_specs.patch The attached patch solves these specs. All fixnum specs pass after that: [1.9] Fixnum#divmod raise a ZeroDivisionError when the given argument is 0 and a Float [1.9

[jruby-dev] [jira] Created: (JRUBY-4015) NoMethodError: undefined method `first' for :__mspec_14_eql?__:Symbol

2009-09-28 Thread David Calavera (JIRA)
Components: Ruby 1.9 Reporter: David Calavera Assignee: Thomas E Enebo This error is done over and over again in some rubyspecs running with 1.9 compliant mode. Mspec raises an error in lib/mspec/mocks/mock.rb line 35: {noformat} def self.has_key?(keys, sym

[jruby-dev] [jira] Created: (JRUBY-4091) IConv.conv ignores //IGNORE flag into the encoding parameter

2009-10-12 Thread David Calavera (JIRA)
: Core Classes/Modules Reporter: David Calavera This code fails {noformat} require 'iconv' require 'stringio' non_utf8 = \xa4 utf8 = Iconv.conv('UTF-8//IGNORE', 'UTF-8', non_utf8) puts utf8 == non_utf8 # returns true, which is wrong {noformat} -- This message is automatically generated

[jruby-dev] [jira] Created: (JRUBY-4102) [1.9] JRuby doesn't handle unicode characters

2009-10-16 Thread David Calavera (JIRA)
Reporter: David Calavera Unicode characters are not transcoded: {noformat} da...@macskull ~/dev/jruby$ irb19 irb(main):001:0 \u20ac = € irb(main):002:0 \u20ac.encoding = #Encoding:UTF-8 da...@macskull ~/dev/jruby$ bin/jruby --1.9 -S jirb irb(main):001:0 \u20ac = u20ac irb(main):002

[jruby-dev] [jira] Created: (JRUBY-4103) exclude gem' documentation download to pass tests

2009-10-17 Thread David Calavera (JIRA)
Reporter: David Calavera Attachments: exclude_gems_doc.patch documentation download is actually don't needed to pass tests and the script is faster without them. I attach a tiny patch to exclude download from install-gems ant task. -- This message is automatically generated

[jruby-dev] [jira] Created: (JRUBY-4166) [1.9] fixes Time.inspect and Time.+ to pass every rubyspec

2009-10-26 Thread David Calavera (JIRA)
Components: Ruby 1.9 Reporter: David Calavera Assignee: Thomas E Enebo Attachments: ruby_time.patch Time improvements to fix failed specs with to_s and + methods. Every Time spec pass now. -- This message is automatically generated by JIRA. - If you think it was sent

[jruby-dev] [jira] Created: (JRUBY-4174) [1.9] BasicObject can't be instantiated

2009-10-27 Thread David Calavera (JIRA)
Reporter: David Calavera This code fails in 1.9 mode: {code} bin/jruby --1.9 -e puts BasicObject.new.equal? BasicObject.new -e:1: can't instantiate uninitialized class (TypeError) {code} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one

[jruby-dev] [jira] Created: (JRUBY-4196) [1.9] Module improvements to pass some rubyspecs

2009-11-01 Thread David Calavera (JIRA)
/Modules, Ruby 1.9 Reporter: David Calavera Attachments: module_specs.patch The attached patch fixes some specs: - All failing specs for constants method - All failing specs for class_variables method - Some failing specs for autoload -- This message is automatically

[jruby-dev] [jira] Created: (JRUBY-4197) [1.9] Module hierarchy issues in const_defined? method

2009-11-01 Thread David Calavera (JIRA)
Classes/Modules, Ruby 1.9 Reporter: David Calavera This script seems to work fine at glance, but internally RubyModule uses a different hierarchy. RubyModule uses getSuperClass() method internally that returns ModuleA as the super class of Child rather than Parent. In Ruby 1.9

[jruby-dev] [jira] Created: (JRUBY-4222) [1.9] Enumerator.with_index accepts an starting index

2009-11-08 Thread David Calavera (JIRA)
/Modules, Ruby 1.9 Reporter: David Calavera Attachments: with_index.patch the attached patch solves the bug. Rubyspec already contains some specs to test this behavior. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one

[jruby-dev] [jira] Created: (JRUBY-4228) compat version in JRubyMethod hides method signatures without the attribute

2009-11-10 Thread David Calavera (JIRA)
Type: Bug Components: Core Classes/Modules Reporter: David Calavera Trying to fix JRUBY-4222 I came across that when we have two methods with the same @JRubyMethod name and one of them contains the attribute compat, it hides the other method and its not enabled in that mode

[jruby-dev] [jira] Created: (JRUBY-4233) Incorrect error code with TCPServer.new

2009-11-13 Thread David Calavera (JIRA)
: David Calavera Attachments: 0001-Incorrect-error-code-with-TCPServer.new.patch Reported by Vivek Pandey in the users mailing list: {noformat} I have this script and I expect EADDRNOTAVAIL error but jruby gives wrong error code: require 'socket' x = TCPServer.new 1.2.3.4, 4000 Above

[jruby-dev] [jira] Created: (JRUBY-4252) [1.9] Class improvements to fix all its failed specs

2009-11-20 Thread David Calavera (JIRA)
[1.9] Class improvements to fix all its failed specs Key: JRUBY-4252 URL: http://jira.codehaus.org/browse/JRUBY-4252 Project: JRuby Issue Type: Improvement Reporter: David

[jruby-dev] [jira] Created: (JRUBY-4322) [1.9] Object.to_a should be removed

2009-12-07 Thread David Calavera (JIRA)
: David Calavera Object.to_a has been removed from Ruby 1.9. This bug could be easily fixed just changing the compatibility mode in the method's signature: {code} @JRubyMethod(name = to_a, visibility = Visibility.PUBLIC, compat = CompatVersion.RUBY1_8) {code} but then Rubyspec doesn't work

[jruby-dev] [jira] Created: (JRUBY-4350) Allow to use rake from system path to build jruby when GEM_PATH is set

2009-12-11 Thread David Calavera (JIRA)
: Improvement Reporter: David Calavera Assignee: Thomas E Enebo Attachments: 0001-allow-to-use-rake-from-system-to-build-jruby.patch I'm not sure if this is just annoying for me, but I can't build jruby when I have GEM_PATH set because the rake path is hardcoded to the ant

[jruby-dev] [jira] Created: (JRUBY-4355) [1.9] Splat operator behavior is slightly different in Ruby 1.9

2009-12-12 Thread David Calavera (JIRA)
Versions: JRuby 1.4 Reporter: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.5 Attachments: 0001-1.9-Splat-operator-behavior-is-slightly-different.patch The new behaviour is covered in Rubyspec in language/break_spec.rb but I suppose it should

[jruby-dev] [jira] Created: (JRUBY-4452) Rational improvements to fix all remaining failing specs

2010-01-11 Thread David Calavera (JIRA)
: David Calavera Assignee: Thomas E Enebo Fix For: JRuby 1.5 Attachments: rational_spec.patch There are a few failing rubyspecs ralated with Rational: - Rational#coerce returns [argument, self] when given a Rational - Rational#div passed a Float raises

[jruby-dev] [jira] Created: (JRUBY-4600) JRuby native launcher needs rsec to be installed

2010-02-25 Thread David Calavera (JIRA)
Reporter: David Calavera Fix For: JRuby 1.5 Attachments: rakefile_load_error.patch The native launcher gem raises a LoadError if RSpec is not installed. I attach a patch that solves the problem and shows a message to inform the user -- This message is automatically

[jruby-dev] [jira] Created: (JRUBY-4742) File::Stat throws a NPE when it doesn't find a file into a jar

2010-04-22 Thread David Calavera (JIRA)
Versions: JRuby 1.5.0.RC1 Reporter: David Calavera Assignee: Thomas E Enebo Attachments: file_stat_npe.patch A NPE is quite ugly. I include a patch that raises an Errno::ENOENT when the file is not found into the jar , like when the jar is not found. -- This message

[jruby-dev] [jira] Created: (JRUBY-4807) Method missing behavior error

2010-05-21 Thread David Calavera (JIRA)
Method missing behavior error - Key: JRUBY-4807 URL: http://jira.codehaus.org/browse/JRUBY-4807 Project: JRuby Issue Type: Bug Reporter: David Calavera Assignee: Thomas E Enebo I still

[jruby-dev] [jira] Created: (JRUBY-4815) RubyClass doesn't include the base name in the class name after setting a constant with const_set

2010-05-23 Thread David Calavera (JIRA)
Project: JRuby Issue Type: Bug Reporter: David Calavera Assignee: Thomas E Enebo Attachments: JRUBY-4815.patch There is a test failing in rails/actionpack because of this: {noformat} test_temporary_anonymous_controllers(ControllerInstanceTests

[jruby-dev] [jira] Created: (JRUBY-4817) [1.9] File.open can't resolve mode parameters with string constants

2010-05-23 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Attachments: JRUBY-4817.patch RubyFile has a bug that doesn't allow to resolve modes like File::RDONLY. I include a patch that solves the problem and remove the tagged specs. -- This message is automatically generated

[jruby-dev] [jira] Created: (JRUBY-4883) String passes class extensions to subclasses when we call a non mutable method

2010-06-16 Thread David Calavera (JIRA)
Issue Type: Bug Reporter: David Calavera Assignee: David Calavera Priority: Minor Some methods like chop, chomp or gsub share the same behaviour discovered by bobmcw in JRUBY-4881. It's because the method RubyString#makeShared uses the metaClass rather than

[jruby-dev] [jira] Created: (JRUBY-5155) Dir.[] error with wildcards in the basename of the path into jar files

2010-10-22 Thread David Calavera (JIRA)
Affects Versions: JRuby 1.5.3 Reporter: David Calavera Assignee: David Calavera this works: jruby-1.5.3 Dir['db/migrate/[0-9]*_*.rb'] = [db/migrate/20101022230623_bar.rb] but it doesn't into a jar file: jruby-1.5.3 Dir['file:/Users/david/dev/migrations/target

[jruby-dev] [jira] Created: (JRUBY-5303) [1.9] Wrong parameters parse for method signatures with default values

2011-01-04 Thread David Calavera (JIRA)
Components: Parser, Ruby 1.9 Reporter: David Calavera Assignee: Thomas E Enebo The new method signature causes MiniTest doesn't handle default arguments properly. I've reduced the issue to this code: {code} require 'minitest/unit' module Foo include MiniTest

[jruby-dev] [jira] Created: (JRUBY-5304) [1.9] Module.const_defined? and Module.const_get accept a second parameter to look up into the ancestors

2011-01-04 Thread David Calavera (JIRA)
/JRUBY-5304 Project: JRuby Issue Type: Bug Components: Core Classes/Modules, Ruby 1.9 Affects Versions: JRuby 1.5.6 Reporter: David Calavera Assignee: David Calavera from ruby code {noformat

[jruby-dev] [jira] Created: (JRUBY-5307) [1.9] variable assignment with rescue doesn't work as expected

2011-01-05 Thread David Calavera (JIRA)
Components: Parser Affects Versions: JRuby 1.5.6 Reporter: David Calavera Assignee: Thomas E Enebo This code raises an Error on --1.9 but it should return nil: {code} class Foo def initialize(bar) end end class Bar Foo end @bar ||= Bar.new rescue nil {code

[jruby-dev] [jira] Created: (JRUBY-5313) [1.9] Bundler doesn't work since the compiler was enabled for --1.9 mode

2011-01-06 Thread David Calavera (JIRA)
Components: Compiler Reporter: David Calavera Assignee: Charles Oliver Nutter the commit 16aa9c5ccc6fe347998eaaf65bed6b759fb608f1 causes bundler stops working, I'm getting this error with the compiler enabled: https://gist.github.com/768204 Desabling

[jruby-dev] [jira] Created: (JRUBY-5322) NPE forcing to compile a script

2011-01-10 Thread David Calavera (JIRA)
NPE forcing to compile a script --- Key: JRUBY-5322 URL: http://jira.codehaus.org/browse/JRUBY-5322 Project: JRuby Issue Type: Bug Components: Compiler, Ruby 1.9 Reporter: David Calavera

[jruby-dev] [jira] Created: (JRUBY-5344) Rubygems fails installing a gem from a url

2011-01-13 Thread David Calavera (JIRA)
: David Calavera Assignee: Thomas E Enebo With the new maven integration rubygems fails installing a gem from a url when it shouldn't. As an example: {noformat} jruby -S gem install http://dl.dropbox.com/u/6838328/trinidad_daemon_extension-0.2.6.dev.gem ERROR: While executing gem

[jruby-dev] [jira] Created: (JRUBY-5387) Unable to run Rails tests since we use Psych as default yaml lib

2011-01-19 Thread David Calavera (JIRA)
Components: Ruby 1.9, Standard Library Reporter: David Calavera Assignee: Thomas E Enebo This is the error that I get running Rails tests with JRuby master: {noformat} org/jruby/RubyKernel.java:1050:in `require19': load error: /home/dcalavera/dev/rails3/load_paths

[jruby-dev] [jira] Created: (JRUBY-5397) [1.9] Make String#gsub encoding aware for ruby files

2011-01-20 Thread David Calavera (JIRA)
Reporter: David Calavera Assignee: Thomas E Enebo Executing this script from a ruby file we raise an error but it should work: {noformat} p 'foo'.gsub(/[\x00-\x20%\x7F-\xFF]/, '') {noformat} {noformat} org/jruby/RubyString.java:2843:in `gsub19': invalid multibyte escape: /[\x00

[jruby-dev] [jira] Created: (JRUBY-5460) ant test-1.9 doesn't run any test at all

2011-02-07 Thread David Calavera (JIRA)
ant test-1.9 doesn't run any test at all Key: JRUBY-5460 URL: http://jira.codehaus.org/browse/JRUBY-5460 Project: JRuby Issue Type: Bug Affects Versions: JRuby 1.6RC1 Reporter: David

[jruby-dev] [jira] Created: (JRUBY-5465) [1.9] ChannelStream doesn't handle multibyte characters from ungetc properly

2011-02-08 Thread David Calavera (JIRA)
Type: Bug Components: Core Classes/Modules, Ruby 1.9 Affects Versions: JRuby 1.6RC1 Reporter: David Calavera Priority: Critical ChannelStream always casts the character from ungetc to a byte. This doesn't work for multibyte characters and returns unexpected

[jruby-dev] [jira] Created: (JRUBY-6207) Array#sort on the ancestors of a Java class raises an error because the list includes classes and modules

2011-11-13 Thread David Calavera (JIRA)
/browse/JRUBY-6207 Project: JRuby Issue Type: Bug Reporter: David Calavera Assignee: Thomas E Enebo Priority: Minor {noformat} jruby-1.6.5 :004 java.util.ArrayList.ancestors.sort ArgumentError: comparison of Class with Module failed