leriksen (Leif Eriksen)
- Login: leriksen
- Email: leif.eriksen.au@gmail.com
- Registered on: 03/29/2014
- Last sign in: 10/27/2015
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 0 | 0 |
Activity
07/05/2015
-
08:05 AM Ruby Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems
- No issue with a fresh ruby-2.2.2-p95-x86-mingw either.
Deka, what do you get for "gem --version" ? Check which gem exe is getting picked up in your path with "where gem" as well. -
02:20 AM Ruby Bug #11316: ruby 2.2 on Windows generates incorrect BAT files for gems
- I tested this against ruby 2.2.2p95 x64-mingw without issue.
rhc.bat appears to be correct.
~~~
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
@"c:\Ruby22-x64\bin\ruby.exe" "c:/Ruby22-x64/bin/rhc" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO ...
01/19/2015
-
10:02 AM Ruby Bug #10733: Time.httpdate raises ArgumentError when DateTime.now.httpdate is provided as input
- Oh and if you comment out the local_httpdate(date_UTF) line, the space is consumed.
~~~
~/src/bugs/10733 bundle exec ruby 10733.rb
19 Jan 2015 08:43:19 GMT
~~~
So definitely spooky action in the regex engine - which is written i... -
09:54 AM Ruby Bug #10733: Time.httpdate raises ArgumentError when DateTime.now.httpdate is provided as input
- ok, the US-ASCII encoding is not having its space consumed as the regex matches! I've extracted the part of the regex from Time.httpdate that is working, and looking at the post-match parts - they should be the same.
```ruby
def loca... -
09:35 AM Ruby Bug #10733: Time.httpdate raises ArgumentError when DateTime.now.httpdate is provided as input
- defintely a regex issue, not related to DateTime or Time at all (other than them being affected the same)
```ruby
def local_httpdate(date)
if /\A\s*
(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\x20
(\d{2})\x20
(Jan|Feb|Ma... -
09:00 AM Ruby Bug #10733: Time.httpdate raises ArgumentError when DateTime.now.httpdate is provided as input
- This is a tricky one. It is a spooky interaction when calling `Time.httpdate` with an US-ASCII encoding _after_ calling `Time.httpdate` with an UTF-8 encoding.
If you just pass the result of `DateTime.now.httpdate` (which has a US-ASC...
12/13/2014
-
04:50 AM Ruby Bug #10591: Net::HTTPResponse#read_status_line does not throw Net::HTTPBadResponse with some malformed responses.
- https://github.com/ruby/ruby/pull/782
update regex to require one or more spaces (changed from zero or more) between the status code and the reason code.
RFC2616 says
Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF...
07/13/2014
-
10:38 AM Ruby Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
- https://github.com/ruby/ruby/pull/666
07/11/2014
-
12:41 AM Ruby Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
- OK I will update to TypeError - the method argument does need to support the Pathname interface.
As for the subclass - yes that is mostly it. It's a small detail.
Thanx for the feedback.
07/10/2014
-
11:19 PM Ruby Bug #10011: Passing a string to Pathname#relative_path_from results in NoMethodError
- I agree with the confusion - initially I thought :to_path could be used, but despite its name it returns a string, hence the suggestion for :to_pathname, that allows things to implement a way to have themselves converted to a Pathname.
...