logster 2.11.2 → 2.11.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
  SHA256:
3
- metadata.gz: ac4fd2b906013693d1b76679876762a938c333642df5306c0e1c7b1e53c01e04
4
- data.tar.gz: a6980fcc69d06ce88f821c83662400b5a17887a8896fd06df096a06c7cffa40f
3
+ metadata.gz: 6b0b28ee30c18ff2369e3ce67d5d08b4e78090fd14acf84f4880818f1a039dba
4
+ data.tar.gz: 9503cf60286d36dd8c7e3077dd362b81c5111923f57e2295fa6520f1aacae7f5
5
5
  SHA512:
6
- metadata.gz: ea5f6d1da6046eb5cad955ac63b435ed98597769bf8da58c6fccac41ab48d4fb6bb06f0b25b8b993224e9f1940a60b4deed2750b55072d5be3b84d6abfe64cc7
7
- data.tar.gz: 98cecbb8c155368f57d70482e57be3e04ef780c06c8c983255aed44e09a78af176bbe375f78b685788e6cf6c9748be51ff521a00d11075004bdedc424fe535a8
6
+ metadata.gz: c0327869de6dcc319915a239a2a82b238f028f8f973fdb9170fa0e8f6549460bf4df3ff6b306a08a573bde6cfef42c08646b22b4ff06c372be15d0fde2c2728a
7
+ data.tar.gz: 3b0ab2e5f6b3cece6d1b4244f49cfc935a1987c19921a7c1d5c5b1e5acd1e4920894c9d7230d869092a16a56cacbbec531a2d990f594678afa953658bc620cc3
data/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
1
  # CHANGELOG
2
+ - 2022-08-25: 2.11.3
3
+
4
+ - DEV: Avoid deprecation warning in Redis 4.8 (#166)
5
+
2
6
  - 2022-04-28: 2.11.2
3
7
 
4
8
  - FIX: store override level in thread local storage (Truffle Ruby compatability)
@@ -9,7 +9,7 @@
9
9
  "version": "0.0.0",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "moment": "~2.29.2"
12
+ "moment": "~2.29.4"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@ember/optional-features": "^1.1.0",
@@ -16131,9 +16131,9 @@
16131
16131
  }
16132
16132
  },
16133
16133
  "node_modules/moment": {
16134
- "version": "2.29.2",
16135
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.2.tgz",
16136
- "integrity": "sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg==",
16134
+ "version": "2.29.4",
16135
+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
16136
+ "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==",
16137
16137
  "engines": {
16138
16138
  "node": "*"
16139
16139
  }
@@ -19751,9 +19751,9 @@
19751
19751
  }
19752
19752
  },
19753
19753
  "node_modules/terser": {
19754
- "version": "4.6.3",
19755
- "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.3.tgz",
19756
- "integrity": "sha512-Lw+ieAXmY69d09IIc/yqeBqXpEQIpDGZqT34ui1QWXIUpR2RjbqEkT8X7Lgex19hslSqcWM5iMN2kM11eMsESQ==",
19754
+ "version": "4.8.1",
19755
+ "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
19756
+ "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==",
19757
19757
  "dev": true,
19758
19758
  "dependencies": {
19759
19759
  "commander": "^2.20.0",
@@ -34834,9 +34834,9 @@
34834
34834
  "dev": true
34835
34835
  },
34836
34836
  "moment": {
34837
- "version": "2.29.2",
34838
- "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.2.tgz",
34839
- "integrity": "sha512-UgzG4rvxYpN15jgCmVJwac49h9ly9NurikMWGPdVxm8GZD6XjkKPxDTjQQ43gtGgnV3X0cAyWDdP2Wexoquifg=="
34837
+ "version": "2.29.4",
34838
+ "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz",
34839
+ "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
34840
34840
  },
34841
34841
  "morgan": {
34842
34842
  "version": "1.9.1",
@@ -37907,9 +37907,9 @@
37907
37907
  }
37908
37908
  },
37909
37909
  "terser": {
37910
- "version": "4.6.3",
37911
- "resolved": "https://registry.npmjs.org/terser/-/terser-4.6.3.tgz",
37912
- "integrity": "sha512-Lw+ieAXmY69d09IIc/yqeBqXpEQIpDGZqT34ui1QWXIUpR2RjbqEkT8X7Lgex19hslSqcWM5iMN2kM11eMsESQ==",
37910
+ "version": "4.8.1",
37911
+ "resolved": "https://registry.npmjs.org/terser/-/terser-4.8.1.tgz",
37912
+ "integrity": "sha512-4GnLC0x667eJG0ewJTa6z/yXrbLGv80D9Ru6HIpCQmO+Q4PfEtBFi0ObSckqwL6VyQv/7ENJieXHo2ANmdQwgw==",
37913
37913
  "dev": true,
37914
37914
  "requires": {
37915
37915
  "commander": "^2.20.0",
@@ -58,6 +58,6 @@
58
58
  "edition": "octane"
59
59
  },
60
60
  "dependencies": {
61
- "moment": "~2.29.2"
61
+ "moment": "~2.29.4"
62
62
  }
63
63
  }
@@ -81,8 +81,11 @@ module Logster
81
81
 
82
82
  def self.hostname
83
83
  @hostname ||= begin
84
- command = (Logster.config.use_full_hostname ? `hostname -f` : `hostname`) rescue "<unknown>"
84
+ command = Logster.config.use_full_hostname ? `hostname -f` : `hostname`
85
85
  command.strip!
86
+ command
87
+ rescue
88
+ "<unknown>"
86
89
  end
87
90
  end
88
91
 
@@ -318,11 +318,11 @@ module Logster
318
318
  end
319
319
 
320
320
  def insert_pattern(set_name, pattern)
321
- @redis.sadd(set_name, pattern)
321
+ @redis.sadd(set_name, [pattern])
322
322
  end
323
323
 
324
324
  def remove_pattern(set_name, pattern)
325
- @redis.srem(set_name, pattern)
325
+ @redis.srem(set_name, [pattern])
326
326
  end
327
327
 
328
328
  def get_patterns(set_name)
@@ -434,9 +434,9 @@ module Logster
434
434
  redis.hset(hash_key, message.key, message.to_json(exclude_env: true))
435
435
  push_env(message.key, message.env, redis: redis) if save_env
436
436
  if message.protected
437
- redis.sadd(protected_key, message.key)
437
+ redis.sadd(protected_key, [message.key])
438
438
  else
439
- redis.srem(protected_key, message.key)
439
+ redis.srem(protected_key, [message.key])
440
440
  end
441
441
  end
442
442
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Logster
4
- VERSION = "2.11.2"
4
+ VERSION = "2.11.3"
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.11.2
4
+ version: 2.11.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-28 00:00:00.000000000 Z
11
+ date: 2022-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler