Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add changelog and jeweler

  • Loading branch information...
commit f4e11b7c02f327f788a9312136addbb3901d8fbe 1 parent 144452e
@mperham authored
Showing with 39 additions and 3 deletions.
  1. +7 −0 CHANGELOG
  2. +13 −3 README
  3. +15 −0 Rakefile
  4. +4 −0 VERSION.yml
View
7 CHANGELOG
@@ -0,0 +1,7 @@
+deadlock_retry changes
+
+== v1.0 - (2009-02-07)
+
+* Add INNODB status logging for debugging deadlock issues.
+* Clean up so the code will run as a gem plugin.
+* Small fix for ActiveRecord 2.1.x compatibility.
View
16 README
@@ -1,5 +1,4 @@
-Deadlock Retry
-==============
+= Deadlock Retry
Deadlock retry allows the database adapter (currently only tested with the
MySQLAdapter) to retry transactions that fall into deadlock. It will retry
@@ -7,4 +6,15 @@ such transactions three times before finally failing.
This capability is automatically added to ActiveRecord. No code changes or otherwise are required.
-Copyright (c) 2005 Jamis Buck, released under the MIT license
+== Installation
+
+Add it to your Rails application by installing the gem:
+
+ sudo gem install mperham-deadlock_retry
+
+and including a reference to it in your application's config/environment.rb:
+
+ config.gem 'mperham-deadlock_retry', :lib => 'deadlock_retry', :source => 'http://gems.github.com'
+
+
+Copyright (c) 2005 Jamis Buck, released under the MIT license
View
15 Rakefile
@@ -8,3 +8,18 @@ Rake::TestTask.new do |t|
t.test_files = Dir["test/**/*_test.rb"]
t.verbose = true
end
+
+begin
+ require 'jeweler'
+
+ Jeweler::Tasks.new do |s|
+ s.name = "deadlock_retry"
+ s.email = "mperham@gmail.com"
+ s.homepage = "http://github.com/mperham/deadlock_retry"
+ s.description = s.summary = "Provides automatical deadlock retry and logging functionality for ActiveRecord and MySQL"
+ s.authors = ["Jamis Buck", "Mike Perham"]
+ s.files = FileList['README', 'Rakefile', 'version.yml', "{lib,test}/**/*", 'CHANGELOG']
+ end
+rescue LoadError
+ # Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com
+end
View
4 VERSION.yml
@@ -0,0 +1,4 @@
+---
+:patch: 0
+:major: 0
+:minor: 0
Please sign in to comment.
Something went wrong with that request. Please try again.