grenache-ruby-base 0.2.12 → 0.2.13

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: 2f7d7e4d6ddabf5093e884b45ca36e7fa4d4d82f
4
- data.tar.gz: 818e640181c731fe924ea7c76d918e82fc983cb3
3
+ metadata.gz: 4beea15739f34ad71372e26e64bd31a88720e6a8
4
+ data.tar.gz: fc3eafd316a4f6c5cdbd519e4fa7a17114ec9726
5
5
  SHA512:
6
- metadata.gz: 3fe694b1ebb16730f8663677cf0f7ed27af4752d7ab4bc00a78145a8f43feda0bcf9d30ce524ea296f5c2ec8b044582120dd36831117cd4e870b98b5bb33409a
7
- data.tar.gz: 946c3db967dfeb06dbd1928ff8990bb42ab326c25ff24500b6918ee4a9f27189a9e36f408fe76a5dbda43c3c9d34674f798846123173d34c39c30c1dc380ef15
6
+ metadata.gz: 019a087c9d159fc36308b73b40defbdfaaa87f3b726695f459f5b8d7bed68c2a32a6a89013db404399f09139f69242203acdbdf337ba256ea9d0280aad35c47a
7
+ data.tar.gz: 3480656df43437225d38f51f57ecdea5eae39f77125392d52b0ee31948abd59279215b6e7230468ed0c6945f29aa3a63c28bc1785b60798dd6b643af20416a08
data/lib/grenache/base.rb CHANGED
@@ -9,6 +9,7 @@ module Grenache
9
9
  conf.timeout = 5
10
10
  conf.auto_announce_interval = 5
11
11
  conf.service_host = "0.0.0.0"
12
+ conf.cache_expire = 5
12
13
  end
13
14
 
14
15
  # Initialize can accept custom configuration parameters
@@ -47,7 +48,7 @@ module Grenache
47
48
  private
48
49
 
49
50
  def cache
50
- @cache ||= Cache.new
51
+ @cache ||= Cache.new(config.cache_expire)
51
52
  end
52
53
 
53
54
  def periodically(seconds)
@@ -1,3 +1,3 @@
1
1
  module Grenache
2
- VERSION = '0.2.12'
2
+ VERSION = '0.2.13'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grenache-ruby-base
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bitfinex
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-24 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eventmachine