DevHeads.net

Postings by Anonymous

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

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

Fix rdoc of Range#bsearch

Issue #8242 has been reported by yhara (Yutaka HARA).

Author: yhara (Yutaka HARA)
Status: Open
Priority: Normal
Assignee: mame (Yusuke Endoh)
Category: doc
Target version: current: 2.1.0
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.1]

rdoc of Range#bsearch states "the elements must be sorted", but it does not make sense for Range.

Patch:

diff --git a/range.c b/range.c
index 1e4347e..fab0718 100644
--- a/range.c
+++ b/range.c
@@ -512,11 +512,10 @@ is

SSLSocket breaks other connections or files on GC

Issue #8240 has been reported by shugo (Shugo Maeda).

Author: shugo (Shugo Maeda)
Status: Assigned
Priority: Urgent
Assignee: MartinBosslet (Martin Bosslet)
Category: ext
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev (2013-04-08 trunk 40183) [i686-linux]

When an OpenSSL::SSL::SSLSocket is recycled by GC, SSL_shutdown() is called,
and SSL_shutdown() sends a close-notify alert message.
However at the GC time, the original socket might have alrea

(one more) inconsistency between Class and Module as namespaces

Issue #8189 has been reported by alexeymuranov (Alexey Muranov).

Author: alexeymuranov (Alexey Muranov)
Status: Open
Priority: Low
Assignee:
Category: core
Target version:
ruby -v: 2.0.0

=begin
(I will only mention in parentheses that inheriting (({Class})) from (({Module})) looks like a bad idea to me, i would have preferred that both inherited from some (({Namespace})) class.)

While trying to answer ((<this SO question|URL:http://st

timeout doesn't interrupt assignment.

Issue #8187 has been reported by robertgleeson (Robert Gleeson).

Author: robertgleeson (Robert Gleeson)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Timeout does not interrupt & raise like usual with this example code:

require 'timeout'
Timeout.timeout(0.5) do
x = " "*(2**31)
end

gsub strange behavior when substituting "\\'"

Issue #8136 has been reported by alexeymuranov (Alexey Muranov).

Author: alexeymuranov (Alexey Muranov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 2.0.0

=begin
s = "\\'" # => "\\'"
print s # \'
"foo".gsub("f", s) # => "oooo"

Can anybody please explain to me why it works like this? Is this a bug?
=end

updated Curses::Window example

Issue #8121 has been reported by hramrach (Michal Suchanek).

Author: hramrach (Michal Suchanek)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

The example on <a href="http://ruby-doc.org/stdlib-2.0/libdoc/curses/rdoc/Curses/Window.html" title="http://ruby-doc.org/stdlib-2.0/libdoc/curses/rdoc/Curses/Window.html">http://ruby-doc.org/stdlib-2.0/libdoc/curses/rdoc/Curses/Window.html</a> produces somewhat garbled output. Subwindow can be used to avoid that:

require 'curses'

Curses.init_screen()

my_str = "LOOK!

Redmine Manager?

Issue #8111 has been reported by trans (SYSTEM ERROR).

Author: trans (SYSTEM ERROR)
Status: Open
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: misc
Target version:

How/Who do you contact for Redmine management issues?

Docs bug for Proc#arity

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

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

The docs for Proc#arity in proc.c claim that

proc { |x=0, y| }.arity # => 0

the result is really "1".

Compiling error on Ruby 2.0 with OpenSSL

Issue #8049 has been reported by Fallen_Zen (Piotr Panasewicz).

Author: Fallen_Zen (Piotr Panasewicz)
Status: Open
Priority: Normal
Assignee: MartinBosslet (Martin Bosslet)
Category:
Target version:
ruby -v: ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-darwin12.2.1]

Trying to compile Ruby 2.0 with newest OpenSSL installed (tried even OpenSSL 1.0.1c 10 May 2012). Getting errors, see attached image.

Keyword `object` to be used instead of `class <<`

Issue #8038 has been reported by alexeymuranov (Alexey Muranov).

Author: alexeymuranov (Alexey Muranov)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: Next Major

=begin
I propose to introduce a new keyword (({object})) and to use it instead of the mysterious (({class <<})):

object foo
def bar
# ...
end
def baz
# ...
end
end

instead of

foo = Object.new
class << foo
def bar
#

Ruby 2.0.0p0 does not list remote gems anymore

Issue #8019 has been reported by rubycoder (Ike Miller).

Author: rubycoder (Ike Miller)
Status: Open
Priority: High
Assignee:
Category:
Target version:
ruby -v: 2.0.0p0 (2013-02-24) [i386-mingw32]

gem list --remote --source <a href="http://gems.github.com" title="http://gems.github.com">http://gems.github.com</a>

-just prints "*** REMOTE GEMS ***" then sits in an endless loop; same for other gem-repositories.
-tested it with 1.9.2 from same PCs: worked fine, so it is really a 2.0.0 problem
-tested it with 32bit and 6

bootstarap test hungs at threading tests

Issue #7999 has been reported by ko1 (Koichi Sasada).

Author: ko1 (Koichi Sasada)
Status: Open
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category: core
Target version: current: 2.1.0
ruby -v: ruby 2.1.0dev

On [ruby-list:49232], Ootani-san reported that Ruby 2.0.0p0 hungs on bootstarap test hungs at threading tests.

assert_equal 'true', %{
t = Thread.new { loop {} }
begin
pid = fork {
exit t.status != "run"
}
Process.wait pid
$?.

Make iterators pass an implicit named parameter `iteration` to the executed block

Issue #7994 has been reported by alexeymuranov (Alexey Muranov).

Author: alexeymuranov (Alexey Muranov)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

=begin
I think it would be nice to be able to write something like this:

items.each do |item|
unless iteration.first?
# do something that is not applicable to the first iteration
end
# do whatever is to be done to all items

printf and sprintf integer conversion failure of string for "08" and "09"

Issue #7990 has been reported by daves (Dave Singer).

Author: daves (Dave Singer)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Happens consistently. Converting var to int explicitly first or removing the leading "0" allows it to work fine.

ISeq#to_a line info bug

Issue #7989 has been reported by ko1 (Koichi Sasada).

Author: ko1 (Koichi Sasada)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:

Please backport r39536:

* iseq.c (iseq_data_to_ary): fix condition.
r34303 introduces a bug to avoid all line information from
a result of ISeq#to_a. This is a regression problem from 2.0.0p0.
* test/ruby/test_iseq.rb: add a test of lines after ISeq#to_a.

Related r39539 is a new bug fix.

Kidsruby crashes on Ubuntu thin client

Issue #7985 has been reported by dbclin (David Clinton).

Author: dbclin (David Clinton)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: /usr/local/kidsruby/app/models/runner.rb:23:in `method_missing': undefined method `warning' for Qt::MessageBox:Class (NoMethodError) from /usr/local/kidsruby/app/models/runner.rb:23:in `save_kid_code' from /usr/local/kidsruby/app/models/runner.rb:12:in `run' from /usr/local/kidsruby/app/widgets/mai

boolean to_i

Issue #7978 has been reported by alexeymuranov (Alexey Muranov).

Author: alexeymuranov (Alexey Muranov)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: next minor

=begin
The current behavior is the following:

This does not look very consistent to me.

TracePoint call is at call point, not call site

Issue #7976 has been reported by zenspider (Ryan Davis).

Author: zenspider (Ryan Davis)
Status: Open
Priority: Normal
Assignee: ko1 (Koichi Sasada)
Category: YARV
Target version:
ruby -v: 2.0

Using TracePoint to make a new tracer utility I'm finding it very difficult to actually trace where the origin is for type :call. Instead, I get the destination.

Why __dir__, not __DIR__

Issue #7975 has been reported by yimutang (Joey Zhou).

Author: yimutang (Joey Zhou)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 2.0

There's a __FILE__ in Ruby 1.x, no __file__
Why __dir__ in Ruby 2.0 is downcase?

It's not consistent.

`block_given?` does not work inside `define_method`

Issue #7872 has been reported by alexeymuranov (Alexey Muranov).

Author: alexeymuranov (Alexey Muranov)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version:
ruby -v: 2.0.0-rc2

=begin
Is this the expected behavior?

define_method :try do
block_given? ? yield : 'no block'
end

try { 'block' } # => "no block"

However:

def try_again
block_given? ? yield : 'no block'
end

try_again { 'block' } # => "block"

=end

exec_prefix regression breaks mingw

Issue #7871 has been reported by jonforums (Jon Forums).

Author: jonforums (Jon Forums)
Status: Open
Priority: High
Assignee:
Category: build
Target version: 2.0.0
ruby -v: 2.0.0dev (2013-02-17 trunk 39287) [i386-mingw32]

Recent `exec_prefix` mods cause problems with the rubyinstaller build recipes as the new value points to the temporary build install path. Rubyinstaller build recipes build in a sandbox dir, and install in a different sandbox dir.

skip bogus openssl test failure on mingw

Issue #7851 has been reported by jonforums (Jon Forums).

Author: jonforums (Jon Forums)
Status: Open
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category:
Target version:

Please backport r36666 functionality.

Attached patch extracted from trunk@39226 enables 100% pass on my Win7 32bit using mingw gcc 4.6.2 with `make test-all`

sh-3.1$ ruby --version
ruby 1.9.3p386 (2013-02-13 revision 39218) [i386-mingw32]

sh-3.1$ make test-all
...SNIP...

invalid glibcver in test_m17n_comb.rb:test_str_crypt fails 2.17 system

Issue #7828 has been reported by jonforums (Jon Forums).

Author: jonforums (Jon Forums)
Status: Open
Priority: Normal
Assignee:
Category: test
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-12 trunk 39207) [i686-linux]

On my Arch 3.7.6 32bit system with a 2.17 libc, the following line in `test_m17n_comb.rb:test_str_crypt` causes the test to fail

glibcver = `#{RbConfig::CONFIG["libdir"]}/libc.so.6`[/\AGNU C Library.*vers

github mirror missing ruby_2_0_0 branch

Issue #7813 has been reported by jonforums (Jon Forums).

Author: jonforums (Jon Forums)
Status: Open
Priority: Normal
Assignee: ephoenix (Evan Phoenix)
Category: misc
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-08 trunk 39152) [i386-mingw32]

Please add svn's ruby_2_0_0 branch to your automated repo sync process.

Hash#keys should return a set

Issue #7796 has been reported by alexeymuranov (Alexey Muranov).

Author: alexeymuranov (Alexey Muranov)
Status: Open
Priority: Normal
Assignee:
Category: core
Target version: Next Major

=begin
In my opinion, (({Hash#keys})) should return an instance of (({Set})).
=end

fix for abstract namespace

Issue #7786 has been reported by shugo (Shugo Maeda).

Author: shugo (Shugo Maeda)
Status: Assigned
Priority: Normal
Assignee: usa (Usaku NAKAMURA)
Category:
Target version:

=begin
Please apply the attached patch to Ruby 1.9.3.

In Ruby 1.9.3, the addrlen argument for bind(2) and connect(2) is set to sizeof(struct sockaddr_un).
However, on Linux, if sun_path starts with NUL, which means that the socket's address is in abstract namespace, the first (addrlen - sizeof(s

r39055 creates test failures and functionality loss

Issue #7784 has been reported by jonforums (Jon Forums).

Author: jonforums (Jon Forums)
Status: Open
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-05 trunk 39055) [i386-mingw32]

The r39055 patch for rubygems security (lib/rubygems/config_file.rb) causes 11 `make test-all` failures

<a href="http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/659/console" title="http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/659/console">http://ci.rubyinstaller.org/job/ruby-trunk-x64-test-all/659/console</a>

and loss of gem comm

embedded rubygems 2.0.0.rc.2 mangles --user-install

Issue #7779 has been reported by jonforums (Jon Forums).

Author: jonforums (Jon Forums)
Status: Open
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2013-02-04 trunk 39035) [i686-linux]

This is low priority for my usage, and while I'm not investigating the issue anytime soon, I'm surfacing it here in case it's not my system issue and it affects 2.0.0 readiness.