logster 2.9.1 → 2.9.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
  SHA256:
3
- metadata.gz: 9032c8507086eb877d7625f3590c261b14a230a5dc7715ef137a5cbcc25a4110
4
- data.tar.gz: 728a25b56e427715672bd5071125cf5cc168e5f8e6a521445bb2179f07d29254
3
+ metadata.gz: b6bfa37a007e1a0c6949cf94791f4d910af327bf8a715c155f33bab108813f1f
4
+ data.tar.gz: cca6f8e9ce0edd51c6ff7d370fac3e75740cbe96cfd43873aee7dc3b3d3e6ebe
5
5
  SHA512:
6
- metadata.gz: 87746d8b220b4980426c3b4979f4444210eefcc9ca1079e87baac4742c85fd87b78f472217487aa703fcf7f350236a9ba3cba6b4e2e49effeaf3ba764e9e23d3
7
- data.tar.gz: f7b165df51ae59826a003ec2839a61cd1516cc7e9fee908f8b73b6872ccb9add5aa491a770189ce40d5b3d9e4534fdab5056a83304448d848a30578f7fcc9084
6
+ metadata.gz: b84f20df74b3613493dbf752cf31fda784c070384f7d83c0aa9f28fe288b8c9ef8c5fc3ddd56fe5873a442684c43c1298c8e78d4700791f62717bb70230cf341
7
+ data.tar.gz: 676e6b97dc13dfe5965612b5548c8475e517d5307a705e9c82d6fe05e6069827515d1e2938dfc90c9c66836931ef4e997c2fdd94dadd701e8105ab525f027e53
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ - 2020-08-11: 2.9.2
4
+
5
+ - FIX: `report_js_error` incorrectly denying logs when Redis#exists returns integer
6
+
3
7
  - 2020-07-20: 2.9.1
4
8
 
5
9
  - FIX: Missing application backtrace in chained loggers.
@@ -343,6 +343,9 @@ module Logster
343
343
  key = ip_rate_limit_key(ip_address)
344
344
 
345
345
  limited = @redis.exists(key)
346
+ if Integer === limited
347
+ limited = limited != 0
348
+ end
346
349
 
347
350
  if perform && !limited
348
351
  @redis.setex key, limit, ""
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Logster
4
- VERSION = "2.9.1"
4
+ VERSION = "2.9.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logster
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-20 00:00:00.000000000 Z
11
+ date: 2020-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler