Permalink
Browse files

ensure lib is on load_path, so that we can use SimpleEnum::VERSION in…

… jeweler
  • Loading branch information...
1 parent 9832fe2 commit 022cad0f2fa0ba6367225c2cea3748e2212e10a4 @lwe lwe committed Aug 30, 2010
Showing with 5 additions and 1 deletion.
  1. +5 −1 Rakefile
View
@@ -2,6 +2,9 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
+# kinda ensure simple_enum is on load path
+$: << File.join(File.dirname(__FILE__), 'lib')
+
desc 'Default: run unit tests.'
task :default => :test
@@ -26,7 +29,8 @@ end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
- require File.join(File.dirname(__FILE__), 'lib', 'simple_enum')
+ require 'rubygems'
+ require 'simple_enum'
gemspec.name = "simple_enum"
gemspec.version = SimpleEnum::VERSION

0 comments on commit 022cad0

Please sign in to comment.