From 08cec2635ad196630688fe42660f0733be1abef8 Mon Sep 17 00:00:00 2001 From: Erik Michaels-Ober Date: Sat, 2 Feb 2013 09:14:44 -0800 Subject: [PATCH] require 'omniauth/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. --- omniauth.gemspec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/omniauth.gemspec b/omniauth.gemspec index e0977c9..b268ff1 100644 --- a/omniauth.gemspec +++ b/omniauth.gemspec @@ -1,5 +1,7 @@ -# encoding: utf-8 -require File.expand_path('../lib/omniauth/version', __FILE__) +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'omniauth/version' Gem::Specification.new do |spec| spec.add_dependency 'hashie', '~> 1.2'