Moved version string to lib.

git-svn-id: http://igraph.rubyforge.org/svn/trunk@25 71f48855-0bbf-4aa5-930d-4df415e86613
This commit is contained in:
alexgutteridge 2007-08-07 07:29:57 +00:00
parent b5daeb86dc
commit cc86b37a24
2 changed files with 5 additions and 2 deletions

View File

@ -1,9 +1,10 @@
require 'hoe' require 'hoe'
$LOAD_PATH.unshift("./lib")
$LOAD_PATH.unshift("./ext") $LOAD_PATH.unshift("./ext")
hoe = Hoe.new("igraph",'0.1.1') do |p| require 'igraph'
hoe = Hoe.new("igraph",IGraph::VERSION) do |p|
p.author = "Alex Gutteridge" p.author = "Alex Gutteridge"
p.email = "alexg@kuicr.kyoto-u.ac.jp" p.email = "alexg@kuicr.kyoto-u.ac.jp"

View File

@ -158,6 +158,8 @@ void Init_igraph(){
rb_include_module(cIGraph, rb_mEnumerable); rb_include_module(cIGraph, rb_mEnumerable);
rb_define_const(cIGraph, "VERSION", rb_str_new2("0.3"));
rb_define_const(cIGraph, "EDGEORDER_ID", INT2NUM(1)); rb_define_const(cIGraph, "EDGEORDER_ID", INT2NUM(1));
rb_define_const(cIGraph, "EDGEORDER_FROM", INT2NUM(2)); rb_define_const(cIGraph, "EDGEORDER_FROM", INT2NUM(2));
rb_define_const(cIGraph, "EDGEORDER_TO", INT2NUM(3)); rb_define_const(cIGraph, "EDGEORDER_TO", INT2NUM(3));