From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-3.0 required=3.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_PASS,T_DKIM_INVALID,T_RP_MATCHES_RCVD shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 01F3820282 for ; Tue, 13 Jun 2017 06:54:56 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 9365712079B; Tue, 13 Jun 2017 15:54:53 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id D0A8112078E for ; Tue, 13 Jun 2017 15:54:51 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=uQqAwPm5l1q87wHa1TH4mACQFbo=; b=a8v9q3lCZKmw4RzNvL FxS1iUaWO4OvEjlVrOhh+1TUTwTHAzI0Qvz8q8ZyyIG9gVJ6DmqdM6hWO79/OjG4 lH5ikQ7VFf8w5dA6iVmevE9LrTjLASPnPkeOKrqk+ylQJTeH/tbnp1+eTUMCk5gi N7gN7FRR0Sq6rMEvAV+J35G1A= Received: by filter0929p1mdw1.sendgrid.net with SMTP id filter0929p1mdw1-4546-593F8C38-21 2017-06-13 06:54:48.740383997 +0000 UTC Received: from herokuapp.com (ec2-54-226-42-236.compute-1.amazonaws.com [54.226.42.236]) by ismtpd0003p1iad1.sendgrid.net (SG) with ESMTP id gzVu1TZ6RwSrV2-3uN7s-w for ; Tue, 13 Jun 2017 06:54:48.717 +0000 (UTC) Date: Tue, 13 Jun 2017 06:54:48 +0000 From: hanmac@gmx.de To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 56688 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 13652 X-Redmine-Issue-Author: derekzwy X-Redmine-Sender: Hanmac X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5+wJ3gDbZoI7bzyWJZLcxx4Umfv39wbfpNSy mv+j8H/XCFSK2v/SqM3WhjVYB+nxH7o5kI/bMTZiS8WyMWlgK65V/Elx/up2FnYMXUcVN5lhEKPRtO D1H5bmYIoKWWY9gdsVqXqQps8ORLpiT1c6CF X-ML-Name: ruby-core X-Mail-Count: 81659 Subject: [ruby-core:81659] [Ruby trunk Bug#13652] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "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/