ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:81657] [Ruby trunk Bug#13652] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
       [not found] <redmine.issue-13652.20170613025943@ruby-lang.org>
@ 2017-06-13  2:59 ` 584797182
  2017-06-13  6:54 ` [ruby-core:81659] " hanmac
  2017-08-29  8:14 ` [ruby-core:82501] [Ruby trunk Bug#13652][Rejected] " glass.saga
  2 siblings, 0 replies; 3+ messages in thread
From: 584797182 @ 2017-06-13  2:59 UTC (permalink / raw)
  To: ruby-core

Issue #13652 has been reported by derekzwy (Wenyuan Zhang).

----------------------------------------
Bug #13652: Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
https://bugs.ruby-lang.org/issues/13652

* Author: derekzwy (Wenyuan Zhang)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.4
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Ruby 2.3.4 does not catch Argument error when comparing DateTime with String, while Ruby 2.1.5 catches it and return false.

---Files--------------------------------
ruby 2.3.4.png (168 KB)
ruby 2.1.5.png (133 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:81659] [Ruby trunk Bug#13652] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
       [not found] <redmine.issue-13652.20170613025943@ruby-lang.org>
  2017-06-13  2:59 ` [ruby-core:81657] [Ruby trunk Bug#13652] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String 584797182
@ 2017-06-13  6:54 ` hanmac
  2017-08-29  8:14 ` [ruby-core:82501] [Ruby trunk Bug#13652][Rejected] " glass.saga
  2 siblings, 0 replies; 3+ messages in thread
From: hanmac @ 2017-06-13  6:54 UTC (permalink / raw)
  To: ruby-core

Issue #13652 has been updated by Hanmac (Hans Mackowiak).


@derekzwy it is fixed in Ruby2.4.1 and active_support 5.1.1

it looks like the bug does happen in your active_support version.
Try to update to a newer one.

----------------------------------------
Bug #13652: Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
https://bugs.ruby-lang.org/issues/13652#change-65355

* Author: derekzwy (Wenyuan Zhang)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.4
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Ruby 2.3.4 does not catch Argument error when comparing DateTime with String, while Ruby 2.1.5 catches it and return false.

---Files--------------------------------
ruby 2.3.4.png (168 KB)
ruby 2.1.5.png (133 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [ruby-core:82501] [Ruby trunk Bug#13652][Rejected] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
       [not found] <redmine.issue-13652.20170613025943@ruby-lang.org>
  2017-06-13  2:59 ` [ruby-core:81657] [Ruby trunk Bug#13652] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String 584797182
  2017-06-13  6:54 ` [ruby-core:81659] " hanmac
@ 2017-08-29  8:14 ` glass.saga
  2 siblings, 0 replies; 3+ messages in thread
From: glass.saga @ 2017-08-29  8:14 UTC (permalink / raw)
  To: ruby-core

Issue #13652 has been updated by Glass_saga (Masaki Matsushita).

Status changed from Open to Rejected

It can't be reproduced.

```
% ruby -v -r "date" -e "p DateTime.parse == 'No End Date'"
ruby 2.5.0dev (2017-08-29 trunk 59656) [x86_64-darwin15]
false
```

----------------------------------------
Bug #13652: Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
https://bugs.ruby-lang.org/issues/13652#change-66310

* Author: derekzwy (Wenyuan Zhang)
* Status: Rejected
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.3.4
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
Ruby 2.3.4 does not catch Argument error when comparing DateTime with String, while Ruby 2.1.5 catches it and return false.

---Files--------------------------------
ruby 2.3.4.png (168 KB)
ruby 2.1.5.png (133 KB)


-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-08-29  8:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-13652.20170613025943@ruby-lang.org>
2017-06-13  2:59 ` [ruby-core:81657] [Ruby trunk Bug#13652] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String 584797182
2017-06-13  6:54 ` [ruby-core:81659] " hanmac
2017-08-29  8:14 ` [ruby-core:82501] [Ruby trunk Bug#13652][Rejected] " glass.saga

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).