Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get rid of Jeweler and fix up Gemspec

  • Loading branch information...
commit 8bd3b7d683ea5188fe28f1ac9b80646b695b1cfc 1 parent 7b36d0c
Kieran Pilkington KieranP authored
6 CHANGELOG
View
@@ -1,5 +1,11 @@
deadlock_retry changes
+== v1.0.2 (2011-02-14)
+
+* Get working with Rails 2.3.5 or higher
+* Get test suite passing again
+* Code cleanup
+
== v1.0 - (2009-02-07)
* Add INNODB status logging for debugging deadlock issues.
9 README
View
@@ -8,13 +8,10 @@ This capability is automatically added to ActiveRecord. No code changes or other
== Installation
-Add it to your Rails application by installing the gem:
+Add it to your Rails application via Bundler via:
- sudo gem install negval-deadlock_retry
-
-and including a reference to it in your application's config/environment.rb:
-
- config.gem 'negval-deadlock_retry', :lib => 'deadlock_retry', :source => 'http://rubygems.com'
+ gem 'deadlock_retry', :git => 'git://github.com/heaps/deadlock_retry.git'
+== Copyright
Copyright (c) 2005 Jamis Buck, released under the MIT license
16 Rakefile
View
@@ -8,19 +8,3 @@ 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 = "kieran@heaps.co.nz"
- s.homepage = "http://github.com/heaps/deadlock_retry"
- s.description = s.summary = "Provides automatical deadlock retry and logging functionality for ActiveRecord and MySQL"
- s.authors = ["Jamis Buck", "Mike Perham", "Denis Sukhonin", "Kieran Pilkington"]
- s.files = FileList['README', 'Rakefile', 'version.yml', "{lib,test}/**/*", 'CHANGELOG']
- end
- Jeweler::GemcutterTasks.new
-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
4 VERSION.yml
View
@@ -1,4 +0,0 @@
----
-:major: 1
-:minor: 0
-:patch: 1
19 deadlock_retry.gemspec
View
@@ -0,0 +1,19 @@
+Gem::Specification.new do |s|
+ s.name = "deadlock_retry"
+ s.version = "1.0.2"
+ s.authors = ["Jamis Buck", "Mike Perham", "Denis Sukhonin", "Kieran Pilkington"]
+ s.email = "kieran@heaps.co.nz"
+ s.homepage = "https://github.com/heaps/deadlock_retry"
+ s.summary = "Retry deadlocked queries in Ruby on Rails."
+ s.description = "Provides automatic deadlock retry and logging functionality for MySQL ActiveRecord usage."
+
+ s.files = Dir["{lib,test}/**/*", "[A-Z]*", "init.rb"]
+ s.require_path = "lib"
+
+ s.add_development_dependency 'rails', '~> 2.3.5'
+ s.add_development_dependency 'rr', '~> 0.10.11' # 1.0.0 has respond_to? issues: http://github.com/btakita/rr/issues/issue/43
+ s.add_development_dependency 'supermodel', '~> 0.1.4'
+
+ s.rubyforge_project = s.name
+ s.required_rubygems_version = ">= 1.3.4"
+end
1  init.rb
View
@@ -0,0 +1 @@
+require 'deadlock_retry'
44 negval-deadlock_retry.gemspec
View
@@ -1,44 +0,0 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
-# -*- encoding: utf-8 -*-
-
-Gem::Specification.new do |s|
- s.name = %q{negval-deadlock_retry}
- s.version = "1.0.0"
-
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Jamis Buck", "Mike Perham", "Denis Sukhonin"]
- s.date = %q{2010-10-27}
- s.description = %q{Provides automatical deadlock retry and logging functionality for ActiveRecord and MySQL}
- s.email = %q{d.sukhonin@gmail.com}
- s.extra_rdoc_files = [
- "README"
- ]
- s.files = [
- "CHANGELOG",
- "README",
- "Rakefile",
- "lib/deadlock_retry.rb",
- "test/deadlock_retry_test.rb"
- ]
- s.homepage = %q{http://github.com/neglectedvalue/deadlock_retry}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.7}
- s.summary = %q{Provides automatical deadlock retry and logging functionality for ActiveRecord and MySQL}
- s.test_files = [
- "test/deadlock_retry_test.rb"
- ]
-
- if s.respond_to? :specification_version then
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
- s.specification_version = 3
-
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
- else
- end
- else
- end
-end
-
Please sign in to comment.
Something went wrong with that request. Please try again.