General

Profile

artur86 (Artur *)

  • Login: artur86
  • Registered on: 01/27/2018
  • Last sign in: 02/09/2023

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 2 1 3

Activity

10/01/2018

08:05 PM Ruby master Misc #15186: `SecureRandom.random_number` is not documented
nobu (Nobuyoshi Nakada) wrote:
> It is a method of `Random::Formatter`, not of `SecureRandom`.
>
> https://ruby-d...
artur86 (Artur *)
11:17 AM Ruby master Misc #15186 (Closed): `SecureRandom.random_number` is not documented
I wonder if there is any reason why `SecureRandom.random_number` is not documented.
https://ruby-doc.org/stdlib-2.4....
artur86 (Artur *)

03/18/2018

10:42 PM Ruby master Feature #14615 (Open): Consider introducing shortcut to check Net::HTTP response type
Currently you need to either use `kind_of?` or `HTTPResponse#code` to find out the type of a response.
~~~ ruby
r...
artur86 (Artur *)

02/11/2018

03:44 PM Ruby master Feature #14411: URI#secure?
Perhaps `#https?` might work? (as phluid61 actually suggested with the only difference that "is" is "#...?" in Ruby)
...
artur86 (Artur *)

01/30/2018

01:59 PM Ruby master Feature #14411: URI#secure?
sos4nt (Stefan Schüßler) wrote:
> artur86 (Artur Beljajev) wrote:
> > Base class might always return false, whereas...
artur86 (Artur *)
12:37 PM Ruby master Feature #14411: URI#secure?
`Rack` uses `ssl?`.
https://github.com/rack/rack/blob/master/lib/rack/request.rb#L252
artur86 (Artur *)

01/29/2018

04:52 PM Ruby master Feature #14411: URI#secure?
I agree that `#secure?` might not be good for existing `Net::*` classes, but how about `URI`? Do you still think it s... artur86 (Artur *)

01/28/2018

02:15 PM Ruby master Feature #14411: URI#secure?
`#secure?` looks more concise and abstract to me, whereas `#use_ssl?` is good in terms of consistency. Perhaps `#secu... artur86 (Artur *)

01/27/2018

03:26 PM Ruby master Feature #14411: URI#secure?
Thank you for your feedback, Robert! You got it absolutely right in terms of implementation. Base class might always ... artur86 (Artur *)
02:52 PM Ruby master Feature #14411 (Open): URI#secure?
I wonder if some predicate method (say #secure?) could be added to URI::Generic class. Currently the only way to quer... artur86 (Artur *)

Also available in: Atom