artur86 (Artur *)
- Login: artur86
- Registered on: 01/27/2018
- Last sign in: 02/24/2025
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 3 | 1 | 4 |
Activity
02/24/2025
-
05:18 PM Ruby Feature #21155: File scoped namespace declarations as in C#
- Hanmac (Hans Mackowiak) wrote in #note-2:
> @artur86 the difference between these two are the module nesting
> ...
I edited the description. -
11:33 AM Ruby Feature #21155 (Open): File scoped namespace declarations as in C#
- Given there is a file with a class that needs to be namespaced. There are basically two options currently.
`module` implies indenting the class by one level:
```ruby
module MyNamespace
class MyClass; end
end
```
Scope reso...
10/01/2018
-
08:05 PM Ruby Misc #15186: `SecureRandom.random_number` is not documented
- nobu (Nobuyoshi Nakada) wrote:
> It is a method of `Random::Formatter`, not of `SecureRandom`.
> ...
Oh... Nobuyoshi, thank you for pointing out! I missed it completely :(. -
11:17 AM Ruby 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.4/libdoc/securerandom/rdoc/SecureRandom.html
03/18/2018
-
10:42 PM Ruby 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
response = Net::HTTP.start(uri.hostname,
uri.port,
use_ssl: (uri...
02/11/2018
-
03:44 PM Ruby Feature #14411: URI#secure?
- Perhaps `#https?` might work? (as phluid61 actually suggested with the only difference that "is" is "#...?" in Ruby)
Used in Rails: https://github.com/rails/rails/blob/2090615d39c071c9eb25e715275eb79f3f9b6266/actionpack/lib/action_dis...
01/30/2018
-
01:59 PM Ruby Feature #14411: URI#secure?
- sos4nt (Stefan Schüßler) wrote:
> artur86 (Artur Beljajev) wrote:
> ...
My fault. I assumed it is immutable, for some reason. Then it will check current scheme dynamically. -
12:37 PM Ruby Feature #14411: URI#secure?
- `Rack` uses `ssl?`.
https://github.com/rack/rack/blob/master/lib/rack/request.rb#L252
01/29/2018
-
04:52 PM Ruby 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 should also be called `use_ssl?`? I am happy with both of the options, but I wonder how is usually this kind of debates s...
01/28/2018
-
02:15 PM Ruby Feature #14411: URI#secure?
- `#secure?` looks more concise and abstract to me, whereas `#use_ssl?` is good in terms of consistency. Perhaps `#secure?` might be aliased to `#use_ssl` in other `Net` classes?