aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-17 16:10:55 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-12-17 16:10:55 +0000
commita551d69b0c7e022702f0f7814ebac2a20520f7b2 (patch)
tree5514b8c09fef041458e4fbc2ffe89befe47d20dc
parent85da8f29a45e75d3acf38b574258e60e2b6097cc (diff)
downloadpaludis-a551d69b0c7e022702f0f7814ebac2a20520f7b2.tar.gz
paludis-a551d69b0c7e022702f0f7814ebac2a20520f7b2.tar.xz
Update the Ruby bindings to reflect the new class heirarchy.
-rw-r--r--ruby/paludis_ruby.cc8
-rw-r--r--ruby/paludis_ruby.hh1
-rw-r--r--ruby/qa_environment.cc3
3 files changed, 11 insertions, 1 deletions
diff --git a/ruby/paludis_ruby.cc b/ruby/paludis_ruby.cc
index a75faeb..d7a6732 100644
--- a/ruby/paludis_ruby.cc
+++ b/ruby/paludis_ruby.cc
@@ -64,6 +64,7 @@ namespace
static VALUE c_config_file_error;
static VALUE c_environment;
+ static VALUE c_no_config_environment;
#ifdef ENABLE_RUBY_QA
static VALUE c_paludis_qa_module;
@@ -209,6 +210,12 @@ paludis::ruby::environment_class()
return c_environment;
}
+VALUE
+paludis::ruby::no_config_environment_class()
+{
+ return c_no_config_environment;
+}
+
#ifdef ENABLE_RUBY_QA
VALUE
paludis::ruby::paludis_qa_module()
@@ -230,6 +237,7 @@ extern "C"
*/
c_paludis_module = rb_define_module("Paludis");
c_environment = rb_define_class_under(paludis_module(), "Environment", rb_cObject);
+ c_no_config_environment = rb_define_class_under(paludis_module(), "NoConfigEnvironment", c_environment);
c_name_error = rb_define_class_under(c_paludis_module, "NameError", rb_eRuntimeError);
c_set_name_error = rb_define_class_under(c_paludis_module, "SetNameError", c_name_error);
c_category_name_part_error = rb_define_class_under(c_paludis_module, "CategoryNamePartError", c_name_error);
diff --git a/ruby/paludis_ruby.hh b/ruby/paludis_ruby.hh
index c5e955f..c16af59 100644
--- a/ruby/paludis_ruby.hh
+++ b/ruby/paludis_ruby.hh
@@ -70,6 +70,7 @@ namespace paludis
VALUE paludis_module();
VALUE environment_class();
+ VALUE no_config_environment_class();
/* constructors */
diff --git a/ruby/qa_environment.cc b/ruby/qa_environment.cc
index af83575..7b14e6d 100644
--- a/ruby/qa_environment.cc
+++ b/ruby/qa_environment.cc
@@ -82,7 +82,8 @@ namespace
*
* The QAEnvironment is an environment fo running QA checks in .
*/
- c_qa_environment = rb_define_class_under(paludis_qa_module(), "QAEnvironment", environment_class());
+ c_qa_environment = rb_define_class_under(paludis_qa_module(), "QAEnvironment",
+ no_config_environment_class());
rb_define_singleton_method(c_qa_environment, "new", RUBY_FUNC_CAST(&qa_environment_new),-1);
rb_define_method(c_qa_environment, "initialize", RUBY_FUNC_CAST(&qa_environment_init),-1);
}