with_connection 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -1,15 +1,17 @@
1
1
  module ActiveRecord
2
2
  module ConnectionAdapters
3
3
  class ConnectionPool
4
- # when checking in a connection put it at the end of the connections array.
5
- # this way all the connections get used
6
- def checkin(conn)
7
- @connection_mutex.synchronize do
8
- conn.send(:_run_checkin_callbacks) do
9
- @connections.delete conn
10
- @connections.push conn
11
- @checked_out.delete conn
12
- @queue.signal
4
+ module RoundRobin
5
+ # when checking in a connection put it at the end of the connections array.
6
+ # this way all the connections get used
7
+ def checkin(conn)
8
+ @connection_mutex.synchronize do
9
+ conn.send(:_run_checkin_callbacks) do
10
+ @connections.delete conn
11
+ @connections.push conn
12
+ @checked_out.delete conn
13
+ @queue.signal
14
+ end
13
15
  end
14
16
  end
15
17
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "with_connection"
8
- s.version = "0.2.0"
8
+ s.version = "0.2.1"
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-10-29"
12
+ s.date = "2014-01-22"
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.2.0
4
+ version: 0.2.1
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-10-29 00:00:00.000000000 Z
12
+ date: 2014-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: 4242180929008766198
120
+ hash: -1312747164140579468
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements: