Permalink
Browse files

Ensure VERSION constant is only loaded once

  • Loading branch information...
1 parent dcb1bb9 commit c34343b2e2da2f6bd68dd3825228651e08509b81 @josh josh committed Jun 21, 2011
Showing with 4 additions and 1 deletion.
  1. +4 −1 sprockets.gemspec
View
@@ -1,4 +1,7 @@
-require File.expand_path("../lib/sprockets/version.rb", __FILE__)
+unless defined? Sprockets::VERSION
+ $:.unshift File.expand_path("../lib", __FILE__)
+ require "sprockets/version"
+end
Gem::Specification.new do |s|
s.name = "sprockets"

0 comments on commit c34343b

Please sign in to comment.