mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Fixed module name for ruby api
This commit is contained in:
parent
1b8cff6def
commit
abc0e97463
@ -1,5 +1,5 @@
|
|||||||
module RubyTest
|
module RubyTest
|
||||||
def RubyTest.prof_init(version, status)
|
def RubyTest.prof_init(version, status)
|
||||||
$stderr.puts "From Ruby: " + version + " " + status
|
Prof::cons_show("RubyTest: " + version + " " + status)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -160,7 +160,8 @@ static VALUE prof_module;
|
|||||||
void
|
void
|
||||||
ruby_api_init(void)
|
ruby_api_init(void)
|
||||||
{
|
{
|
||||||
prof_module = rb_define_module("prof");
|
prof_module = rb_define_module("Prof");
|
||||||
|
|
||||||
rb_define_module_function(prof_module, "cons_alert", RUBY_METHOD_FUNC(ruby_api_cons_alert), 0);
|
rb_define_module_function(prof_module, "cons_alert", RUBY_METHOD_FUNC(ruby_api_cons_alert), 0);
|
||||||
rb_define_module_function(prof_module, "cons_show", RUBY_METHOD_FUNC(ruby_api_cons_show), 1);
|
rb_define_module_function(prof_module, "cons_show", RUBY_METHOD_FUNC(ruby_api_cons_show), 1);
|
||||||
rb_define_module_function(prof_module, "register_command", RUBY_METHOD_FUNC(ruby_api_register_command), 7);
|
rb_define_module_function(prof_module, "register_command", RUBY_METHOD_FUNC(ruby_api_register_command), 7);
|
||||||
|
@ -35,7 +35,6 @@ void
|
|||||||
ruby_env_init(void)
|
ruby_env_init(void)
|
||||||
{
|
{
|
||||||
ruby_init();
|
ruby_init();
|
||||||
ruby_script("prof");
|
|
||||||
ruby_init_loadpath();
|
ruby_init_loadpath();
|
||||||
ruby_api_init();
|
ruby_api_init();
|
||||||
ruby_check_error();
|
ruby_check_error();
|
||||||
|
Loading…
Reference in New Issue
Block a user