logster 2.12.2 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ci.yml +5 -0
  3. data/.streerc +2 -0
  4. data/CHANGELOG.md +4 -0
  5. data/Gemfile +1 -1
  6. data/assets/javascript/{chunk.143.f61340b825c6a3bf6dbe.js → chunk.143.91d07e8cdd5c4b9e4731.js} +4 -4
  7. data/assets/javascript/{chunk.178.6d9ae01775c898e7b748.js → chunk.178.16d0c9057345120bdba1.js} +3 -3
  8. data/assets/javascript/client-app.js +1 -1
  9. data/client-app/package.json +1 -1
  10. data/client-app/preload-json-manager.rb +10 -17
  11. data/client-app/yarn.lock +22 -22
  12. data/lib/examples/sidekiq_logster_reporter.rb +5 -7
  13. data/lib/logster/base_store.rb +26 -22
  14. data/lib/logster/cache.rb +2 -1
  15. data/lib/logster/configuration.rb +3 -3
  16. data/lib/logster/defer_logger.rb +2 -4
  17. data/lib/logster/group.rb +17 -20
  18. data/lib/logster/ignore_pattern.rb +1 -2
  19. data/lib/logster/logger.rb +18 -16
  20. data/lib/logster/message.rb +53 -57
  21. data/lib/logster/middleware/debug_exceptions.rb +12 -10
  22. data/lib/logster/middleware/reporter.rb +17 -26
  23. data/lib/logster/middleware/viewer.rb +77 -97
  24. data/lib/logster/pattern.rb +4 -7
  25. data/lib/logster/rails/railtie.rb +10 -13
  26. data/lib/logster/redis_rate_limiter.rb +2 -7
  27. data/lib/logster/redis_store.rb +79 -99
  28. data/lib/logster/scheduler.rb +1 -5
  29. data/lib/logster/suppression_pattern.rb +7 -5
  30. data/lib/logster/version.rb +1 -1
  31. data/lib/logster/web.rb +1 -1
  32. data/lib/logster.rb +15 -17
  33. data/logster.gemspec +14 -14
  34. data/test/examples/test_sidekiq_reporter_example.rb +8 -9
  35. data/test/fake_data/generate.rb +14 -3
  36. data/test/logster/middleware/test_reporter.rb +9 -7
  37. data/test/logster/middleware/test_viewer.rb +117 -101
  38. data/test/logster/test_base_store.rb +79 -58
  39. data/test/logster/test_cache.rb +5 -11
  40. data/test/logster/test_defer_logger.rb +3 -3
  41. data/test/logster/test_group.rb +14 -18
  42. data/test/logster/test_ignore_pattern.rb +2 -3
  43. data/test/logster/test_logger.rb +14 -14
  44. data/test/logster/test_message.rb +29 -31
  45. data/test/logster/test_pattern.rb +7 -15
  46. data/test/logster/test_redis_rate_limiter.rb +35 -21
  47. data/test/logster/test_redis_store.rb +239 -151
  48. data/test/test_helper.rb +9 -9
  49. metadata +19 -4
data/test/test_helper.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'minitest'
4
- require 'minitest/unit'
5
- require 'minitest/autorun'
6
- require 'minitest/pride'
7
- require 'redis'
8
- require 'logster'
9
- require 'logster/base_store'
10
- require 'timecop'
11
- require 'byebug'
3
+ require "minitest"
4
+ require "minitest/unit"
5
+ require "minitest/autorun"
6
+ require "minitest/pride"
7
+ require "redis"
8
+ require "logster"
9
+ require "logster/base_store"
10
+ require "timecop"
11
+ require "byebug"
12
12
 
13
13
  class Logster::TestStore < Logster::BaseStore
14
14
  attr_accessor :reported
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.12.2
4
+ version: 2.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Saffron
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-10 00:00:00.000000000 Z
11
+ date: 2023-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,6 +136,20 @@ dependencies:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.4.1
139
+ - !ruby/object:Gem::Dependency
140
+ name: syntax_tree
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
139
153
  description: UI for viewing logs in Rack
140
154
  email:
141
155
  - sam.saffron@gmail.com
@@ -146,6 +160,7 @@ files:
146
160
  - ".github/workflows/ci.yml"
147
161
  - ".gitignore"
148
162
  - ".rubocop.yml"
163
+ - ".streerc"
149
164
  - CHANGELOG.md
150
165
  - Gemfile
151
166
  - Guardfile
@@ -157,8 +172,8 @@ files:
157
172
  - assets/images/icon_144x144.png
158
173
  - assets/images/icon_64x64.png
159
174
  - assets/javascript/.gitkeep
160
- - assets/javascript/chunk.143.f61340b825c6a3bf6dbe.js
161
- - assets/javascript/chunk.178.6d9ae01775c898e7b748.js
175
+ - assets/javascript/chunk.143.91d07e8cdd5c4b9e4731.js
176
+ - assets/javascript/chunk.178.16d0c9057345120bdba1.js
162
177
  - assets/javascript/chunk.468.95dd450003497c781cb3.js
163
178
  - assets/javascript/chunk.916.85a3fc9d873df80f5ea5.js
164
179
  - assets/javascript/client-app.js