promiscuous 0.100.0 → 0.100.2

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: b49e20ef32de7aa2d0ff24941962adf673ab5332
4
- data.tar.gz: 036b09d5ea13bc45751221693a7f8bb4edea4d1c
3
+ metadata.gz: f03baccd94bfc3544565c1d22949b5c9a27837ff
4
+ data.tar.gz: 37b69e7efed0d7b8e0d89e6dfd7f78610ec2bef7
5
5
  SHA512:
6
- metadata.gz: ceaab91a632d2b7eaa71f0ae59f14d66a47e7c5f531582425f24b567b79530dc3f2602ca01b139001dd047001c1b5f54ed41f1beb798d9dc8976de93c26a29ae
7
- data.tar.gz: 5d3313bc9aabb5f1da0a6e71216637dd326bc4d8c4a10cbfc3cbeb83b45733479c348f20a91b1b56160670d54e9653c70fd08e169c9a68dfaba8109aefddcad9
6
+ metadata.gz: 4c41185a3ba9ec6ef9e9df5bfbe688b050085ee3aa723a89a5c6f549797d2ff2d7cf2142f23ac631ef483f4d7e80a4013bf8e6534b22d04e44f14360eb6decb5
7
+ data.tar.gz: 7d1aba8027e95a1e6760e2cf9020b349d2d5fb99c42e54064f82abc689803d79d446b46421cfc95c44eb43a1b239ad2c6a54f3458473043518feee0e0ff5ebcf
@@ -60,7 +60,7 @@ module Promiscuous::Config
60
60
  self.version_field ||= '_v'
61
61
  self.recovery_on_boot = true if self.recovery_on_boot.nil?
62
62
  self.on_stats ||= proc { |rate, latency| }
63
- self.max_retries ||= 10
63
+ self.max_retries ||= defined?(Rails) ? Rails.env.production? ? 10 : 0 : 10
64
64
  self.generation ||= 1
65
65
  self.destroy_timeout ||= 1.hour
66
66
  self.destroy_check_interval ||= 10.minutes
@@ -1,3 +1,3 @@
1
1
  module Promiscuous
2
- VERSION = '0.100.0'
2
+ VERSION = '0.100.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promiscuous
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.100.0
4
+ version: 0.100.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nicolas Viennot