General

Profile

adrianomitre (Adriano Mitre)

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 6 6

Activity

02/04/2019

07:24 PM Ruby Bug #15585: Ruby 2.6.0p0 incompatible with google-protobuf C extensions
Please disregard: https://github.com/protocolbuffers/protobuf/issues/5161 adrianomitre (Adriano Mitre)
07:19 PM Ruby Bug #15585 (Third Party's Issue): Ruby 2.6.0p0 incompatible with google-protobuf C extensions
I discovered following this guide: https://grpc.io/docs/tutorials/basic/ruby.html#example-code-and-setup
The minimal setup to reproduce the error is the following:
1. install Ruby 2.6.0p0 and make it active (ex: `rbenv install 2.6.0`...
adrianomitre (Adriano Mitre)

07/29/2016

07:36 PM Ruby Feature #12638 (Closed): Symbol#to_proc probable bug (seems not to support refinements)
It is my understanding that
~~~
v.map { |x| x.foobar }
~~~
should always be equivalent to
~~~
v.map(&:foobar)
~~~
The following shows a case, involving refinements, where this is not the case.
~~~
module MyExtensions
...
adrianomitre (Adriano Mitre)

05/05/2016

08:35 PM Ruby Feature #12352 (Rejected): New hash syntax broken for numeric keys
[[Matz himself showed in RubyConf 2015 the following example]](https://www.youtube.com/watch?v=LE0g2TUsJ4U&t=13m04s):
~~~
h = { 1: 2, 2: 4, 3: 6 }
~~~
Which gives
~~~
SyntaxError: unexpected ':', expecting =>
h = { 1: 2, 2: ...
adrianomitre (Adriano Mitre)

09/01/2012

04:33 PM Ruby Feature #6958 (Rejected): buggy BigDecimal#integer?
=begin
BigDecimal#integer? always return false, which is wrong in many cases, as shown below.
x, y = BigDecimal('1'), BigDecimal('1.0')
x.integer?
#=> false
y.integer?
#=> false
x == x.to_i
#=> true
y == y.to_i...
adrianomitre (Adriano Mitre)

08/28/2012

05:52 PM Ruby Bug #6944 (Closed): BigDecimal#to_f breaks for numbers too small to be representable in Float
BigDecimal numbers too small to be representable in Float are incorrectly converted to +/-Infinity instead of 0.0 (or -0.0). Things seem to broke down when exponent is about -308.
# with 307, ok
BigDecimal('1e-307').to_f
# => 1.0e-3...
adrianomitre (Adriano Mitre)

01/31/2011

11:20 AM Ruby Bug #1145: IRB adds trailing quote to wtring methods when performing auto-completion
=begin
Yes, unfortunately it still happens.

Except for JRuby, all the following "rubies" have this defect:
* ruby-1.9.2-p136 [ x86_64 ]
* rbx-1.2.0-20101221 [ ]
* ree-1.8.7-2010.02 [ x86_64 ]
* ruby-1.8.7-p330 [ x86_64 ]
...
adrianomitre (Adriano Mitre)

01/24/2011

08:02 AM Ruby Bug #4307: include fails after undef_method
=begin
So it was a misunderstanding of #undef_method that led me to not expect the
actual behaviour. Thanks for the clarification.

I read the documentation and understood the difference between undef_method and
remove_method, b...
adrianomitre (Adriano Mitre)
04:14 AM Ruby Bug #4307 (Rejected): include fails after undef_method
=begin
After using #undef_method on a method "inherited" from a mixin, reincluding the mixin should redefine it, but that is not what happens.

Please take a look at this short IRB transcript (source attached):

>> module Foo; ...
adrianomitre (Adriano Mitre)

Also available in: Atom