Browse files

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.
  • Loading branch information...
sferik committed Feb 2, 2013
1 parent 1c69882 commit 08cec2635ad196630688fe42660f0733be1abef8
Showing with 4 additions and 2 deletions.
  1. +4 −2 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' do |spec|
spec.add_dependency 'hashie', '~> 1.2'

0 comments on commit 08cec26

Please sign in to comment.