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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c916bad939c2f6eecff7165beea0db8b2509032bd0153086c2e480e26312f2f
4
- data.tar.gz: cc5887edfe9ffe3ebc5d13bac5da9d0a19a2e96fc56e653e1d8b6d7f42c7fd24
3
+ metadata.gz: 2e0638a0696587c89da76d2c5e8074866fa2845f05cfb26a25ce748e0a9984fd
4
+ data.tar.gz: 05a55cf8a03db700cb757571d9d10e12348d3e3e4804725ad5989cd670950852
5
5
  SHA512:
6
- metadata.gz: efe0ee73a9cdf8767d2979d23250cf50c79a1a17d38f90bca4590efefc6b125067e1747661bdb7b3b810f6392c6c8c5d17e82997d1ede24d0bcfc86178809f3b
7
- data.tar.gz: 760a8a610f6ea4dcc3d67b544b0ccee1f951eb66c02f1033ece069f68e35631c567a83392b3f1fef468fb0a3f6466a7cc983d954bbedcc3b1d765ac6a07f30ce
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 = ['Jeff Utter']
11
- spec.email = ['jeff.utter@firespring.com']
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Hedgelog
4
- VERSION = '0.2.1.alpha.3'
4
+ VERSION = '0.2.1.alpha.4'
5
5
  end
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 'yajl'
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("#{Yajl::Encoder.encode(data)}\n")
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 # && gem push "hedgelog-${desired_version}.gem"
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.3
4
+ version: 0.2.1.alpha.4
5
5
  platform: ruby
6
6
  authors:
7
- - Jeff Utter
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
- - jeff.utter@firespring.com
29
+ - opensource@firespring.com
44
30
  executables: []
45
31
  extensions: []
46
32
  extra_rdoc_files: []