DevHeads.net

Core

Ripper: I would like coordinates for keywords

Issue #8321 has been reported by ericp (Eric Promislow).

Author: ericp (Eric Promislow)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Ripper gives the [line, column] coordinates for identifiers, strings, and numbers.

I would like it if it appended those coordinates to most of the block keywords,
including :program, :if, :while, :unless, :end, :def, :class, :module, etc. As with the
identifiers, it should go at the end.

Ruby interpreter crashes when running pcaprub

Issue #8320 has been reported by crondaemon (Dario Lombardo).

Author: crondaemon (Dario Lombardo)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0dev (2012-11-01 trunk 37411) [i686-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Here's the code (taken from examples) that caused the crash:

require 'rubygems'
require 'pcaprub'

capture = PCAPRUB::Pcap.open_live('eth0', 65535, true, 0)
capture.setfilter('icmp')
captur

Tk::Canvas.create raise if type TkcItem

Issue #8319 has been reported by zzak (Zachary Scott).

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: nagai (Hidetoshi Nagai)
Category: ext
Target version: current: 2.1.0
ruby -v: 2.1.0dev
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

From ((<GitHub#295|URL:https://github.com/ruby/ruby/pull/295>))

Fix debug listing when called from the same file the debug module has been required from

Issue #8318 has been reported by zzak (Zachary Scott).

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee:
Category: lib
Target version: current: 2.1.0
ruby -v: 2.1.0dev
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

=begin
From ((<GitHub#280|URL:https://github.com/ruby/ruby/pull/280>))

with this minimal ruby code

(({require 'debug'}))
(({puts}))
when trying to list the code, it'll fail like so:

((

URI: no_proxy with whitespaces and leading dots.

Issue #8317 has been reported by zzak (Zachary Scott).

Author: zzak (Zachary Scott)
Status: Assigned
Priority: Normal
Assignee: akira (akira yamada)
Category: lib
Target version: current: 2.1.0

=begin
From ((<GitHub#285|URL:https://github.com/ruby/ruby/pull/285>))

The previous implementation wouldn't allow for white-spaces nor a leading dot
in the no_proxy list.

Can't pass hash to first positional argument; hash interpreted as keyword arguments

Issue #8316 has been reported by TylerRick (Tyler Rick).

Author: TylerRick (Tyler Rick)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

I'm able to pass any other type of object to my first argument:

def foo(hash, opt: true)
puts "hash: #{hash}, opt: #{opt.inspect}"
end

foo 'a'

mkmf does not include include paths from pkg_config anymore

Issue #8315 has been reported by Hanmac (Hans Mackowiak).

Author: Hanmac (Hans Mackowiak)
Status: Open
Priority: Normal
Assignee: iwamatsu (Nobuhiro Iwamatsu)
Category: ext
Target version:
ruby -v: trunk
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

=begin

((*#6504*)) does that, for cpp files $CFLAGS is not used anymore, so the problems are the include paths:

* there is no $CXXFLAGS global variable defined
* pkg_config does not add the include

Segmentation fault

Issue #8314 has been reported by slivu (Silviu Rusu).

Author: slivu (Silviu Rusu)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Occasionally happens on Travis CI with 2.0.0p0

By occasionally i mean that same code sometimes works sometimes does not.

Full backtrace here - <a href="https://travis-ci.org/espresso/rear/jobs/6530839" title="https://travis-ci.org/espresso/rear/jobs/6530839">https://travis-ci.org/espresso/rear/jobs/6530839</a>

Never happens on 1.9x

=====

Ru

rubygem 2.0 can't communicate with remote sources http://rubygems.org/

Issue #8313 has been reported by legerf (Frederic Leger).

Author: legerf (Frederic Leger)
Status: Open
Priority: High
Assignee: cruby-mac
Category: platform/darwin
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

I try to use Ruby 2.0 on my MAC OSX Mountain Lion with macports.

Fix weird performance of Hash#shift

Issue #8312 has been reported by funny_falcon (Yura Sokolov).

Author: funny_falcon (Yura Sokolov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.1.0dev (2013-04-23 trunk 40423) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

rb_hash_shift has an optimization for case when #shift is called outside hash iteration.
But in fact it is deoptimization, cause it uses rb_hash_foreach, which initiate safe
iteration, so that delet

resque-web crashes with segfault on Ruby 2.0.0-p0 only, Resque 1.24.1, Redis 2.6.12

Issue #8310 has been reported by vaharoni (Amit Aharoni).

Author: vaharoni (Amit Aharoni)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin10.8.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

To reproduce (assuming redis-server is running on your computer):
$ rvm use 2.0@clean
$ gem install resque
$ gem install redis
$ resque-web -F

This

Editorializing in rexml::ie_hack documentation

Issue #8309 has been reported by cbeckmann (Charles Beckmann).

Author: cbeckmann (Charles Beckmann)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

I noticed some rather shameful editorializing while perusing the official documentation for REXML::Document, specifically in the description of the ie_hack parameter.

Segmentation fault

Issue #8308 has been reported by jaredbeck (Jared Beck).

Author: jaredbeck (Jared Beck)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.3.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

$ be rails s
=> Booting WEBrick
=> Rails 3.2.13 application starting in development on <a href="http://0.0.0.0:3000" title="http://0.0.0.0:3000">http://0.0.0.0:3000</a>
=> Call with -d to detach
=> Ctrl-C to shutdown server
[2013-04-22 10:42:30] INFO WEBrick 1.3.1
[2013-04-22

Bug In OptionParser accepted parsing

Issue #8306 has been reported by chaye (Roi Illouz).

Author: chaye (Roi Illouz)
Status: Open
Priority: High
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

program:
require 'optparse'

options = {}
OptionParser.new do |opts|
opts.on("-a", "--a_param A", "A") do |a|
options[:a] = a
end
opts.on("-b", "--b_param B", "B") do |b|
options[:b] = b
end

Segfault on Mac OS X

Issue #8305 has been reported by vipulnsward (Vipul Amler).

Author: vipulnsward (Vipul Amler)
Status: Open
Priority: High
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]
Backport:

=begin

Running this piece of ((<test|URL:https://github.com/headius/thread_safe/blob/master/test/test_cache_loops.rb>)) segfaults happen on every run.

This behaviour exists in thread_safe gem, use by rails internally.

Crash Report ((<her

YAML does not persist Exception#backtrace

Issue #8303 has been reported by josh.cheek (Josh Cheek).

Author: josh.cheek (Josh Cheek)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

require 'yaml'

begin
raise "omg"
rescue

# yaml loses the backtrace
YAML.load(YAML.dump $!).backtrace # => nil

# marshal persists the backtrace
Marshal.load(Marshal.dump $!).bac

rails server request no working

Issue #8300 has been reported by a.devine (Aaron Devine).

Author: a.devine (Aaron Devine)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Can anyone help me figure out this error.

sk8devine$ rails server
/Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/mysql2-0.3.11/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)
Referenced from: /Library/Ruby/Gems/1.

Minor error in float parsing

Issue #8299 has been reported by bobjalex (Bob Alexander).

Author: bobjalex (Bob Alexander)
Status: Open
Priority: Low
Assignee:
Category:
Target version:

I encountered a float that either parses [slightly] differently (or converts to string differently) in Ruby than it does in Python or Java. This looks like a Ruby bug since the result "looks" incorrect.

It is easily reproduced by entering the magic number (-1.1505945E-5) into irb.

Module include inconsistency

Issue #8298 has been reported by Student (Nathan Zook).

Author: Student (Nathan Zook)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: current: 2.1.0
ruby -v: 1.8, 1.9, 2.0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

It has been suggested that I report this as a violation of the object model:

module M ; end
module N ; end
class C ; include M ; end
module M ; include N ; end
c = C.new
c.extend M
d = class << c ; self ; end
d.ancestors
=>[N, C, M, Objec

extend & inherited class variable issue

Issue #8297 has been reported by dunric (David Unric).

Author: dunric (David Unric)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: 2.0.0p0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

=begin
By the current documentation, Object#extend method has to (only) add instance methods of a module given as a parameter.
In the following example, the class ((*C*)) is extended with module ((*M*)).
By ((*class_variables*)) method sent to single

Allow retrieving the root Fiber of a Thread

Issue #8291 has been reported by halorgium (Tim Carey-Smith).

Author: halorgium (Tim Carey-Smith)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

=begin
Currently (({Thread.backtrace})) returns the stack frames for the currently running (({Fiber})).
It is not possible to retrieve the backtrace.

Building on <a href="http://bugs.ruby-lang.org/issues/8263" title="http://bugs.ruby-lang.org/issues/8263">http://bugs.ruby-lang.org/issues/8263</a>, this would allow for this feature.
=end

String#inspect should not represent NUL as "\0" when octal digits may follow.

Issue #8290 has been reported by knu (Akinori MUSHA).

Author: knu (Akinori MUSHA)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: next minor
ruby -v: ruby 2.1.0dev (2013-04-19 trunk 40366) [x86_64-freebsd9]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Starting from Ruby 2.0.0, String#inspect represents the NUL character as "\0" but it is not appropriate at least when octal digits follow.
Not only is it c

[].join.encoding # => US-ASCII (I expect also UTF-8

Issue #8289 has been reported by peter_v (Peter Vandenabeele).

Author: peter_v (Peter Vandenabeele)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.1.0dev (2013-04-19) [x86_64-darwin12.3.0]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

May be related to <a href="http://bugs.ruby-lang.org/issues/5379" title="http://bugs.ruby-lang.org/issues/5379">http://bugs.ruby-lang.org/issues/5379</a>

$ date
Thu Apr 18 23:56:54 CEST 2013

$ rvm get stable

$ rvm install ruby-head
...

Ruby 2.1.0 release engeneering

Issue #8288 has been reported by naruse (Yui NARUSE).

Author: naruse (Yui NARUSE)
Status: Open
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: Project
Target version: current: 2.1.0

This is meta issue for releasing Ruby 2.1.0

Regexp performance issue

Issue #8287 has been reported by mghomn (Justin Peal).

Author: mghomn (Justin Peal)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 1.9.3p374 (2013-01-15) [i386-mingw32]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

ADDRESS = # RFC-5322 : <a href="http://tools.ietf.org/html/rfc5322" title="http://tools.ietf.org/html/rfc5322">http://tools.ietf.org/html/rfc5322</a>
/
(?<mailbox>
(?<name_addr>
(?<display_name>
(?<phrase>
(?<word>
(?<atom>
#\g<CFWS>?
#\g<atext>+

Can't decode non-MIME Base64

Issue #8286 has been reported by adacosta (Alan Da Costa).

Author: adacosta (Alan Da Costa)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 2.0.0-p0
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

=begin
In <a href="https://github.com/ruby/ruby/blob/trunk/lib/base64.rb#L42" title="https://github.com/ruby/ruby/blob/trunk/lib/base64.rb#L42">https://github.com/ruby/ruby/blob/trunk/lib/base64.rb#L42</a> , RFC 2045 is mentioned for encode64/decode64 support, which is the MIME RFC. I don't believe this is the correct RFC to reference, as RFC 4648 is the correct RFC for Base64.

Resolv::DNS: TCP fallback fails with multiple resolvers

Issue #8285 has been reported by julian.mehnle (Julian Mehnle).

Author: julian.mehnle (Julian Mehnle)
Status: Open
Priority: Normal
Assignee:
Category: lib
Target version:
ruby -v: ruby 1.8.7 (2011-12-28 patchlevel 357) [i686-darwin11]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN

Since my TCP fallback support patch from #3835 was merged Resolv::DNS would sometimes fail with a @"host/port don't match: <nameserver>:<port>"@ @Resolv::DNS::Requester::

Expected behavior of Module#public_class_method

Issue #8284 has been reported by jacknagel (Jack Nagel).

Author: jacknagel (Jack Nagel)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [i386-darwin10.8.0]

It was pointed out by Myron Marston (here: <a href="https://gist.github.com/myronmarston/5401829" title="https://gist.github.com/myronmarston/5401829">https://gist.github.com/myronmarston/5401829</a>) that calling public_class_method on an anonymous module makes the named method public on Object, etc.

Object.define_method => NoMethodError

Dir.glob doesn't recurse hidden directories

Issue #8283 has been reported by gpakosz (Gregory Pakosz).

Author: gpakosz (Gregory Pakosz)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.2]

Hello,

I noticed Dir.glob('**') doesn't recurse hidden directories.

I believe regression has been introduced by r36903.

Here is the following directory / file structure:
$ find .
.
./foo
./foo/.bar
./foo/.bar/baz.txt
./fo

Please backport r38867,r38868,r38869 to avoid win32ole error on thread.

Issue #8282 has been reported by phasis68 (Heesob Park).

Author: phasis68 (Heesob Park)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Please backport r38867,r38868,r38869 to avoid win32ole error on thread.
See <a href="https://github.com/djberg96/sys-uname/issues/1" title="https://github.com/djberg96/sys-uname/issues/1">https://github.com/djberg96/sys-uname/issues/1</a> for details.

Net::IMAP can't parse response to the IMAP SETACL command correctly

Issue #8281 has been reported by adantel (Alex Filatau).

Author: adantel (Alex Filatau)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 2.0.0

Found in ruby-2.0.0-p0

I'm working right now on upgrade of our test system from ruby 1.9.2 to ruby 2.0.0. Unfortunately, one of the test scripts that works flawlessly with ruby 1.9.2 is failing when trying to parse response of GETACL command.

Single-line rescue parsing

Issue #8279 has been reported by dunric (David Unric).

Author: dunric (David Unric)
Status: Open
Priority: High
Assignee: matz (Yukihiro Matsumoto)
Category: syntax
Target version:
ruby -v: 2.0.0p0

Hi,

there seems to be a bug in parser for single-line rescue statement. It fails in case of multiple assignment statements, keeping operator precedence vs.

Marshal.load modifies restored object after calling #marshal_load

Issue #8276 has been reported by Eregon (Benoit Daloze).

Author: Eregon (Benoit Daloze)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 2.1.0dev (2013-04-16 trunk 40322) [x86_64-darwin10.8.0]

Given this code, a simple class freezing instances on creation (so they are immutable):

class T
def initialize(data)
@data = data
freeze
end

def marshal_dump
@data
end

def marshal_lo

Requesting Commit Access

Hello ruby-core,

I would like to become a committer to Ruby.

Add Module#public_const_get

Issue #8275 has been reported by rkh (Konstantin Haase).

Author: rkh (Konstantin Haase)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Right now, `const_get` will always return a constant, no matter the visibility, which is probably what we want most of the time.

No tests for PKCS7::write_smime

Issue #8274 has been reported by headius (Charles Nutter).

Author: headius (Charles Nutter)
Status: Open
Priority: Normal
Assignee:
Category: test
Target version:
ruby -v: 2.0.0

There are no tests for OpenSSL::PKCS7::write_smime.

That is all :-)

A recent pull request for JRuby attempts to implement write_smime, but we have no way to confirm it is working correctly (and I do not understand it well enough to implement a test).

<a href="https://github.com/jruby/jruby/pull/634" title="https://github.com/jruby/jruby/pull/634">https://github.com/jruby/jruby/pull/634</a>

Make it possible to treat objects as falsy in order to make NullObjects more convenient

Issue #8273 has been reported by prijutme4ty (Ilya Vorontsov).

Author: prijutme4ty (Ilya Vorontsov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

NullObject is quite a useful pattern. But refactoring from conditionals to null-object can be very painful because an instance of NullObject will be treated as truthy so code `... if obj` can change its behavior.

Offline Workers

Hello,

At some point over the weekend, the box that runs our Continuos Integration
(CI) workers lost internet connectivity and possible power.

I'm traveling right now so I don't have physical access to the box to
resolve the issue.

I'm pulling some strings to get these back online as soon is possible.

Sorry for the inconvenience.

Transfer feature tracking to CommonRuby

Issue #8272 has been reported by headius (Charles Nutter).

Author: headius (Charles Nutter)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

If my proposal in #8271 is accepted, we'll need to:

1. Document in appropriate places that CommonRuby is the place to file and track feature changes.

Proposal for moving to a more visible, formal process for feature requests

Issue #8271 has been reported by headius (Charles Nutter).

Author: headius (Charles Nutter)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Proposal for moving to a more visible, formal process for feature requests.

1.

Ruby should build without thread support (aka minix)

Issue #8270 has been reported by eike.rb (Eike Dierks).

Author: eike.rb (Eike Dierks)
Status: Open
Priority: Low
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version: Next Major

I tried to ./configure ruby on Minix 3.2.1,
The configure failed, because minix does not yet implement threads.

I'd like to suggest that ruby should still build on platforms without threads.

AFAIK the language does not yet require thread support in itself,

stdlib: Add Find.each_file to accompany Find.find

Issue #8269 has been reported by tommylommykins (Thomas Green).

Author: tommylommykins (Thomas Green)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Often when I use the find module, I am only interested in files.
Since Find.find returns files and directories, I often write code
that looks like this:

Find.find('foo/bar') do |f|
next if File.directory?

ruby 2.0.0 incorrectly detects debugflags on SmartOS / gcc 4.7

Issue #8268 has been reported by mattconnolly (Matt Connolly).

Author: mattconnolly (Matt Connolly)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: build
Target version:
ruby -v: 2.0.0-p0

When compiling ruby from source on Smart OS, which uses gcc-4.7, the configure script fails to correctly detect a compatible debug flag.

-0.0 does not have a Flonum like 0.0

Issue #8265 has been reported by Hanmac (Hans Mackowiak).

Author: Hanmac (Hans Mackowiak)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.1.0dev (2013-04-02 trunk 40043) [x86_64-linux]

with Flonum,
fixed id for 0.0
(0.0).object_id #=> -9223372036854775806
(0.0).object_id #=> -9223372036854775806

non-fixed id for -0.0
(-0.0).object_id #=> 22387560
(-0.0).object_id #=> 22381340

i think that -0.0 should have fixed object_id too

define struct under the given namespace

Issue #8264 has been reported by nobu (Nobuyoshi Nakada).

Author: nobu (Nobuyoshi Nakada)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: next minor

=begin
As commented in ((%struct.c%)), it's old style to define (({Struct::Foo})) automatically.

But there is no handy way to define a (({Struct})) under other namespaces, so I propose new C API to do it, (({rb_struct_define_under()})).
=end

Support discovering yield state of individual Fibers

Issue #8263 has been reported by halorgium (Tim Carey-Smith).

Author: halorgium (Tim Carey-Smith)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

=begin
Related to #8215, when debugging a multi-Fiber application or library it is useful to be able to look at the stack for the (({Thread})) which is possible right now.
Currently it is not possible to discover where the Fiber was yielded.

Confusing "undefined method" exception when using - operator on a string

Issue #8262 has been reported by ajack (Jack Weeden).

Author: ajack (Jack Weeden)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: 1.9.3

When trying to use the minus operator (-) on a String, Ruby reports the following exception:

I'm not sure if this is intended behaviour but it was confusing as it led me to believe I was trying to ca

module_function for methods of same name

Issue #8261 has been reported by manveru (Michael Fellinger).

Author: manveru (Michael Fellinger)
Status: Open
Priority: Low
Assignee:
Category: core
Target version: current: 2.1.0
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]

This affects all versions from 1.8 to 2.0 I have tested.

I'd expect all three examples below to have the same output, but not only does the example with module_function end up with a private instance method, it also

Atomic attributes accessors

Issue #8259 has been reported by funny_falcon (Yura Sokolov).

Author: funny_falcon (Yura Sokolov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Motivated by this gist <a href="https://gist.github.com/jstorimer/5298581" title="https://gist.github.com/jstorimer/5298581">https://gist.github.com/jstorimer/5298581</a> and atomic gem

I propose Class.attr_atomic which will add methods for atomic swap and CAS:

=begin
class MyNode
attr_accessor :item
attr_atomic :successor

def initialize(item, successor)
@item = item
@successor =

Dir#escape_glob

Issue #8258 has been reported by steveklabnik (Steve Klabnik).

Author: steveklabnik (Steve Klabnik)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

This is inspired by <a href="https://github.com/rails/rails/issues/6010" title="https://github.com/rails/rails/issues/6010">https://github.com/rails/rails/issues/6010</a>.

Basically, if you do a Dir.glob in a directory whose name contains a glob character, things break. It would be nice to have a method which would escape the input so that we can Dir.glob inside of those directories.

Has ObjectSpace changed recently?

I just noticed that in 2.0, I see this:

a = 102.7
b = 95.1
p ObjectSpace.each_object(Float).to_a
#=> [NaN, Infinity, 1.7976931348623157e+308, 2.2250738585072014e-308]

In 1.9.3, it is

#=> [95.1, 102.7, 2.718281828459045, 3.141592653589793, NaN, Infinity,
2.220446049250313e-16, 1.7976931348623157e+308, 2.2250738585072014e-308]

So the 20 version is missing the Math::PI and E constants, along with my
two local variables.

Dave

Encouraging use of CommonRuby

I think we need to do more to encourage the use of the CommonRuby
project in bugs.ruby-lang.org.

There are currently 429 "feature" issues open in ruby-trunk. The
majority of these would affect all Ruby implementations, and are not
specific to MRI.

Top-level link for CommonRuby issues

I think we need CommonRuby available directly from the
bugs.ruby-lang.org home page. People don't know it exists, and you
have to drill down through "Ruby" to get to it.

Can someone make that happen?

- Charlie

Exception#cause to carry originating exception along with new one

Issue #8257 has been reported by headius (Charles Nutter).

Author: headius (Charles Nutter)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Often when a lower-level API raises an exception, we would like to re-raise a different exception specific to our API or library.

File#each_line omits last byte (==\0) if encoding is utf-16

Issue #8255 has been reported by arton (Akio Tajima).

Author: arton (Akio Tajima)
Status: Open
Priority: Normal
Assignee:
Category:
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-04-11) [i386-mswin32_100]

If File#each_line was given utf-16 encoded file with 'rb:utf-16', each line lacks the last one byte.
For example if the line is "a\0\r\0\n\0" in binary, the read line contains "a\0\r\0\r".

See the attchement.
This issue is

Ruby segfaults on second SystemStackError from parser

Issue #8254 has been reported by charliesome (Charlie Somerville).

Author: charliesome (Charlie Somerville)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin11.4.0]

=begin
When the parser overflows the stack, it raises SystemStackError.

The second time this happens, Ruby segfaults.

Code sample:

n = 10_000 # adjust for your platform
begin
eval "1+"

Can't eval very long strings (SystemStackError)

Issue #8253 has been reported by hammady (Hossam Hammady).

Author: hammady (Hossam Hammady)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: ruby 1.9.2p320 (2012-04-20) [x86_64-linux]

I have a very long string which is the output from a Solr server, RSolr gem fails to eval the response as a Ruby object because it is too long (> 640K).

Move minitest/pride.rb out into a gem

Issue #8249 has been reported by postmodern (Hal Brodigan).

Author: postmodern (Hal Brodigan)
Status: Open
Priority: Low
Assignee:
Category: lib
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux]

minitest/pride.rb is not essential for running minitest and introduced two global constants (PrideIO and PrideLOL). This file should be moved out of Ruby stdlib and into a gem.

Hash#traverse

Issue #8246 has been reported by zzak (Zachary Scott).

Author: zzak (Zachary Scott)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:

=begin
From ((<GH-275|URL:https://github.com/ruby/ruby/pull/275>))

Traverses the given levels of a hash and returns the value associated with the
last key provided.

Segfault installing gems on Linux PowerPC with Ruby 2.0.0p0

Issue #8245 has been reported by jamesotron (James Harton).

Author: jamesotron (James Harton)
Status: Open
Priority: Normal
Assignee: cruby-linux
Category: platform/linux
Target version: current: 2.1.0
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [powerpc-linux]

When attempting to install bundler on a freshly installed Ruby 2.0.0p0 (installed via rvm) on Ubuntu 12.10 running on a G4 PowerPC I receive the following segfault:

[08:51][jnh

Syndicate content