diff --git a/guard.gemspec b/guard.gemspec index febe2dd..99702bb 100644 --- a/guard.gemspec +++ b/guard.gemspec @@ -1,6 +1,5 @@ # -*- encoding: utf-8 -*- -$:.push File.expand_path('../lib', __FILE__) -require 'guard/version' +Kernel.load File.expand_path('../lib/guard/version.rb', __FILE__) Gem::Specification.new do |s| s.name = 'guard' diff --git a/lib/guard/version.rb b/lib/guard/version.rb index 78afdff..5c5b8b6 100644 --- a/lib/guard/version.rb +++ b/lib/guard/version.rb @@ -1,3 +1,3 @@ module Guard - VERSION = "0.4.0" + VERSION = "0.4.0" unless defined? VERSION end