Forum: Ruby-core [Ruby 1.9 - Feature #5174][Open] Export ruby_init_prelude()

Posted by Shugo Maeda (Guest)
on 2011-08-09 07:19
(Received via mailing list)
Issue #5174 has been reported by Shugo Maeda.

----------------------------------------
Feature #5174: Export ruby_init_prelude()
http://redmine.ruby-lang.org/issues/5174

Author: Shugo Maeda
Status: Open
Priority: Normal
Assignee: Nobuyoshi Nakada
Category: core
Target version: 1.9.x


Please export ruby_init_prelude() so that ruby embedded applications 
such as mod_ruby can call it without calling ruby_options().
Posted by Christoph Kappel (Guest)
on 2011-08-10 12:53
(Received via mailing list)
Issue #5174 has been updated by Christoph Kappel.


That would be really helpful! I know that ruby wasn't meant for 
embedding, but it makes life easier for embedders with just minor 
changes.
----------------------------------------
Feature #5174: Export ruby_init_prelude()
http://redmine.ruby-lang.org/issues/5174

Author: Shugo Maeda
Status: Open
Priority: Normal
Assignee: Nobuyoshi Nakada
Category: core
Target version: 1.9.x


Please export ruby_init_prelude() so that ruby embedded applications 
such as mod_ruby can call it without calling ruby_options().
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-20 13:16
(Received via mailing list)
Issue #5174 has been updated by mame (Yusuke Endoh).

Target version changed from 2.0.0 to next minor


----------------------------------------
Feature #5174: Export ruby_init_prelude()
https://bugs.ruby-lang.org/issues/5174#change-33216

Author: shugo (Shugo Maeda)
Status: Assigned
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: next minor


Please export ruby_init_prelude() so that ruby embedded applications 
such as mod_ruby can call it without calling ruby_options().
Posted by Nobuyoshi Nakada (nobu)
on 2012-11-30 12:02
(Received via mailing list)
Issue #5174 has been updated by nobu (Nobuyoshi Nakada).

Status changed from Assigned to Feedback

I don't think exporting it is a nice idea.
What's wrong with ruby_options(0, 0)?
----------------------------------------
Feature #5174: Export ruby_init_prelude()
https://bugs.ruby-lang.org/issues/5174#change-34216

Author: shugo (Shugo Maeda)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: next minor


Please export ruby_init_prelude() so that ruby embedded applications 
such as mod_ruby can call it without calling ruby_options().
Posted by gfim (Graham Menhennitt) (Guest)
on 2012-12-04 11:38
(Received via mailing list)
Issue #5174 has been updated by gfim (Graham Menhennitt).


Unfortunately, ruby_options(0, 0) causes a SEGV in 1.9.3p327. The crash 
has been fixed ([Bug #7423]), but I don't think that ruby_options(0, 0) 
works correctly. It causes the embedded Ruby interpreter to read from 
standard input (the same as if you just typed "ruby" at a command 
prompt). I agree that ruby_options(0, 0) would be an acceptable 
alternative if it worked.
----------------------------------------
Feature #5174: Export ruby_init_prelude()
https://bugs.ruby-lang.org/issues/5174#change-34396

Author: shugo (Shugo Maeda)
Status: Feedback
Priority: Normal
Assignee: nobu (Nobuyoshi Nakada)
Category: core
Target version: next minor


Please export ruby_init_prelude() so that ruby embedded applications 
such as mod_ruby can call it without calling ruby_options().
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.