From c7dc1a36bb2b9dbd32e8457b623c8650d5625f1c Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Thu, 22 Dec 2011 12:38:48 +0100 Subject: [PATCH] Prevent version file from being loaded twice, thus causing "already initialized constant" warnings. --- resque-scheduler.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/resque-scheduler.gemspec b/resque-scheduler.gemspec index 7ac52a13..0a832c6d 100644 --- a/resque-scheduler.gemspec +++ b/resque-scheduler.gemspec @@ -1,5 +1,6 @@ # -*- encoding: utf-8 -*- -require File.expand_path("../lib/resque_scheduler/version", __FILE__) +$:.unshift File.expand_path("../lib", __FILE__) +require "resque_scheduler/version" Gem::Specification.new do |s| s.name = "resque-scheduler"