-
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
David Calavera
http://www.thinkincode.net
-
To unsubscribe
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
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
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
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
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
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:
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
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
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
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
-
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
David Calavera
http://www.thinkincode.net
-
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
David Calavera
http://www.thinkincode.net
, 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
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
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
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
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
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
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
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
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-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 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
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
: 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
[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
-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
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
[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
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
: 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
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
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
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
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
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
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
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
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
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
: 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
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
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
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
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
/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
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
/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
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
: 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
[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
: 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
: 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
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
: 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
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
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
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
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
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
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
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
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-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
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
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
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
: 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
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
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
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
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
/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
74 matches
Mail list logo