betterlog 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/betterlog.gemspec +18 -36
- data/lib/betterlog/global_metadata.rb +1 -1
- data/lib/betterlog/version.rb +1 -1
- data/spec/betterlog/global_metadata_spec.rb +2 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c916f2cfc831f6a3ca23ab03b861dacb4f9e48af67a67f336e2bd9a2aa7412f6
|
4
|
+
data.tar.gz: faa732b45a4e18bdcd143073bf991c57490b64cd38402e3a90bfc1c908ed8aa3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0cd114b7cbd2a74cb45475f92b4066c819a8430f68faa18096f0fe155d1fb8792901925489df3c0550c29e38a84b69068df3f08f52c3095ff2397ccc116fe65c
|
7
|
+
data.tar.gz: caab1d2b2522e794ea9a419c7cd6a643fdd1bbb76c7b2c696c0b94910da475aa839098fb58a5e752fb0f27a5b2e7b8db1e3660ee0bef8b32ff3f2c60473b9f42
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.0.
|
1
|
+
2.0.2
|
data/betterlog.gemspec
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: betterlog 2.0.
|
2
|
+
# stub: betterlog 2.0.2 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "betterlog".freeze
|
6
|
-
s.version = "2.0.
|
6
|
+
s.version = "2.0.2".freeze
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
9
9
|
s.require_paths = ["lib".freeze]
|
10
10
|
s.authors = ["betterplace Developers".freeze]
|
11
|
-
s.date = "
|
11
|
+
s.date = "2024-01-25"
|
12
12
|
s.description = "This library provides structure json logging for our rails projects".freeze
|
13
13
|
s.email = "developers@betterplace.org".freeze
|
14
14
|
s.executables = ["betterlog".freeze]
|
@@ -16,41 +16,23 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.files = [".all_images.yml".freeze, ".github/workflows/codeql-analysis.yml".freeze, ".gitignore".freeze, ".semaphore/semaphore.yml".freeze, ".tool-versions".freeze, "Gemfile".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "VERSION".freeze, "betterlog.gemspec".freeze, "bin/betterlog".freeze, "config/log.yml".freeze, "lib/betterlog.rb".freeze, "lib/betterlog/global_metadata.rb".freeze, "lib/betterlog/log.rb".freeze, "lib/betterlog/log/event.rb".freeze, "lib/betterlog/log/event_formatter.rb".freeze, "lib/betterlog/log/severity.rb".freeze, "lib/betterlog/log_event_formatter.rb".freeze, "lib/betterlog/notifiers.rb".freeze, "lib/betterlog/railtie.rb".freeze, "lib/betterlog/version.rb".freeze, "spec/betterlog/global_metadata_spec.rb".freeze, "spec/betterlog/log/event_spec.rb".freeze, "spec/betterlog/log/severity_spec.rb".freeze, "spec/betterlog/log_event_formatter_spec.rb".freeze, "spec/betterlog/log_spec.rb".freeze, "spec/betterlog/version_spec.rb".freeze, "spec/spec_helper.rb".freeze]
|
17
17
|
s.homepage = "http://github.com/betterplace/betterlog".freeze
|
18
18
|
s.rdoc_options = ["--title".freeze, "Betterlog".freeze, "--main".freeze, "README.md".freeze]
|
19
|
-
s.rubygems_version = "3.
|
19
|
+
s.rubygems_version = "3.5.5".freeze
|
20
20
|
s.summary = "Structured logging support for bp".freeze
|
21
21
|
s.test_files = ["spec/betterlog/global_metadata_spec.rb".freeze, "spec/betterlog/log/event_spec.rb".freeze, "spec/betterlog/log/severity_spec.rb".freeze, "spec/betterlog/log_event_formatter_spec.rb".freeze, "spec/betterlog/log_spec.rb".freeze, "spec/betterlog/version_spec.rb".freeze, "spec/spec_helper.rb".freeze]
|
22
22
|
|
23
|
-
|
24
|
-
s.specification_version = 4
|
25
|
-
end
|
23
|
+
s.specification_version = 4
|
26
24
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
s.add_runtime_dependency(%q<excon>.freeze, [">= 0"])
|
41
|
-
else
|
42
|
-
s.add_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0"])
|
43
|
-
s.add_dependency(%q<rake>.freeze, [">= 0"])
|
44
|
-
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
45
|
-
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
46
|
-
s.add_dependency(%q<debug>.freeze, [">= 0"])
|
47
|
-
s.add_dependency(%q<all_images>.freeze, [">= 0"])
|
48
|
-
s.add_dependency(%q<tins>.freeze, ["~> 1.3", ">= 1.22.0"])
|
49
|
-
s.add_dependency(%q<complex_config>.freeze, [">= 0"])
|
50
|
-
s.add_dependency(%q<file-tail>.freeze, ["~> 1.0"])
|
51
|
-
s.add_dependency(%q<json>.freeze, ["~> 2.0"])
|
52
|
-
s.add_dependency(%q<term-ansicolor>.freeze, ["~> 1.3"])
|
53
|
-
s.add_dependency(%q<redlock>.freeze, [">= 0"])
|
54
|
-
s.add_dependency(%q<excon>.freeze, [">= 0"])
|
55
|
-
end
|
25
|
+
s.add_development_dependency(%q<gem_hadar>.freeze, ["~> 1.12.0".freeze])
|
26
|
+
s.add_development_dependency(%q<rake>.freeze, [">= 0".freeze])
|
27
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0".freeze])
|
28
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0".freeze])
|
29
|
+
s.add_development_dependency(%q<debug>.freeze, [">= 0".freeze])
|
30
|
+
s.add_development_dependency(%q<all_images>.freeze, [">= 0".freeze])
|
31
|
+
s.add_runtime_dependency(%q<tins>.freeze, ["~> 1.3".freeze, ">= 1.22.0".freeze])
|
32
|
+
s.add_runtime_dependency(%q<complex_config>.freeze, [">= 0".freeze])
|
33
|
+
s.add_runtime_dependency(%q<file-tail>.freeze, ["~> 1.0".freeze])
|
34
|
+
s.add_runtime_dependency(%q<json>.freeze, ["~> 2.0".freeze])
|
35
|
+
s.add_runtime_dependency(%q<term-ansicolor>.freeze, ["~> 1.3".freeze])
|
36
|
+
s.add_runtime_dependency(%q<redlock>.freeze, [">= 0".freeze])
|
37
|
+
s.add_runtime_dependency(%q<excon>.freeze, [">= 0".freeze])
|
56
38
|
end
|
data/lib/betterlog/version.rb
CHANGED
@@ -39,10 +39,8 @@ describe Betterlog::GlobalMetadata do
|
|
39
39
|
Betterlog::GlobalMetadata.with_meta(
|
40
40
|
'foo' => 'bar',
|
41
41
|
:bar => 'foo',
|
42
|
-
) do
|
42
|
+
) do
|
43
43
|
expect(Betterlog::GlobalMetadata.current).to eq(foo: 'bar', bar: 'foo')
|
44
|
-
expect(my_context).to eq(foo: 'bar', bar: 'foo')
|
45
|
-
expect(my_context).to be_frozen
|
46
44
|
end
|
47
45
|
expect(Betterlog::GlobalMetadata.current).to be_empty
|
48
46
|
end
|
@@ -52,16 +50,11 @@ describe Betterlog::GlobalMetadata do
|
|
52
50
|
Betterlog::GlobalMetadata.with_meta(
|
53
51
|
'foo' => 'bar',
|
54
52
|
:bar => 'foo',
|
55
|
-
) do
|
53
|
+
) do
|
56
54
|
expect(Betterlog::GlobalMetadata.current).to eq(foo: 'bar', bar: 'foo')
|
57
|
-
expect(my_context).to eq(foo: 'bar', bar: 'foo')
|
58
|
-
expect(my_context).to be_frozen
|
59
55
|
Betterlog::GlobalMetadata.with_meta('quux' => 'quark') do |my_context|
|
60
|
-
expect(my_context).to be_frozen
|
61
56
|
expect(Betterlog::GlobalMetadata.current).to eq(foo: 'bar', bar: 'foo', quux: 'quark')
|
62
|
-
expect(my_context).to eq(foo: 'bar', bar: 'foo', quux: 'quark')
|
63
57
|
end
|
64
|
-
expect(my_context).to eq(foo: 'bar', bar: 'foo')
|
65
58
|
end
|
66
59
|
expect(Betterlog::GlobalMetadata.current).to be_empty
|
67
60
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betterlog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- betterplace Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gem_hadar
|
@@ -268,7 +268,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
268
268
|
- !ruby/object:Gem::Version
|
269
269
|
version: '0'
|
270
270
|
requirements: []
|
271
|
-
rubygems_version: 3.
|
271
|
+
rubygems_version: 3.5.5
|
272
272
|
signing_key:
|
273
273
|
specification_version: 4
|
274
274
|
summary: Structured logging support for bp
|