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.
This commit is contained in:
Mislav Marohnić 2011-05-26 18:17:30 +02:00
parent d5a5fa139a
commit 03aa0b0df8
2 changed files with 2 additions and 3 deletions

View File

@ -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 File

@ -1,3 +1,3 @@
module Guard
VERSION = "0.4.0"
VERSION = "0.4.0" unless defined? VERSION
end