ruby-changes:59962
From: Nobuyoshi <ko1@a...>
Date: Sun, 9 Feb 2020 12:19:28 +0900 (JST)
Subject: [ruby-changes:59962] 92c86e39de (master): Removed a useless guard
https://git.ruby-lang.org/ruby.git/commit/?id=92c86e39de From 92c86e39de30e5cd4ec1298204a5c2de52994165 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada <nobu@r...> Date: Sun, 9 Feb 2020 12:12:07 +0900 Subject: Removed a useless guard MSpec requires Ruby 2.4 or more recent. diff --git a/spec/mspec/lib/mspec/utils/warnings.rb b/spec/mspec/lib/mspec/utils/warnings.rb index 1cf83b6..fa05c8c 100644 --- a/spec/mspec/lib/mspec/utils/warnings.rb +++ b/spec/mspec/lib/mspec/utils/warnings.rb @@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/spec/mspec/lib/mspec/utils/warnings.rb#L1 require 'mspec/guards/version' -if RUBY_ENGINE == "ruby" and ruby_version_is("2.4") +if RUBY_ENGINE == "ruby" ruby_version_is "2.4"..."2.5" do # Kernel#warn does not delegate to Warning.warn in 2.4 module Kernel -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/