Permalink
Browse files

Merge pull request #11 from kbrock/version_file

move version out of deadlock_retry (was getting double require warnings)
  • Loading branch information...
2 parents d09e498 + a39cece commit 2cf2530620501a8c8800bea35e53992732299241 @mperham committed Feb 9, 2012
Showing with 6 additions and 4 deletions.
  1. +3 −1 deadlock_retry.gemspec
  2. +0 −3 lib/deadlock_retry.rb
  3. +3 −0 lib/deadlock_retry/version.rb
View
@@ -1,6 +1,8 @@
# -*- encoding: utf-8 -*-
-require './lib/deadlock_retry'
+$:.push File.expand_path("../lib", __FILE__)
+
+require "deadlock_retry/version"
Gem::Specification.new do |s|
s.name = %q{deadlock_retry}
View
@@ -1,9 +1,6 @@
require 'active_support/core_ext/module/attribute_accessors'
module DeadlockRetry
-
- VERSION = '1.1.2'
-
def self.included(base)
base.extend(ClassMethods)
base.class_eval do
@@ -0,0 +1,3 @@
+module DeadlockRetry
+ VERSION = '1.1.2'
+end

0 comments on commit 2cf2530

Please sign in to comment.