dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] enumerator.c: provide enumerator.rb, too
@ 2015-07-04 21:20 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-07-04 21:20 UTC (permalink / raw)
  To: spew

This seems to work in preventing scanning LOAD_PATH when
attempting to load enumerator.
[ruby-core:68358] [Bug #10902]
---
 enumerator.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/enumerator.c b/enumerator.c
index 7f91f32..a7cf993d 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -2060,6 +2060,7 @@ InitVM_Enumerator(void)
     rb_define_method(rb_cYielder, "yield", yielder_yield, -2);
     rb_define_method(rb_cYielder, "<<", yielder_yield_push, -2);
 
+    rb_provide("enumerator.rb");
     rb_provide("enumerator.so");	/* for backward compatibility */
 }
 
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-07-04 21:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-04 21:20 [PATCH] enumerator.c: provide enumerator.rb, too Eric Wong

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).