Damian Janowski
c19f3242b4
Remove deprecated #with_connection
.
2012-12-18 23:53:08 -03:00
Damian Janowski
c0eed147fa
TimedQueue
is now properly named ConnectionPool::TimedStack
.
2012-12-18 23:51:47 -03:00
Damian Janowski
ae182c844c
Deprecate #with_connection
in favor of #with
.
2012-12-18 23:35:21 -03:00
Damian Janowski
42614fa8a3
Style.
2012-12-18 15:08:06 -03:00
Damian Janowski
4b84882f1e
Fix requires, making sure we don't accidentally load the gem.
2012-12-18 15:04:53 -03:00
Damian Janowski
f0cb4ea11f
Restore Wrapper
inheriting from BasicObject
. Closes #16 .
2012-12-18 13:50:12 -03:00
Damian Janowski
29cd6d7b56
More robust Wrapper#respond_to?
.
...
See #25 .
2012-12-18 13:41:59 -03:00
Russell Cloak
ea871f86b9
Added respond_to? extension to wrapper class
...
When respond_to? is called on a instance of the wrapper class, it would
technically give an incorrect false when a method could just be passed
along to the connection object via method_missing. This resolves that
issue by checking the instance methods of the connection object along
with the instance methods of the wrapper when respond_to? is called.
2012-11-08 17:14:31 -08:00
Petteri Räty
387013797b
Fix nested checkouts
...
If you did nested checkouts the inner use would check the connection
back to the pool and then the outer checkout could be using a connection
at the same time with something else. See issue #14 .
2012-06-18 16:15:50 +03:00
Mike Perham
3d3ce24d39
Remove BasicObject, bump version
2012-03-14 09:18:03 -07:00
Mike Perham
ad08c55f8b
Wrapper should provide 'with' just like a ConnectionPool instance, minor cleanup.
2012-03-14 08:36:40 -07:00
Damian Janowski
03a92e5b26
Cache the key to Thread.current.
2012-03-14 10:27:21 -03:00
Damian Janowski
e3cb08c172
Cache options to instance variables for faster access.
...
Also lets the hash be GC'd.
2012-03-14 10:24:47 -03:00
Damian Janowski
bff870bf87
Nicer syntax for building TimedQueues.
2012-03-14 10:21:07 -03:00
Damian Janowski
26a7262802
Update docs for wrapper change.
2012-03-14 10:10:09 -03:00
Damian Janowski
8ec4b4e7c5
Do pass-through via a specialized class.
2012-03-14 10:07:43 -03:00
James Kyburz and Kim Burgestrand
8ff1217bbd
Fix superclass mismatch for ConnectionPool in version.rb
2012-03-02 14:23:54 +01:00
Pete Higgins
5977adf0f5
Fix method_missing with block.
2012-02-08 09:44:18 -08:00
Mike Perham
751be41b6b
Move timed_queue, prepare for release
2011-09-19 14:29:59 -07:00
Mike Perham
3ac11a9206
Update connection_pool to subclass BasicObject
...
This makes it a more effective proxy.
2011-09-19 10:29:31 -07:00
TJ Singleton
6ce5412fb1
only undef if defined
2011-09-18 16:41:40 -04:00
TJ Singleton
1cc6a70718
pass type through to reeds on 1.8.7
2011-09-18 16:26:26 -04:00
Mike Perham
ecea6ea253
Remove @busy variable, more precise timeout waits
2011-09-18 12:05:52 -07:00
Mike Perham
e91483ac6f
Exception upon checkout now causes 100% less corruption!
2011-09-09 14:12:23 -07:00
Mike Perham
5ddef034cf
More testing, threading fixes
2011-05-14 19:42:07 -07:00
Mike Perham
27362471c6
Add project info, tests
2011-05-14 15:36:17 -07:00
Mike Perham
035e7519d2
Initial pass at a generic connection pool
2011-05-14 12:29:51 -07:00