activerecord-refresh_connection 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e259517a798ec5e215eb057c367e1cc465998953
4
- data.tar.gz: 1b1f7509fad904e1408d78aaaa100f3614d408af
3
+ metadata.gz: eff77f96de76b973066a0ee7f2358e4b210a0f8c
4
+ data.tar.gz: b86cc9911aca2218ab48c876b692cf0c8ff932ee
5
5
  SHA512:
6
- metadata.gz: 6d592cb7813e276c1292378533238e8fd675bc07519c0b736da72c92bec9bf54c0622518199440c686c19caf3a5d17613e09980418a05f7342f354590d82959e
7
- data.tar.gz: f0b89ad7852982561fb7a6f9084ff90205e011650ef635682133561c2a49b12248b92032cb205b8e498208670d2131bcab916f9f6da8eebbb3051090c3606416
6
+ metadata.gz: f8e3187ce0bce10d3fb00c23678b2ad67dd5d7a143a980de202ab0894d26fbe1a44e3ccca942ce7c75a52d1e425376024469d4001c79c9221cc04787a3ec46d4
7
+ data.tar.gz: 228884e5f013745bc3015e9ed28101adedd604c2121c47c1ff21894d942282e62f5d0bc0b4af055ea5665fa74c7889d57c8f6019c35e9fe52a3604114e9cfe6c
@@ -1,3 +1,9 @@
1
+ ## 0.0.3
2
+
3
+ Fixes:
4
+
5
+ * Fix not to require options argument to keep lower version compatibility
6
+
1
7
  ## 0.0.2
2
8
 
3
9
  Enhancements:
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "activerecord-refresh_connection"
7
- spec.version = "0.0.2"
7
+ spec.version = "0.0.3"
8
8
  spec.authors = ["Naotoshi Seo"]
9
9
  spec.email = ["sonots@gmail.com"]
10
10
  spec.summary = %q{Refresh ActiveRecord connection on each rack request}
@@ -3,7 +3,7 @@ module ActiveRecord
3
3
  class RefreshConnectionManagement
4
4
  DEFAULT_OPTIONS = {max_requests: 1}
5
5
 
6
- def initialize(app, options)
6
+ def initialize(app, options = {})
7
7
  @app = app
8
8
  @options = DEFAULT_OPTIONS.merge(options)
9
9
  @mutex = Mutex.new
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-refresh_connection
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Naotoshi Seo