Skip to content

Commit

Permalink
gemspec: avoid adding the "lib/" directory to load path
Browse files Browse the repository at this point in the history
Simply reading the gemspec shouldn't activate the gem by adding its
files to the load path.
  • Loading branch information
mislav committed Jun 7, 2011
1 parent d5a5fa1 commit 03aa0b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions 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'
Expand Down
2 changes: 1 addition & 1 deletion lib/guard/version.rb
@@ -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.