Permalink
Browse files

gemspec: avoid adding the "lib/" directory to load path

Simply reading the gemspec shouldn't activate the gem by adding its
files to the load path.
  • Loading branch information...
1 parent d5a5fa1 commit 03aa0b0df887b8405cb6f309087c65a83ed8c4fe @mislav committed May 26, 2011
Showing with 2 additions and 3 deletions.
  1. +1 −2 guard.gemspec
  2. +1 −1 lib/guard/version.rb
View
@@ -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'
View
@@ -1,3 +1,3 @@
module Guard
- VERSION = "0.4.0"
+ VERSION = "0.4.0" unless defined? VERSION
end

0 comments on commit 03aa0b0

Please sign in to comment.