with_connection 0.1.22 → 0.1.24

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.22
1
+ 0.1.24
@@ -30,6 +30,17 @@ module WithConnection
30
30
  end
31
31
  alias_method_chain :with_connection, :debug
32
32
 
33
+ def checkin(conn)
34
+ @connection_mutex.synchronize do
35
+ conn.send(:_run_checkin_callbacks) do
36
+ @connections.delete conn
37
+ @connections.push conn
38
+ @checked_out.delete conn
39
+ @queue.signal
40
+ end
41
+ end
42
+ end
43
+
33
44
  def checkout_with_debug
34
45
  if @debug_with_connection && ! @using_with_connection
35
46
  Rails.logger.warn "#{name} not using with_connection, backtrace: #{caller.inspect}"
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "with_connection"
8
- s.version = "0.1.22"
8
+ s.version = "0.1.24"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Doug Youch"]
12
- s.date = "2013-07-18"
12
+ s.date = "2013-10-10"
13
13
  s.description = "Uses active record connection pool logic with the fiber_patch"
14
14
  s.email = "doug@sessionm.com"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: with_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.24
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-07-18 00:00:00.000000000 Z
12
+ date: 2013-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -116,7 +116,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  segments:
118
118
  - 0
119
- hash: -376814419099188016
119
+ hash: 529845564490800460
120
120
  required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  none: false
122
122
  requirements: