Skip to content

Commit

Permalink
require 'gems/version'
Browse files Browse the repository at this point in the history
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 887590d commit 775ac2d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gems.gemspec
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 775ac2d

Please sign in to comment.