hedgelog 0.2.1.alpha.3 → 0.2.1.alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hedgelog.gemspec +2 -3
- data/lib/hedgelog/version.rb +1 -1
- data/lib/hedgelog.rb +2 -2
- data/script/publish.sh +1 -1
- metadata +3 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2e0638a0696587c89da76d2c5e8074866fa2845f05cfb26a25ce748e0a9984fd
|
4
|
+
data.tar.gz: 05a55cf8a03db700cb757571d9d10e12348d3e3e4804725ad5989cd670950852
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c768f85def3a8099855d137964e70474d1d33767abd3f4f3a597f73a874cf3ae69b9b4aa7c171733a85a31c342454a5d5d058f9a1eb72d7a2dcf55af9e41f2d7
|
7
|
+
data.tar.gz: 6f5e0a8ccd3469620fdf0123f7482c98b6bba0b8e23aede426d46e6ccb7c612d09465b74f10c14fa670f0ca890a95ff5db01bfdec808ace95a6f4e51bb7cdb01
|
data/hedgelog.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.version = Hedgelog::VERSION
|
8
8
|
spec.required_ruby_version = '>= 2.7.0'
|
9
9
|
spec.licenses = ['MIT']
|
10
|
-
spec.authors = ['
|
11
|
-
spec.email = ['
|
10
|
+
spec.authors = ['Firespring']
|
11
|
+
spec.email = ['opensource@firespring.com']
|
12
12
|
|
13
13
|
spec.homepage = 'https://github.com/firespring/hedgelog'
|
14
14
|
spec.summary = 'A structured JSON logger for Ruby'
|
@@ -19,6 +19,5 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
|
-
spec.add_dependency 'yajl-ruby', '~> 1.4'
|
23
22
|
spec.add_development_dependency 'bundler'
|
24
23
|
end
|
data/lib/hedgelog/version.rb
CHANGED
data/lib/hedgelog.rb
CHANGED
@@ -5,7 +5,7 @@ require 'hedgelog/context'
|
|
5
5
|
require 'hedgelog/scrubber'
|
6
6
|
require 'hedgelog/normalizer'
|
7
7
|
require 'logger'
|
8
|
-
require '
|
8
|
+
require 'json'
|
9
9
|
|
10
10
|
class Hedgelog
|
11
11
|
LEVELS = %w[DEBUG INFO WARN ERROR FATAL UNKNOWN].each_with_object({}).with_index do |(v, h), i|
|
@@ -151,7 +151,7 @@ class Hedgelog
|
|
151
151
|
data[:caller] = debugharder(caller(4, 1).first) if debug?
|
152
152
|
data = extract_top_level_keys(data)
|
153
153
|
|
154
|
-
@logdev.write("#{
|
154
|
+
@logdev.write("#{JSON.generate(data)}\n")
|
155
155
|
true
|
156
156
|
end
|
157
157
|
|
data/script/publish.sh
CHANGED
@@ -112,7 +112,7 @@ publish_hedgelog()
|
|
112
112
|
bundle exec bundle-audit update && bundle exec bundle-audit check
|
113
113
|
bundle exec rspec
|
114
114
|
bundle exec rubocop lib spec
|
115
|
-
gem build hedgelog.gemspec
|
115
|
+
gem build hedgelog.gemspec && gem push "hedgelog-${desired_version}.gem"
|
116
116
|
fi
|
117
117
|
echo
|
118
118
|
}
|
metadata
CHANGED
@@ -1,29 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hedgelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.1.alpha.
|
4
|
+
version: 0.2.1.alpha.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Firespring
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
11
|
date: 2022-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: yajl-ruby
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.4'
|
20
|
-
type: :runtime
|
21
|
-
prerelease: false
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.4'
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: bundler
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -40,7 +26,7 @@ dependencies:
|
|
40
26
|
version: '0'
|
41
27
|
description: An opinionated/structured JSON logger for Ruby
|
42
28
|
email:
|
43
|
-
-
|
29
|
+
- opensource@firespring.com
|
44
30
|
executables: []
|
45
31
|
extensions: []
|
46
32
|
extra_rdoc_files: []
|