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:
parent
d5a5fa139a
commit
03aa0b0df8
@ -1,6 +1,5 @@
|
|||||||
# -*- encoding: utf-8 -*-
|
# -*- encoding: utf-8 -*-
|
||||||
$:.push File.expand_path('../lib', __FILE__)
|
Kernel.load File.expand_path('../lib/guard/version.rb', __FILE__)
|
||||||
require 'guard/version'
|
|
||||||
|
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = 'guard'
|
s.name = 'guard'
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
module Guard
|
module Guard
|
||||||
VERSION = "0.4.0"
|
VERSION = "0.4.0" unless defined? VERSION
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user