yipdw-after_commit 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  test.sqlite3
2
2
  pkg
3
+ *.sw?
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.0.1
@@ -0,0 +1,58 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{after_commit}
8
+ s.version = "0.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Nick Muerdter", "David Yip"]
12
+ s.date = %q{2009-09-01}
13
+ s.description = %q{A Ruby on Rails plugin to add an after_commit callback. This can be used to trigger things only after the entire transaction is complete.}
14
+ s.email = %q{yipdw@northwestern.edu}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README"
18
+ ]
19
+ s.files = [
20
+ ".gitignore",
21
+ "LICENSE",
22
+ "README",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "after_commit.gemspec",
26
+ "init.rb",
27
+ "lib/after_commit.rb",
28
+ "lib/after_commit/active_record.rb",
29
+ "lib/after_commit/connection_adapters.rb",
30
+ "test/after_commit_test.rb",
31
+ "test/observer_test.rb",
32
+ "test/test_helper.rb"
33
+ ]
34
+ s.has_rdoc = true
35
+ s.homepage = %q{http://github.com/yipdw/after_commit}
36
+ s.rdoc_options = ["--charset=UTF-8"]
37
+ s.require_paths = ["lib"]
38
+ s.rubygems_version = %q{1.3.1}
39
+ s.summary = %q{after_commit callback for ActiveRecord}
40
+ s.test_files = [
41
+ "test/after_commit_test.rb",
42
+ "test/observer_test.rb",
43
+ "test/test_helper.rb"
44
+ ]
45
+
46
+ if s.respond_to? :specification_version then
47
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
48
+ s.specification_version = 2
49
+
50
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
51
+ s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
52
+ else
53
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
54
+ end
55
+ else
56
+ s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
57
+ end
58
+ end
data/init.rb CHANGED
@@ -1,5 +1 @@
1
- ActiveRecord::Base.send(:include, AfterCommit::ActiveRecord)
2
-
3
- Object.subclasses_of(ActiveRecord::ConnectionAdapters::AbstractAdapter).each do |klass|
4
- klass.send(:include, AfterCommit::ConnectionAdapters)
5
- end
1
+ require 'after_commit'
data/lib/after_commit.rb CHANGED
@@ -31,3 +31,12 @@ module AfterCommit
31
31
  @@committed_records_on_destroy = committed_records
32
32
  end
33
33
  end
34
+
35
+ require 'after_commit/active_record'
36
+ require 'after_commit/connection_adapters'
37
+
38
+ ActiveRecord::Base.send(:include, AfterCommit::ActiveRecord)
39
+
40
+ Object.subclasses_of(ActiveRecord::ConnectionAdapters::AbstractAdapter).each do |klass|
41
+ klass.send(:include, AfterCommit::ConnectionAdapters)
42
+ end
data/test/test_helper.rb CHANGED
@@ -2,9 +2,6 @@ $LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
2
2
  require 'test/unit'
3
3
  require 'rubygems'
4
4
  require 'activerecord'
5
- require 'after_commit'
6
- require 'after_commit/active_record'
7
- require 'after_commit/connection_adapters'
8
5
 
9
6
  begin
10
7
  require 'sqlite3'
@@ -20,4 +17,4 @@ rescue
20
17
  end
21
18
  ActiveRecord::Base.connection.execute("create table mock_records(id int)");
22
19
 
23
- require File.dirname(__FILE__) + '/../init.rb'
20
+ require 'after_commit'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yipdw-after_commit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Muerdter
@@ -38,6 +38,7 @@ files:
38
38
  - README
39
39
  - Rakefile
40
40
  - VERSION
41
+ - after_commit.gemspec
41
42
  - init.rb
42
43
  - lib/after_commit.rb
43
44
  - lib/after_commit/active_record.rb
@@ -47,6 +48,7 @@ files:
47
48
  - test/test_helper.rb
48
49
  has_rdoc: true
49
50
  homepage: http://github.com/yipdw/after_commit
51
+ licenses:
50
52
  post_install_message:
51
53
  rdoc_options:
52
54
  - --charset=UTF-8
@@ -67,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
69
  requirements: []
68
70
 
69
71
  rubyforge_project:
70
- rubygems_version: 1.2.0
72
+ rubygems_version: 1.3.5
71
73
  signing_key:
72
74
  specification_version: 2
73
75
  summary: after_commit callback for ActiveRecord