aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Richard Brown <rbrown@exherbo.org> 2008-01-18 00:27:50 +0000
committerAvatar Richard Brown <rbrown@exherbo.org> 2008-01-18 00:27:50 +0000
commit67803aefac935c4c06546a70908c1a93fafb73d7 (patch)
tree5c87a99a056ae8d418d549ecb5e44ac3592457c2
parent6e1c43ab2d842cedc9ed4bf571bd8d31b38f6683 (diff)
downloadpaludis-67803aefac935c4c06546a70908c1a93fafb73d7.tar.gz
paludis-67803aefac935c4c06546a70908c1a93fafb73d7.tar.xz
(ruby) Use VERSION for Paludis::Version.
-rw-r--r--ruby/paludis_ruby.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/ruby/paludis_ruby.cc b/ruby/paludis_ruby.cc
index 323b2fe..fce50a1 100644
--- a/ruby/paludis_ruby.cc
+++ b/ruby/paludis_ruby.cc
@@ -456,8 +456,7 @@ void PALUDIS_VISIBLE paludis::ruby::init()
rb_define_module_function(c_paludis_module, "match_package", RUBY_FUNC_CAST(&paludis_match_package), 3);
rb_define_module_function(c_paludis_module, "version_spec_comparator", RUBY_FUNC_CAST(&paludis_version_spec_comparator), 3);
- rb_define_const(c_paludis_module, "Version", rb_str_new2((stringify(PALUDIS_VERSION_MAJOR) + "."
- + stringify(PALUDIS_VERSION_MINOR) + "." + stringify(PALUDIS_VERSION_MICRO)).c_str()));
+ rb_define_const(c_paludis_module, "Version", INT2FIX(PALUDIS_VERSION));
rb_define_const(c_paludis_module, "VersionMajor", INT2FIX(PALUDIS_VERSION_MAJOR));
rb_define_const(c_paludis_module, "VersionMinor", INT2FIX(PALUDIS_VERSION_MINOR));
rb_define_const(c_paludis_module, "VersionMicro", INT2FIX(PALUDIS_VERSION_MICRO));