[#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:83540] [Ruby trunk Feature#14035] URI module always serializes to the minimal form insted of the traditional one
From:
robipolli@...
Date:
2017-10-24 11:10:44 UTC
List:
ruby-core #83540
Issue #14035 has been updated by ioggstream (Roberto Polli).
Hi Matthew, and thanks for your time!
phluid61 (Matthew Kerwin) wrote:
> The spec for file URIs is [RFC8089](https://tools.ietf.org/html/rfc8089), which allows for file URIs with no authority part (e.g. 'file:/foo').
Ok.
> Neither it nor RFC3986 make any claims about canonical representation of URIs, much as I may have liked it to.
I read here https://tools.ietf.org/html/rfc8089#appendix-B reports that there is a `traditional` form though.
Clearly `traditional` != `canonical` ;)
Checked gem, thx++
----------------------------------------
Feature #14035: URI module always serializes to the minimal form insted of the traditional one
https://bugs.ruby-lang.org/issues/14035#change-67566
* Author: ioggstream (Roberto Polli)
* Status: Open
* Priority: Normal
* Assignee:
* Target version:
----------------------------------------
### Reproduce
execute URI("file:///etc/hosts").to_s
### I expect
- URI("file:///etc/hosts").to_s == "file:///etc/hosts"
- URI to preserve traditional form instead converting it to the minimal one (Eg. see https://tools.ietf.org/html/rfc8089#appendix-B )
### I wish
- URI to preserve the minimal/traditional form.
URI("file:///etc/hosts").to_s == "file:///etc/hosts"
URI("file:/etc/hosts").to_s == "file:/etc/hosts"
### Instead
- URI("file:///etc/hosts").to_s == "file:/etc/hosts"
- URI("file:///etc/hosts").host == nil
### Proposal for Ruby 2.4
Adopting the convention of an "empty host" instead of no authority when the passed string has the traditional form.
- file schema to have a blank/empty "" host
suggested in rfc3986 will fix the issue.
```
If the URI scheme defines a default for host, then that default
applies when the host subcomponent is undefined or when the
registered name is empty (zero length). For example, the "file" URI
scheme is defined so that no authority, an empty host, and
"localhost" all mean the end-user's machine, whereas the "http"
scheme considers a missing authority or empty host invalid.
```
--
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>