mongo_beautiful_logger 0.3.0 → 0.3.1

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
  SHA256:
3
- metadata.gz: 4c58868b69432a45f1f40e031eeb8d60e88c33dae37aa48715475608f01afc53
4
- data.tar.gz: e063316c20d3461c5957afcae9b52eaea496445138cf4c7fc78de5e912387abe
3
+ metadata.gz: a4c72f1a4afccbadb36212389ea2a148f31638c319d549f635c47dcb1b4e93f1
4
+ data.tar.gz: 7da0afe4563ae6edd2118693481469a41544aeb4bf696f314028b4a060ec811a
5
5
  SHA512:
6
- metadata.gz: 7a7e2cdd141db663be2969779eab22f9eee4081bc4d3b0abcb22d4f92484ba00b01d7ebbf3f50e89d9ec1c52b33591e4c4e9ddd440ae03ab407190627839b59d
7
- data.tar.gz: de6694d1250d2459fa7762efdd85e751fa189760cbdad77a3d534767fde12a1dbd4a391d20d0030cd0c45539e4c9a059862c82776789fe3d401232972d8843a6
6
+ metadata.gz: e843dc219a3d83bdec7fc06666259aa9a71f1610c1ce7d64a2c77193feadce9d385cb02f1ae2c5b11277f839cbff087309dcf121749b551465eb1c9813c17d1e
7
+ data.tar.gz: 31b29333e9a323d87ee6235c3a33db493f03dc4829748ddf1b183ba00aba3d4bf479eddf99dd3e9b980a319b14a721effde3043fdf9c8e93602a4952ea486db3
@@ -3,24 +3,27 @@ require "mongo_beautiful_logger/colors"
3
3
  module MongoActions
4
4
  include Colors
5
5
 
6
+ # https://bugs.ruby-lang.org/issues/20433
7
+ arrow = (RUBY_VERSION >= '3.4') ? ' =>' : '=>'
8
+
6
9
  # substring matches and the corresponding colors for mongodb actions
7
- FIND = { match: "\"find\"=>", color: BLUE }
8
- UPDATE = { match: "\"update\"=>", color: YELLOW }
9
- INSERT = { match: "\"insert\"=>", color: GREEN }
10
- DELETE = { match: "\"delete\"=>", color: RED }
11
- AGGREGATE = { match: "\"aggregate\"=>", color: MAGENTA }
12
- SUCCEEDED = { match: "succeeded", color: GREEN }
13
- FAILED = { match: "failed", color: RED }
14
- ERROR = { match: "error", color: RED }
15
- ENDSESSION = { match: "\"endsessions\"=>", color: YELLOW }
16
- INITIALIZING = { match: "initializing", color: GREEN }
10
+ FIND = { match: "\"find\"#{arrow}", color: BLUE }
11
+ UPDATE = { match: "\"update\"#{arrow}", color: YELLOW }
12
+ INSERT = { match: "\"insert\"#{arrow}", color: GREEN }
13
+ DELETE = { match: "\"delete\"#{arrow}", color: RED }
14
+ AGGREGATE = { match: "\"aggregate\"#{arrow}", color: MAGENTA }
15
+ SUCCEEDED = { match: "succeeded", color: GREEN }
16
+ FAILED = { match: "failed", color: RED }
17
+ ERROR = { match: "error", color: RED }
18
+ ENDSESSION = { match: "\"endsessions\"#{arrow}", color: YELLOW }
19
+ INITIALIZING = { match: "initializing", color: GREEN }
17
20
  ACTIONS = [ FIND, UPDATE, INSERT, DELETE, AGGREGATE,
18
21
  SUCCEEDED, FAILED, ERROR, ENDSESSION, INITIALIZING ]
19
22
 
20
23
  # substring matches for unnecessary log messages that will be filtered out
21
24
  UNNECESSARY = ["opology", "server description"]
22
25
 
23
- # regex for for the log prefix that will be filtered out
26
+ # regex for the log prefix that will be filtered out
24
27
  # matches: +| localhost:27017 | app_test.update | STARTED |+
25
28
  # note: +| STARTED |+ and +| SUCCEEDED |+ will be filtered due to redundancy,
26
29
  # but +| FAILED |+ and others will not
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongo_beautiful_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ibraheem Ahmed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-25 00:00:00.000000000 Z
11
+ date: 2025-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,31 +16,31 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.17'
19
+ version: '2.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.17'
26
+ version: '2.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '13.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '13.3'
41
41
  description:
42
42
  email:
43
- - ibrah1440@gmail.com
43
+ - ibraheem@ibraheem.ca
44
44
  executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  requirements: []
70
- rubygems_version: 3.0.6
70
+ rubygems_version: 3.5.23
71
71
  signing_key:
72
72
  specification_version: 4
73
73
  summary: A simple and beautiful logger for MongoDB/Mongoid in you Ruby/Rails app.