Activity
From 10/21/2016 to 10/27/2016
10/27/2016
-
11:17 PM Feature #12012: Add Boolean method
- You can use **`wannabe_bool`** gem: https://github.com/prodis/wannabe_bool
-
11:14 PM Feature #11848: New #to_b method for String, Symbol, Numeric, NilClass, TrueClass and FalseClass.
- Andrew Vit wrote:
> I've had to do this in a few places over the years myself:
> ...
Andrew Vit, you can use **`wannabe_bool`** gem: https://github.com/prodis/wannabe_bool -
10:01 PM Bug #12859 (Third Party's Issue): Bug on Rails Console?
- It's sqlite3 gem issue.
-
09:47 PM Bug #12859: Bug on Rails Console?
- Shyouhei Urabe wrote:
> The message you pasted is not full. There should be something before the part you copied. Can you disclose the log from the beginning of the "enter to rails console" you say?
```
irb(main):001:0> user = Use... -
02:28 PM Revision 8998c064 (git): ruby/ruby.h: optimize rb_integer_type_p
- * include/ruby/ruby.h (rb_integer_type_p): turn into macro to help
clang based on old gcc to eliminate CSE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:18 PM Bug #12876 (Closed): Calling new hangs Ruby when class prepends an empty module and makes initialize method public
- ```ruby
module Foo
end
class Bar
prepend Foo
public :initialize
end
p Bar.new # => hangs
```
## Runs OK
* ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-darwin14.0]
* ruby 2.1.1p76 (2014-02-24 revision 45161) [... -
02:09 PM Bug #12875 (Closed): Fixnum bit operator and coerce
- The following code raises "Test can't be coerced into Fixnum (TypeError)"
~~~ ruby
class Test
attr_accessor :value
def initialize(value)
@value = value
end
def |(other)
case(other)
when Test
@value |... -
07:48 AM Bug #12743: throw(false) does not work as expected
- ruby_2_2 r56505 merged revision(s) 56252,56254.
- 07:48 AM Revision 04b03165 (git): merge revision(s) 56252,56254: [Backport #12743]
- * eval_intern.h (TH_PUSH_TAG): Initialize struct rb_vm_tag::tag with
Qundef rather than 0 which is equal to Qfalse. Since Kernel#throw(obj)
searches a tag with rb_vm_tag::tag == obj, throw(false) can
acciden... -
07:47 AM Bug #12822: Backport r56374 (fix monthly log rotate with DST)
- ruby_2_2 r56504 merged revision(s) 56374.
- 07:47 AM Revision ad559b5c (git): merge revision(s) 56374: [Backport #12822]
- * lib/logger.rb (Logger::Period#next_rotate_time): fix monthly log
rotate when DST is applied during a month of 31 days.
[Fix GH-1458]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56504 b2dd03c8-39d... -
07:44 AM Feature #12802: Add BLAKE2 support to Digest
- https://github.com/nobu/ruby/tree/feature/digest/sha3
-
07:10 AM Feature #12802: Add BLAKE2 support to Digest
- Is there still a supported environment without 64-bit integer support? ext/digest/sha2/sha2.c is already using 64-bit integers. It is compiled only when OpenSSL (or CommonCrypto) is not available, but the current versions of OpenSSL also...
-
01:32 AM Feature #12802: Add BLAKE2 support to Digest
- I meant that BLAKE2b seems to need `uint64_t`.
If a compiler does not support such large integer type, isn't BLAKE2b usable on that platform?
-
07:39 AM Bug #12872 (Rejected): COMMAND LINE ERROR when tried gem --help
- You load an extension library for 2.3 from 2.0.0.
-
06:20 AM Bug #12872 (Rejected): COMMAND LINE ERROR when tried gem --help
- ```
Ignoring executable-hooks-1.3.2 because its extensions are not built. Try: gem pristine executable-hooks --version 1.3.2
Ignoring ffi-1.9.14 because its extensions are not built. Try: gem pristine ffi --version 1.9.14
Ignoring g... -
07:38 AM Bug #12823: compile issues 2.2.5 with cygwin
- ruby_2_2 r56503 merged revision(s) 55232.
- 07:38 AM Revision 9e4e7771 (git): merge revision(s) 55232: [Backport #12823]
- crypt.c: protoize
* missing/crypt.c: protoize function definitions and make
always-zero functions void.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@56503 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 07:34 AM Revision 34ef129b (git): * tool/redmine-backporter.rb (rel): check the exception and show right
- message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56502 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:31 AM Bug #12874 (Third Party's Issue): Eventmachine recompile with openssl-win64 error
- eventmachine recompile with ruby225-32 and Win32 OpenSSL v1.0.2j run ok (almost only way) but can't run when recompile with ruby225-64 and (Win64 OpenSSL v1.0.2j or Win64 OpenSSL v1.1.0b)
detail:
```
PS C:\Code\Gems\eventmachine... -
07:27 AM Bug #11736: Float(arg) not consistent with documentation
- ruby_2_2 r56501 merged revision(s) 56421,56422.
- 07:27 AM Revision 331fea27 (git): merge revision(s) 56421,56422: [Backport #11736]
- * object.c: Improve documentation for Integer conversion.
[ruby-core:71661][Bug #11736][ci skip]
* object.c: Improve documentation for Float conversion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_2@5... -
07:22 AM Bug #12873 (Closed): Eventmachine recompile with openssl-win64 error
-
06:26 AM Revision 07acd05f (git): test/digest/test_digest.rb: fold long lines
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56500 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
05:58 AM Revision 4530a8ef (git): socket: fix rdoc of UDPSocket#recvfrom_nonblock
- * ext/socket/lib/socket.rb (UDPSocket#recvfrom_nonblock): [DOC] Remove
a false statement "If _maxlen_ is omitted, its default value is
65536." maxlen, the first parameter, cannot be omitted as the method
signature indicates. This h... -
04:46 AM Feature #12871 (Closed): Using the algorithm like math.fsum of Python for Array#sum
- Array#sum uses the Kahan's algorithm for Float values now. But it returns inaccurate value in some case like below.
~~~ ruby
# ruby 2.4.0-preview2
[10000000000.0, 0.0000000001, -10000000000.0].sum #=> 0.0 (expected 0.0000000001)
~~... -
12:45 AM Revision 38fa442d (git): fix typos [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56498 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:42 AM Revision c9485585 (git): object.c: fixable float to fixnum
- * object.c (rb_convert_to_integer): convert a fixable float to a
fixnum directly without the convesion method, as well as bignum
case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 12:12 AM Revision cc08515c (git): * 2016-10-27
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:12 AM Revision 9396660a (git): object.c: use converted string
- * object.c (rb_convert_to_integer): should not drop the converted
string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56495 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/26/2016
-
04:47 PM Feature #12802: Add BLAKE2 support to Digest
- BLAKE2b will work on 32-bit CPUs but is optimized for 64-bit CPUs
-
03:52 PM Feature #12802: Add BLAKE2 support to Digest
- Is BLAKE2b unavailable if 64-bit integer is unavailable?
-
12:26 PM Revision 54354c06 (git): fix a typo [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
08:10 AM Revision de2773a3 (git): ruby.h: use prefixed macro
- * include/ruby/ruby.h (rb_intern): use prefixed version macro
RUBY_CONST_ID_CACHE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56493 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
06:11 AM Revision 4e44f6ef (git): [DOC] replace Fixnum with Integer [ci skip]
- * numeric.c: [DOC] update document for Integer class.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:34 AM Revision 6c4903ce (git): * 2016-10-26
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:34 AM Revision 722ac44a (git): * NEWS: added several entries [ci skip]
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56490 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
10/25/2016
-
07:05 PM Feature #11925: Struct construction with kwargs
- To be prepared for "the great unification of constructors" of course.
It looked like a pretty logical step to support while I was coding this. It's also pretty easy to remove again -
06:54 PM Feature #11925: Struct construction with kwargs
- Herwin W wrote:
> ~~~ ruby
> ...
Why does `new_from_kwargs` accept other than keyword arguments? -
06:37 PM Feature #11925: Struct construction with kwargs
- https://github.com/ruby/ruby/pull/1468
A proposal for an implementation.
~~~ ruby
irb(main):001:0> MyClass = Struct.new(:a, :b, :c)
=> MyClass
irb(main):002:0> MyClass.new_from_kwargs(a:1, c: 3)
=> #<struct MyClass a=1, b=nil, ... -
06:58 AM Feature #11925: Struct construction with kwargs
- What about `new_from_kwargs(**kwargs)` ? It's a bit long, but it describes the functionality exactly.
-
06:38 PM Feature #11210: IPAddr has no public method to get the current subnet mask
- Any progress? I believe all the comments have been addressed.
-
01:05 PM Bug #12870 (Closed): Crash when querying with activerecord
- I have a control named entry1 in Visual Ruby project.
In entry2__changed method I populate a list view
I get this error message:
/usr/local/lib/ruby/gems/2.3.0/gems/activerecord-5.0.0/lib/active_record/connection_adapters/mysql/da... -
07:01 AM Feature #9209: Struct instances creatable with named args
- This looks like a duplicate of #11925 (or maybe the other way around, but the other ticket includes more information)
-
05:06 AM Feature #12869: open-uri's open rejects `BOM' in encoding
- https://github.com/ruby/ruby/compare/trunk...nobu:feature/12869-open-uri-bom
-
03:54 AM Bug #12832 (Closed): Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
- Applied in changeset r56489.
----------
proc.c: follow the original class
* proc.c (mnew_internal): follow the original class, not to loop
the prepended module. [ruby-core:77591] [Bug #12832] -
03:54 AM Revision d977cd4e (git): proc.c: follow the original class
- * proc.c (mnew_internal): follow the original class, not to loop
the prepended module. [ruby-core:77591] [Bug #12832]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
03:48 AM Revision 58206933 (git): [DOC] table format refined.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
- 03:32 AM Revision f785ac9f (git): * 2016-10-25
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
03:32 AM Revision e694894d (git): [DOC] add description of j and J for unpack.
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:42 AM Feature #10208: Passing block to Enumerable#to_h
- Not a direct translation of the proposed method, but Hash#transform_values is now available. https://bugs.ruby-lang.org/issues/12512
10/24/2016
-
09:44 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- super is in sync with `__method__` because they are designed to be in sync, `__method__` called from a block typically returns the enclosing method of the block but not always, when the block is invoked as a method, `__method__` returns ...
-
09:03 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- bug hit wrote:
> Jeremy Evans wrote:
> ...
When the block with super is invoked by Class2.call_stored_block, `foo` is the current method at that point, according to `__method__`. This is simple to see by changing Class1.foo to raise an... -
05:35 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- Jeremy Evans wrote:
>
> ...
Except it's not.
```ruby
class Class1
def self.foo
'Class1::foo'
end
end
class Class2 < Class1
def self.store_block(&block)
@block = block
end
def self.foo
store_bloc... -
04:42 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- bug hit wrote:
> Jeremy Evans wrote:
> ...
If method resolution is always dynamic, and super is directly related to method resolution, it would certainly be odd for super to always be lexical, right?
One could argue that super is cu... -
04:04 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- Jeremy Evans wrote:
> method calls in blocks are sometimes lexical and sometimes dynamic, depending on how the block is invoked.
> ...
Method resolution is never lexical, it is always relative to the current, dynamic self. -
03:57 PM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- bug hit wrote:
> it would have to fail the same way instance_eval of the block (with super) fails when self is wrong (self has wrong type to call super in this context).
to expand on that, super normally binds to the method (class + ... -
06:01 AM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- Shyouhei Urabe wrote:
> bug hit wrote:
> ...
you probably meant to call the defined :foo?
```ruby
class Foo
def self.foo
'foo@foo'
end
end
class Bar < Foo
def self.bar(&block)
define_singleton_method :foo, &b... -
04:20 AM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- I don't think this is a bug, the ability to change the scope of a block is just part of ruby, and arguably one of the things that makes ruby flexible and a joy to program in:
~~~ ruby
foo = proc do
bar
end
foo.call # main.bar ... -
03:59 AM Feature #12861: super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- bug hit wrote:
> I think it would be better if super were always lexically scoped
Agreed but... What should then happen for inter-class block passing situation, like this?
```ruby
class Foo
def self.foo
'foo@foo'
end
... -
05:24 PM Feature #10208: Passing block to Enumerable#to_h
- So, we need a different name for this.
Here's some candidates I can think of:
- hash_by (proposed above)
- to_h_by
- hash_map
- map_h
- map_to_h
-
05:24 PM Bug #12832: Calling Object#method hangs for private method defined on module then made public once it's been used to extend class
- I'm not sure whether this is useful information but calling `#instance_method` on `Bar`'s metaclass also causes Ruby to hang. Using James's most recent code snippet, the following code seems to cause the same problem as `Bar.method(:foo)...
-
12:13 PM Feature #12867: Add ability to check validity of a URL
- Shlok Srivastava wrote:
> Shyouhei Urabe wrote:
> ...
`http:invalid-url` is invalid according to the scheme-specific definition in RFC7230, but is valid and parses according to RFC3986. Depending on one's viewpoint, there's either no w... -
11:54 AM Feature #12867: Add ability to check validity of a URL
- Shyouhei Urabe wrote:
> Doesn't URI.parse work for you?
As URI.parse actually check for valid URIs and not URLs
I tried something like this:
~~~ ruby
URI.parse(some_string).scheme == "http"
~~~
But it returns true for inva... -
12:14 AM Feature #12867: Add ability to check validity of a URL
- Doesn't URI.parse work for you?
-
10:47 AM Feature #12869 (Open): open-uri's open rejects `BOM' in encoding
- Kernel.#openのエンコード指定では、BOMへの対応も指定できます。
```ruby
open('foo.txt', 'r:BOM|UTF-8') ...
```
open-uriが再定義したopenでURLをオープンするときにも同じ動作を期待して実行してみます。
```ruby
require 'open-uri'
open('http://example.com/foo.txt', 'r:BOM|UTF-8') ...
```
... -
08:51 AM Bug #12830: OpenSSL 1.1.0+ support?
- Thx for investigation. I can confirm that r55074 make the Typhoeus (and Ethon) to pass its test suite.
-
08:49 AM Bug #12868: Please backport r55074 (openssl, fix ex_data index for X509_STORE_CTX)
- I am going to use this patch [1] in Fedora if it helps.
[1]: http://pkgs.fedoraproject.org/cgit/rpms/ruby.git/tree/ruby-2.4.0-openssl-register-ex_data-index-for-X509_STORE-_CTX-r.patch -
07:29 AM Bug #9839 (Rejected): Segment fault in http
- This should have been fixed at [Bug #9592]. I suspect Paul's is another issue ([Bug #12292]), though, I can't tell without a reproducer.
-
07:11 AM Feature #5462 (Closed): TLS support for WEBrick::HTTPProxyServer
- It seems it does. TestWEBrickHTTPProxy#test_connect in test/webrick/test_httpproxy.rb is testing.
-
07:07 AM Bug #12849 (Rejected): Ruby 2.3.1 build fails with FreeBSD 11
- It turned out to be an issue of mixing two different OpenSSL installations.
-
07:05 AM Bug #8673 (Closed): User rest-client PUT request core dumped
- Fixed by 66c1da57eb03 at new upstream[1] and imported by r56027 ("import Ruby/OpenSSL 2.0.0.beta.1").
[1]: https://github.com/ruby/openssl/commit/66c1da57eb03c19f96f3f1c843ea2a93dca3d243 -
03:50 AM Bug #12859 (Feedback): Bug on Rails Console?
- The message you pasted is not full. There should be something before the part you copied. Can you disclose the log from the beginning of the "enter to rails console" you say?
-
03:46 AM Revision e62586fd (git): test_thread.rb: count accurately
- * test/ruby/test_thread.rb (test_thread_timer_and_interrupt):
count only signal handling time accurately without setup and
cleanup time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:52 AM Revision 3bf10b04 (git): test/unit.rb: show idling workers
- * test/lib/test/unit.rb (Test::Unit::Parallel#deal): update the
job status after a task finished, to show idling workers.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:51 AM Revision 05269030 (git): complex.c: undefine Comparable methods
- * complex.c (Init_Complex): undefine methods inherited from
Comparable, because Complex does not have <=> method.
[Bug #12866]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:49 AM Revision 4065c38a (git): class.c: rb_undef_methods_from
- * class.c (rb_undef_methods_from): undefine methods defined in
super from klass.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56482 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:34 AM Revision 3bda7386 (git): refine assertions
- * test/ruby/test_complex.rb, test/ruby/test_rational.rb: refine
assertions for descriptive messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56481 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:19 AM Bug #12866 (Closed): Complex should not respond to clamp
- Applied in changeset r56479.
----------
complex.c: undefine clamp
* complex.c (Init_Complex): undefine Complex#clamp, which does not
work like other Comparable methods, because Complex does not
have <=> method. patched by Tim Pete... - 01:19 AM Revision d2d44828 (git): * 2016-10-24
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56480 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
01:19 AM Revision 7a981220 (git): complex.c: undefine clamp
- * complex.c (Init_Complex): undefine Complex#clamp, which does not
work like other Comparable methods, because Complex does not
have <=> method. patched by Tim Peters <zomg.tim AT gmail.com>
in [ruby-core:77720]. [Bug #12866]
gi...
10/23/2016
-
03:23 PM Bug #12309 (Rejected): Segmentation fault caused by OpenSSL
- It looks like the same issue as [Bug #12292] rather than [Bug #12126], because #12126 should not be a cause of a segfault. (and net/http does not use SSLSocket#write_nonblock, does it?)
Please provide a reproducer if it is a different... -
03:16 PM Bug #10522 (Rejected): SSL_VERSION not handled properly in Net::Http, OpenSSL libraries
- As commented at the GitHub PR, there doesn't seem to be anything wrong. `ssl_socket.set_params(ssl_version: :TLSv1)` should be equivalent to `ssl_socket.set_params; ssl_socket.ssl_version = :TLSv1`.
-
03:14 PM Bug #10479 (Rejected): OpenSSL not upgrading to 1.0.1j while recompiling Ruby.
- The version string in OpenSSL::OPENSSL_VERSION is not the version running with but the OpenSSL version compiled with. Current versions of Ruby have OpenSSL::OPENSSL_LIBRARY_VERSION for the actual loaded version.
-
03:13 PM Bug #10799 (Rejected): Segmentation fault in Tests
- I can't tell without a reproducer but the symptoms looks like similar to [Bug #12292].
-
03:10 PM Bug #12646 (Rejected): When using sidekiq in rails and call multiple times
- Sounds like [Bug #12292]. Please provide a reproducer if it does not fix.
-
03:04 PM Bug #9714 (Rejected): Ruby configured to call OpenSSL engine API when it shouldn't
- Indeed we should check for OPENSSL_NO_ENGINE instead of the existence of openssl/engine.h, and it's actually done in trunk (r55162).
However it is strange that this causes a runtime error. The existence of the header is checked by the... -
02:16 PM Feature #12867: Add ability to check validity of a URL
- I'd also love to work on this for my project over at the Fuss / Simply be http://www.thefuss.co.uk/simply-contact-number
-
06:53 AM Feature #12867 (Open): Add ability to check validity of a URL
- Hi!
Going through the URI module of Ruby, it was obvious that we can check the validity of a URI by using URI.regexp . However, I found out there is no way we can accurately check for a valid URL by using the URI module. Won't it be bet... -
02:12 PM Bug #12830: OpenSSL 1.1.0+ support?
- Yes, X509_STORE_{get,set}_ex_data() are implemented in ext/openssl/openssl_missing.c. In this specific case, applying r55074 that converted them into macros should fix (backport ticket: [Bug #12868]).
-
02:02 PM Bug #12868 (Closed): Please backport r55074 (openssl, fix ex_data index for X509_STORE_CTX)
- Please backport r55074 ("openssl: register ex_data index for X509_STORE{_CTX,} respectively").
In Ruby <= 2.3, ext/openssl misused one ex_data index for both X509_STORE and X509_STORE_CTX, and it was working just by chance. This will ... -
08:05 AM Feature #12858: Supporting batch-requiring of files in ruby
- You realize [this gem](https://rubygems.org/gems/require_all/) does exactly that?
-
02:48 AM Bug #12862: Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- Matthew Kerwin wrote:
> Leo Amigud wrote:
> ...
Thank you for the explanation!
Leo -
02:41 AM Revision 2639eaeb (git): encoding.h: include ruby/ruby.h
- * include/ruby/encoding.h: include "ruby/ruby.h" explicitly for
enum ruby_fl_type and VALUE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56478 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:03 AM Revision 49432c84 (git): * 2016-10-23
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56477 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:03 AM Revision 9be1910a (git): test_refinement.rb: Symbol#to_proc test
- * test/ruby/test_refinement.rb (test_symbol_proc): a Symbol is
converted to a Proc in the caller's context. [Feature #9451]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56476 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:56 AM Bug #12866 (Closed): Complex should not respond to clamp
- `Comparable#clamp` has been added, but doesn't work in `Complex`. It should be undefined on `Complex` like other `Comparable` methods are.
10/22/2016
-
11:21 PM Bug #12862: Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- Leo Amigud wrote:
>
> ...
It's what Hans quoted and said:
"When named capture groups are used **with a literal regexp** *[i.e. not an interpolated regexp]* ... the captured text is also assigned to local variables ..."
`/(?<doll... -
10:59 PM Bug #12862: Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- Hans Mackowiak wrote:
> it did took me a while to understand what you mean, because the regexp are displayed wrong.
> ...
Sorry, not sure what you mean.
As a matter of fact i can use regexp like:
irb(main):013:0> numbers = '\d+'
... -
03:51 PM Bug #12862: Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- it did took me a while to understand what you mean, because the regexp are displayed wrong.
"When named capture groups are used with a literal regexp on the left-hand side of an expression and the =~ operator, the captured text is als... -
03:46 AM Bug #12862 (Closed): Regular Expression Named Group Matching does not work with #{} (Similar? to issue #2778)
- Loading development environment (Rails 4.2.5)
```
irb(main):001:0> /\$(?<dollars>\d+)\.(?<cents>\d+)/ =~ "$3.67"
=> 0
irb(main):002:0> dollars
=> "3"
```
BUT:
```
irb(main):001:0> numbers = '\d+'
=> "\\d+"
irb(main):002:... -
02:33 PM Revision 2adba2dc (git): parse.y: append to buffer
- * parse.y (reg_compile_gen): always append error message to the
error buffer.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56475 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:33 PM Bug #12864 (Closed): Regression comparing Integer (Fixnum) to Comparable (2.4.0-preview2)
- Applied in changeset r56474.
----------
numeric.c: fix up r55891
* numeric.c (num_funcall1): check recursion by inverse pair, to
fix fake infinite recursion. [ruby-core:77713] [Bug #12864] -
10:48 AM Bug #12864 (Closed): Regression comparing Integer (Fixnum) to Comparable (2.4.0-preview2)
- If you have a class including `Comparable` and expecting to be compared to `Integer`, equality test doesn't work anymore. This worked in 2.3.1.
Example:
~~~ruby
class MyInteger
include Comparable
def initialize(i)
... -
01:33 PM Revision bd3eb8af (git): numeric.c: fix up r55891
- * numeric.c (num_funcall1): check recursion by inverse pair, to
fix fake infinite recursion. [ruby-core:77713] [Bug #12864]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56474 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:46 PM Bug #12865 (Closed): openssl: segmentation fault when nil is passed as key
-
12:24 PM Bug #12865 (Closed): openssl: segmentation fault when nil is passed as key
- This bug occurs both on Gentoo and Ubuntu 16.04.
Steps to reproduce on ruby 2.3.1:
irb(main):001:0> require 'openssl'
=> true
irb(main):002:0> OpenSSL::PKey::RSA.new.public_encrypt("")
(irb):2: [BUG] Segmentation fault at 0x0000... -
09:52 AM Bug #12863 (Closed): Hash#compact! behavior different from the Active Support Hash#compact!
- Applied in changeset r56473.
----------
hash.c: fix Hash#compact! return value
* hash.c (rb_hash_compact_bang): should return nil if no elements
is deleted. [ruby-core:77709] [Bug #12863] -
09:10 AM Bug #12863: Hash#compact! behavior different from the Active Support Hash#compact!
- Hm, looks like returning `nil` (if nothing was dropped) is standard behavior of [Hash#reject!](https://ruby-doc.org/core-1.9.3/Hash.html#method-i-reject-21). Weird.
-
09:03 AM Bug #12863: Hash#compact! behavior different from the Active Support Hash#compact!
- What is the reason of returning `nil` in that case? I believe in standard containers all bang-versions always return self?
-
08:23 AM Bug #12863 (Closed): Hash#compact! behavior different from the Active Support Hash#compact!
- Hash#compact and Hash#compact! were added in https://bugs.ruby-lang.org/issues/11818 but the Hash#compact! is different from Active Support. Please check following snippet:
~~~ ruby
# Active Support
>> hash = { a: true, b: false, c:... -
09:52 AM Revision 4154b960 (git): hash.c: fix Hash#compact! return value
- * hash.c (rb_hash_compact_bang): should return nil if no elements
is deleted. [ruby-core:77709] [Bug #12863]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:28 AM Bug #11863 (Closed): configure/makefile needs to follow the standard behavior
- Applied in changeset r56472.
----------
configure.in: fallback DLDFLAGS to LDFLAGS
* configure.in (DLDFLAGS): fallback to LDFLAGS.
[ruby-core:72444] [Bug #11863]
* configure.in (LIBRUBY_DLDFLAGS): fallback to DLDFLAGS. -
01:28 AM Bug #10830 (Closed): LDFLAGS not honoured when linking libruby.so
- Applied in changeset r56472.
----------
configure.in: fallback DLDFLAGS to LDFLAGS
* configure.in (DLDFLAGS): fallback to LDFLAGS.
[ruby-core:72444] [Bug #11863]
* configure.in (LIBRUBY_DLDFLAGS): fallback to DLDFLAGS. -
01:28 AM Revision 5caaef7a (git): configure.in: fallback DLDFLAGS to LDFLAGS
- * configure.in (DLDFLAGS): fallback to LDFLAGS.
[ruby-core:72444] [Bug #11863]
* configure.in (LIBRUBY_DLDFLAGS): fallback to DLDFLAGS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
01:27 AM Revision 5ccf58eb (git): configure.in: fix RUBY_{APPEND/PREPEND}_OPTION
- * configure.in (RUBY_APPEND_OPTION, RUBY_PREPEND_OPTION): expand
the option to be appended/prepended when matching, as well as
RUBY_APPEND_OPTIONS and RUBY_PREPEND_OPTIONS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56471 b2... - 12:53 AM Revision f0f3f225 (git): * 2016-10-22
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
12:52 AM Revision d506a352 (git): compile.c: order with splatting
- * compile.c (setup_args): duplicate splatting array if more
arguments present to obey left-to-right execution order.
[ruby-core:77701] [Bug# 12860]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56469 b2dd03c8-39d4-4d8f-98ff-823f...
10/21/2016
-
10:31 PM Feature #12664: Multiline pretty-printing of multiline strings
- Thanks!
-
09:30 PM Bug #12548: Rounding modes inconsistency between round versus sprintf
- Benoit says RubySpec PR #322 looks good. Just waiting for us to commit round-to-nearest-even mode to MRI so he can merge it. I've used [Nobu's branch](https://github.com/nobu/ruby/tree/round-to-even) locally, including to create PR #322,...
-
06:59 PM Feature #12861 (Feedback): super in a block can be either lexically or dynamically scoped depending on how the block is invoked
- ```ruby
class Class1
def self.foo
'foo'
end
def self.method1
'method1'
end
end
class Class2 < Class1
def self.foo
bar do
super()
end
end
def self.bar(&block)
a = block.()
def... -
02:44 PM Bug #12860: Splatting an argument does not obey left-to-right execution order
- It is worth mentioning that if the splatted value is not an array, we can see that `to_a` does get called before `shift`. That makes this even more unintuitive, since the calls happen in proper order but the assembly of the args list hap...
-
02:42 PM Bug #12860: Splatting an argument does not obey left-to-right execution order
- This behavior appears to go back as far as Ruby 1.9.3. Ruby 1.8.7 and earlier could not have regular arguments after a splat.
-
02:39 PM Bug #12860: Splatting an argument does not obey left-to-right execution order
- Rails PR (which unpacks via multi-assign to avoid this bug) filed here: https://github.com/rails/rails/pull/26854
-
02:29 PM Bug #12860 (Closed): Splatting an argument does not obey left-to-right execution order
- Ruby evaluates arguments left to right, but it does not appear to handle construction of the eventual argument list from left to right.
Take this example:
```ruby
def foo(*args)
p args
end
ary = [1,2]
foo(*ary, ary.shift... -
12:50 PM Bug #12859 (Third Party's Issue): Bug on Rails Console?
- I create a new project and use scaffold.
So after i create my model, view and controller i enter to rails console
```ruby
p = Property.new
```
And i get all of this errors:
(snip)
-
12:47 PM Bug #11863: configure/makefile needs to follow the standard behavior
- Ping? What is the status here?. Now I noticed that the LDFLAGS are not used during build of Fedora package, so Ruby is not properly hardened as it should be. That is unexpected :/
-
10:40 AM Bug #12830: OpenSSL 1.1.0+ support?
- According to Fedora OpenSSL maintainer, there seems to be conflict in X509_STORE_set_ex_data symbol. The symbols which are from latest OpenSSL should not be defined locally with the same name (unless they are static).
-
10:32 AM Bug #12830: OpenSSL 1.1.0+ support?
- Ok, so now we have openssl-1.1.0b-3.fc26 as well as compat-openssl10-1.0.2j-5.fc26 (including -devel subpackage) on Fedora Rawhide, so it should be possible to build older Ruby, but unfortunately, some other libraries fail, since they lo...
-
09:04 AM Bug #11929: No programatic way to check ability to dup/clone an object
- Mike, your last proposal is simple, beautiful and smart.
```
1.dup #=> 1
``` -
07:55 AM Revision e1ff9d68 (git): fix r56467
- * test/ruby/test_dir.rb (test_glob_gc_for_fd): needs
RLIMIT_NOFILE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:44 AM Revision 5d20d347 (git): dir.c: retry glob with GC
- * dir.c (do_opendir): retry after GC when the limit for open file
descriptors reached.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:40 AM Revision 9590e990 (git): dir.c: use rb_gc_for_fd
- * dir.c (rb_dir_s_empty_p): use rb_gc_for_fd for the condition to
invoke GC by errno.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:40 AM Revision 1e09d98b (git): dir.c: inline to_be_ignored
- * dir.c (to_be_ignored): make an inline function to get rid of
multiple errno function calls.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56465 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:40 AM Revision ccc9841a (git): prefer rb_syserr_fail
- * dir.c (dir_initialize, dir_read): prefer rb_syserr_fail over
rb_sys_fail.
* io.c (ruby_dup, rb_sysopen): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
07:12 AM Feature #12858 (Open): Supporting batch-requiring of files in ruby
- Hello. This is a very short proposal, unlike some of my previous
ones; and it also is hopefully possibly better than some of my
other proposals before.
Could we have a way to batch-require .rb files from a directory?
Right now we... -
07:06 AM Revision 4791b2bc (git): ruby.c: retry loading with GC
- * ruby.c (open_load_file): retry after GC when the limit for open
file descriptors reached.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
02:38 AM Revision 0ce60522 (git): test_require.rb: reduce GC
- * test/ruby/test_require.rb (test_loading_fifo_fd_leak): invoke GC
only when FDs exhausted to reduce the test time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e - 02:34 AM Revision 81e687d2 (git): * 2016-10-21
- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-
02:34 AM Revision 3ba353fc (git): Fixed typo [ci skip]
- * string.c (rb_str_sub, rb_str_gsub): [DOC] 'backlash' should read
'backslash'. [Fix GH-1461]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e -
12:08 AM Bug #12857 (Third Party's Issue): macOS Sierra sqlite3 bug
-
12:04 AM Misc #12781: Segmentation fault on macOS Sierra (sqlite3_adapter.rb)
- It's said that it is an Apple's bug.
Try to install sqlite3 by HomeBrew, MacPorts, or etc.
http://stackoverflow.com/questions/39812707/segmentation-fault-with-rails-after-upgrading-to-os-sierra-possibly-related-to
https://bugs.pytho...