[前][次][番号順一覧][スレッド一覧]

ruby-changes:58363

From: Nobuyoshi <ko1@a...>
Date: Wed, 23 Oct 2019 00:42:44 +0900 (JST)
Subject: [ruby-changes:58363] 51bab75f49 (master): Provides ruby2_keywords

https://git.ruby-lang.org/ruby.git/commit/?id=51bab75f49

From 51bab75f493d59b07382e99d54c9dd1b0b1bbdf8 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Wed, 23 Oct 2019 00:19:25 +0900
Subject: Provides ruby2_keywords

So that requiring it succeeds even if that forward compatibility
gem is not installed.

diff --git a/version.c b/version.c
index 7cfa572..7e1c0cb 100644
--- a/version.c
+++ b/version.c
@@ -86,6 +86,8 @@ Init_version(void) https://github.com/ruby/ruby/blob/trunk/version.c#L86
      * The version of the engine or interpreter this ruby uses.
      */
     rb_define_global_const("RUBY_ENGINE_VERSION", (1 ? version : MKSTR(version)));
+
+    rb_provide("ruby2_keywords.rb");
 }
 
 #if USE_MJIT
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]