<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>ext/version.h</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -18,9 +18,15 @@ Rake::TestTask.new do |t|
 end
 
 
-# ------- Default Package ----------
-RUBY_PROF_VERSION = &quot;0.6.1&quot;
+# ------- Version ----
+# Read version from header file
+version_header = File.read('ext/version.h')
+RUBY_PROF_VERSION = version_header.match(/RUBY_PROF_VERSION\s*[&quot;](\d.+)[&quot;]/)
+if not RUBY_PROF_VERSION
+  raise(RuntimeError, &quot;Could not determine RUBY_PROF_VERSION&quot;)
+
 
+# ------- Default Package ----------
 FILES = FileList[
   'Rakefile',
   'README',</diff>
      <filename>Rakefile</filename>
    </modified>
    <modified>
      <diff>@@ -59,10 +59,10 @@ typedef rb_event_t rb_event_flag_t;
 #define rb_sourceline() (node ? nd_line(node) : 0)
 #endif
 
+#include &quot;version.h&quot;
 
 /* ================  Constants  =================*/
 #define INITIAL_STACK_SIZE 8
-#define PROF_VERSION &quot;0.6.1&quot;
 
 
 /* ================  Measurement  =================*/
@@ -1623,7 +1623,7 @@ void
 Init_ruby_prof()
 {
     mProf = rb_define_module(&quot;RubyProf&quot;);
-    rb_define_const(mProf, &quot;VERSION&quot;, rb_str_new2(PROF_VERSION));
+    rb_define_const(mProf, &quot;VERSION&quot;, rb_str_new2(RUBY_PROF_VERSION));
     rb_define_module_function(mProf, &quot;start&quot;, prof_start, 0);
     rb_define_module_function(mProf, &quot;stop&quot;, prof_stop, 0);
     rb_define_module_function(mProf, &quot;resume&quot;, prof_resume, 0);</diff>
      <filename>ext/ruby_prof.c</filename>
    </modified>
    <modified>
      <diff>@@ -193,6 +193,38 @@
 			Filter=&quot;h;hpp;hxx;hm;inl;inc;xsd&quot;
 			UniqueIdentifier=&quot;{93995380-89BD-4b04-88EB-625FBE52EBFB}&quot;
 			&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\measure_allocations.h&quot;
+				&gt;
+			&lt;/File&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\measure_cpu_time.h&quot;
+				&gt;
+			&lt;/File&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\measure_gc_runs.h&quot;
+				&gt;
+			&lt;/File&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\measure_gc_time.h&quot;
+				&gt;
+			&lt;/File&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\measure_memory.h&quot;
+				&gt;
+			&lt;/File&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\measure_process_time.h&quot;
+				&gt;
+			&lt;/File&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\measure_wall_time.h&quot;
+				&gt;
+			&lt;/File&gt;
+			&lt;File
+				RelativePath=&quot;..\ext\version.h&quot;
+				&gt;
+			&lt;/File&gt;
 		&lt;/Filter&gt;
 		&lt;Filter
 			Name=&quot;Resource Files&quot;</diff>
      <filename>vc/ruby_prof.vcproj</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d88f72946326fc4b2be58cc7003eb511c68553d0</id>
    </parent>
  </parents>
  <author>
    <name>cfis</name>
    <email>cfis@5fb4a865-4516-0410-ae3b-a609ddf12040</email>
  </author>
  <url>http://github.com/jeremy/ruby-prof/commit/5c7c17a2c6bcd29b9cbe6915b081fb0b34b130e6</url>
  <id>5c7c17a2c6bcd29b9cbe6915b081fb0b34b130e6</id>
  <committed-date>2008-07-14T02:05:51-07:00</committed-date>
  <authored-date>2008-07-14T02:05:51-07:00</authored-date>
  <message>Separate version into a new header file and have Rakefile read it directory (avoids duplicate version numbers).

git-svn-id: http://ruby-prof.rubyforge.org/svn@269 5fb4a865-4516-0410-ae3b-a609ddf12040</message>
  <tree>c76fa6c1a68a81429886e799ffddf1fed4be761c</tree>
  <committer>
    <name>cfis</name>
    <email>cfis@5fb4a865-4516-0410-ae3b-a609ddf12040</email>
  </committer>
</commit>
