From 775ac2ddfd91b04bc926b6742e38e248e69fe05f Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Sat, 2 Feb 2013 09:06:41 -0800 Subject: [PATCH] require 'gems/version' Because require hashes based on the string, not the expanded path of the file, it's important that we require the version file the same way that it will be required elsewhere to avoid constant warnings. --- gems.gemspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gems.gemspec b/gems.gemspec index ee2d49b..5c1413b 100644 --- a/gems.gemspec +++ b/gems.gemspec @@ -1,5 +1,7 @@ -# encoding: utf-8 -require File.expand_path('../lib/gems/version', __FILE__) +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'gems/version' Gem::Specification.new do |spec| spec.add_development_dependency 'bundler', '~> 1.0'