dominate 0.7.4 → 0.7.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 476084c4ad7f1ce70b9a53f9c688bcd7712d9a81
4
- data.tar.gz: b485b1fd2c208612788b9142368e856538b25e21
3
+ metadata.gz: c36f351ee86ff1383ce650fe15a4670dd00d152b
4
+ data.tar.gz: 00cf89cb8c259bef995982c5c4f22de1869435b7
5
5
  SHA512:
6
- metadata.gz: 948ac1ebb9940da3b5d44bae8f4aaf593a40875e2ab6802408c5a59a1c678585ab0cb365aeb898ba99b712df392d3379e19d7efd74d13f26973a90abb196e459
7
- data.tar.gz: 9ab1fbb9e5cdbda823415257ec9d4f2a3ae68e1970bcf60fa26f2ba1bd989d22167562e6c4af1151ed3fae1d9ecc250514d5828301d9434cd1b1801472382e02
6
+ metadata.gz: 0bbba36241881fc63d6037c92a822c0790cb3d3ac2ed4e36a7a15d66aa4fd74e703eb2561d8e86986b42f19da7a034b3749af643ec1e8d4d18a54690dcd5b120
7
+ data.tar.gz: 2f4b4111807050c5ba8f3e28bebe8f960ac913534505ab01353c4a0173f973cc0bd59555860200d73ed726cb607ef1705a91a312a46603cc19b0ed40aa3b199d
@@ -1,3 +1,3 @@
1
1
  module Dominate
2
- VERSION = "0.7.4"
2
+ VERSION = "0.7.5"
3
3
  end
@@ -44,7 +44,11 @@ module Eventable
44
44
  }
45
45
 
46
46
  threads.map(&:join)
47
- ActiveRecord::Base.connection_pool.clear_stale_cached_connections! if defined? ActiveRecord
47
+
48
+ # Recover lost connections for the pool. A lost connection can occur if a
49
+ # programmer forgets to checkin a connection at the end of a thread or a
50
+ # thread dies unexpectedly.
51
+ ActiveRecord::Base.connection_pool.reap if defined? ActiveRecord
48
52
 
49
53
  true
50
54
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dominate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-25 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri