[#84867] [Ruby trunk Bug#14357] thread_safe tests suite segfaults — v.ondruch@...

Issue #14357 has been reported by vo.x (Vit Ondruch).

11 messages 2018/01/15

[#84980] [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — hsbt@...

Issue #13618 has been updated by hsbt (Hiroshi SHIBATA).

10 messages 2018/01/23
[#85012] Re: [Ruby trunk Feature#13618][Assigned] [PATCH] auto fiber schedule for rb_wait_for_single_fd and rb_waitpid — Eric Wong <normalperson@...> 2018/01/23

hsbt@ruby-lang.org wrote:

[ruby-core:85256] [Ruby trunk Feature#14411] URI#secure?

From: mail@...
Date: 2018-01-30 13:24:07 UTC
List: ruby-core #85256
Issue #14411 has been updated by sos4nt (Stefan Schテシテ殕er).


artur86 (Artur Beljajev) wrote:
> Base class might always return false, whereas HTTPS class should return true then.

Note that you can change the scheme:

```ruby
uri = URI('http://example.com/')
uri.scheme = 'https'

uri         #=> #<URI::HTTP https://example.com/>
uri.class   #=> URI::HTTP
uri.scheme  #=> "https"
```

----------------------------------------
Feature #14411: URI#secure?
https://bugs.ruby-lang.org/issues/14411#change-70017

* Author: artur86 (Artur Beljajev)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
I wonder if some predicate method (say #secure?) could be added to URI::Generic class. Currently the only way to query if uri is secure is:

~~~ ruby
uri.instance_of?(URI::HTTPS)
~~~

Inspired by this question: https://stackoverflow.com/questions/2212735/ruby-checking-if-uri-is-https



-- 
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>

In This Thread

Prev Next