<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>rufus-mnemo.gemspec</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -13,38 +13,11 @@ require 'rubygems/package_task'
 require 'hanna/rdoctask'
 
 
-RUFUS_MNEMO_VERSION = '1.1.0'
-
 #
 # GEM SPEC
 
-gemspec = Gem::Specification.new do |s|
-
-  s.name = 'rufus-mnemo'
-  s.version = RUFUS_MNEMO_VERSION
-  s.authors = [ 'John Mettraux' ]
-  s.email = 'jmettraux@gmail.com'
-  s.homepage = 'http://rufus.rubyforge.org/rufus-mnemo'
-  s.platform = Gem::Platform::RUBY
-  s.summary = 'Turning (large) integers into japanese sounding words and vice versa'
-  #s.license = &quot;MIT&quot;
-  s.description = 'Turning (large) integers into japanese sounding words and vice versa'
-
-  s.require_path = 'lib'
-  #s.autorequire = 'rufus-mnemo'
-  s.test_file = 'test/test.rb'
-  s.has_rdoc = true
-  s.extra_rdoc_files = %w[ README.txt ]
-
-  #[ 'rufus-lru' ].each do |d|
-  #    s.requirements &lt;&lt; d
-  #    s.add_dependency d
-  #end
-
-  files = FileList[ &quot;{bin,docs,lib,test}/**/*&quot; ]
-  files.exclude 'rdoc'
-  s.files = files.to_a
-end
+gemspec = File.read('rufus-mnemo.gemspec')
+eval &quot;gemspec = #{gemspec}&quot;
 
 #
 # tasks
@@ -55,6 +28,18 @@ task :default =&gt; [ :clean, :repackage ]
 
 
 #
+# VERSION
+
+task :change_version do
+
+  version = ARGV.pop
+  `sedip &quot;s/VERSION = '.*'/VERSION = '#{version}'/&quot; lib/rufus/mnemo.rb`
+  `sedip &quot;s/s.version = '.*'/s.version = '#{version}'/&quot; rufus-mnemo.gemspec`
+  exit 0 # prevent rake from triggering other tasks
+end
+
+
+#
 # TESTING
 
 Rake::TestTask.new(:test) do |t|
@@ -69,12 +54,14 @@ end
 # the gem
 #
 Gem::PackageTask.new(gemspec) do |pkg|
+
   #pkg.need_tar = true
 end
 
 # the source zip
 #
 Gem::PackageTask.new(gemspec) do |pkg|
+
   pkg.need_zip = true
   pkg.package_files = FileList[
     'Rakefile',</diff>
      <filename>Rakefile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ca5dafa1639172cec0724b0d655b919026f7ae80</id>
    </parent>
  </parents>
  <author>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </author>
  <url>http://github.com/jmettraux/rufus-mnemo/commit/250f158d8836898c6e68f5a8c69f72174a497780</url>
  <id>250f158d8836898c6e68f5a8c69f72174a497780</id>
  <committed-date>2009-07-20T18:26:56-07:00</committed-date>
  <authored-date>2009-07-20T18:26:56-07:00</authored-date>
  <message>Rufus::Mnemo::VERSION is in</message>
  <tree>308ef3fdc970d00348a021a1a03f7ee9341e8ff5</tree>
  <committer>
    <name>John Mettraux</name>
    <email>jmettraux@gmail.com</email>
  </committer>
</commit>
