[#83096] File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?}) — Nobuyoshi Nakada <nobu@...>
On 2017/10/04 8:47, normal@ruby-lang.org wrote:
5 messages
2017/10/04
[#83100] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Eric Wong <normalperson@...>
2017/10/04
Nobuyoshi Nakada <nobu@ruby-lang.org> wrote:
[#83105] Re: File.setuid? on IO (Re: [ruby-cvs:67289] normal:r60108 (trunk): file.c: release GVL in File.{setuid?, setgid?, sticky?})
— Nobuyoshi Nakada <nobu@...>
2017/10/04
On 2017/10/04 15:55, Eric Wong wrote:
[#83107] Alias Enumerable#include? to Enumerable#includes? — Alberto Almagro <albertoalmagro@...>
Hello,
9 messages
2017/10/04
[#83113] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/05
This has been requested countless times, then rejected each and every time.
[#83129] Re: Alias Enumerable#include? to Enumerable#includes?
— Alberto Almagro <albertoalmagro@...>
2017/10/05
Sorry I didn't found it on the core mail list's archive.
[#83138] Re: Alias Enumerable#include? to Enumerable#includes?
— "Urabe, Shyouhei" <shyouhei@...>
2017/10/06
Ruby has not been made of popular votes so far. You have to show us
[#83149] Re: Alias Enumerable#include? to Enumerable#includes?
— Eric Wong <normalperson@...>
2017/10/06
Alberto Almagro <albertoalmagro@gmail.com> wrote:
[#83200] [Ruby trunk Feature#13996] [PATCH] file.c: apply2files releases GVL — normalperson@...
Issue #13996 has been reported by normalperson (Eric Wong).
4 messages
2017/10/10
[ruby-core:83174] [Ruby trunk Bug#13987] Ripper.sexp named parameters with default values, double splat parameter
From:
Greg.mpls@...
Date:
2017-10-08 00:58:48 UTC
List:
ruby-core #83174
Issue #13987 has been reported by MSP-Greg (Greg L).
----------------------------------------
Bug #13987: Ripper.sexp named parameters with default values, double splat parameter
https://bugs.ruby-lang.org/issues/13987
* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
* ruby -v: ruby 2.5.0dev (2017-10-07 trunk 60132) [x64-mingw32]
* Backport: 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
The following is the pertinent section from `Ripper.sexp("def hello(bln: true, int: 1, str: 'str', sym: :sym) end")`. Info about default values is missing:
```
ruby 2.5.0dev (2017-10-07 trunk 60132) [x64-mingw32]
[[:@label, "bln:", [1, 10]], [:@label, "bln:", [1, 10]]]
[[:@label, "int:", [1, 21]], [:@label, "int:", [1, 21]]]
[[:@label, "str:", [1, 29]], [:@label, "str:", [1, 29]]]
[[:@label, "sym:", [1, 41]], [:@label, "sym:", [1, 41]]]
ruby 2.5.0dev (2017-10-02 trunk 60101) [x64-mingw32]
[[:@label, "bln:", [1, 10]], [:var_ref, [:@kw, "true", [1, 15]]]]
[[:@label, "int:", [1, 21]], [:@int, "1", [1, 26]]]
[[:@label, "str:", [1, 29]], [:string_literal, [:string_content, [:@tstring_content, "str", [1, 35]]]]]
[[:@label, "sym:", [1, 41]], [:symbol_literal, [:symbol, [:@ident, "sym", [1, 47]]]]]
```
I used the following test added to `test\ripper\test_sexp.rb`:
```ruby
def test_named_with_default
sexp = Ripper.sexp("def hello(bln: true, int: 1, str: 'str', sym: :sym) end")
named = String.new
search_sexp(:params, sexp)[5].each { |i| named << "#{i}\n" } # join flattens
exp = <<~SEXP.strip
[[:@label, "bln:", [1, 10]], [:var_ref, [:@kw, "true", [1, 15]]]]
[[:@label, "int:", [1, 21]], [:@int, "1", [1, 26]]]
[[:@label, "str:", [1, 29]], [:string_literal, [:string_content, [:@tstring_content, "str", [1, 35]]]]]
[[:@label, "sym:", [1, 41]], [:symbol_literal, [:symbol, [:@ident, "sym", [1, 47]]]]]
SEXP
assert_equal(exp, named.strip)
end
```
Also, I assume it's a breaking change, but again with `Ripper.sexp("def hello(**opts) end")`
```
2.4.2
[:@ident, "opts", [1, 12]]
trunk
[:kwrest_param, [:@ident, "opts", [1, 12]]]
```
Thanks again, Greg
--
https://bugs.ruby-lang.org/
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>