perfect_retry 0.3.1 → 0.3.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: 49523eaae09cb035294620d6e10a5a3edba3b911
4
- data.tar.gz: d8d016162a80c351d73b1fa4ac18ccb44dab8bdd
3
+ metadata.gz: 5101e2376c9d12d1a0c9f90511a3620d4fafea16
4
+ data.tar.gz: 40721c190a01cc6e38dd41d4bf3cead98460374a
5
5
  SHA512:
6
- metadata.gz: 4d270b7d4550c9bfff1f6797e676230c2d0534037c7a6570100945a6d728dedbd0aa07af73af8c0f1cd720edf3f0446ffe5b1b23770948249aa229252abd414a
7
- data.tar.gz: fad0dc3724e5c09f575059cca6f91c01f81f33f84ff6930713e7195b0d28a5ea1a9aebed52c223e1eac38b37ea9cb9c9e55a1e9dec6169cfa6aa2982a1e44265
6
+ metadata.gz: 54c218762f5aea3a28635091e2416438a071bc92b6fd2e0468f4fe5a1921d45a01e5ff8dfd28ca28de58936bf40aea96b96225dd975df04a74a2729e7e9794fc
7
+ data.tar.gz: 2f3b7259d3da132c3c6a197b879039aba817eee4f9d0acba98993fd310046941ddec438710795fe9e5fa7103d9074c88006eb8db6c94d8f57ae0da206bb39c63
data/NEWS.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.3.2 2015-11-16
2
+
3
+ - [fixed] Don't warn if `log_level` is nil and logger doesn't have `level=` method.
4
+
1
5
  # 0.3.1 2015-11-13
2
6
 
3
7
  - [fixed] Ignore `log_level` config when logger doesn't have `level=` method [#3](https://github.com/uu59/perfect_retry/pull/3)
@@ -11,7 +11,7 @@ class PerfectRetry
11
11
  end
12
12
 
13
13
  def set_log_level
14
- unless logger.respond_to?(:level=)
14
+ if log_level && !logger.respond_to?(:level=)
15
15
  logger.warn("Ignore log_level setting because your logger don't have `level=` method. Info: `config.log_level = nil` will not try to change log level.")
16
16
  return
17
17
  end
@@ -1,3 +1,3 @@
1
1
  class PerfectRetry
2
- VERSION = "0.3.1".freeze
2
+ VERSION = "0.3.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perfect_retry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - uu59
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-13 00:00:00.000000000 Z
11
+ date: 2015-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler