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.
This commit is contained in:
Erik Michaels-Ober 2013-02-02 09:14:44 -08:00
parent 1c69882ba5
commit 08cec2635a
1 changed files with 4 additions and 2 deletions

View File

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