hedgelog 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OTZjNDlkZDk3YTc3YzQwNGIzODBiOTI1ZmVmMDAyMTkzZjBjNzYxMw==
5
- data.tar.gz: !binary |-
6
- YzQ2ZmZlZWU4Yjc4YWJkODQ3NmRlNmIwYTQ3YzdjMDg4MjhjYmU5Ng==
2
+ SHA1:
3
+ metadata.gz: 6c95825590759e26acec2dd6439b31201c4ea529
4
+ data.tar.gz: f007a3bf2d794f934700486792892a6435d90c62
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- YjNiMTc0MTUxZWIyNWYyZGNiZjU4NzM4NTgyYmVjOTdkYzNmMDkyNGFjZTA3
10
- OWI5MjY5ZmE4MmFkNjgwZjE3YmE0NTA2ZmZhNzFkMGU1ZDM1NzE5NThhYjAz
11
- YzMwMDAwYWRmNTI0YjQyNWQ5OTA5ODY5M2RlMDVmYzMyNDVhMTg=
12
- data.tar.gz: !binary |-
13
- NmRjZjcxODc3MWNmNjUyYmRiZTAyOWY5NGU5NDBiMTQzNjAzYjU1NzA2MTA1
14
- NzU0Mzc0MmU5ZTZmMzYxODFjMDIyNWY0MWUzZGI4ZDFiZDBlNzA5NzQ4Njhj
15
- MjRkZjQ5Yzk5NTcwOTVhNjgyYWU0YTY5ZWViYjA4YTlhZWQyNWU=
6
+ metadata.gz: 97d0762b2f93753ff04ead868df679673867f25bdb4eb6e9c50bf28d4c0bc9c09de34458f9befbacf334ab05b0d0ac761c2c3b56c854940aa46ea44b8a9c8a6c
7
+ data.tar.gz: 47af20edfb870b7d11bdf151e3fd84dcc317a163a3569cb991d651a1a46ef00a582ce9dcfd5e074c702a667782120281c0f2e15e861076d475c1331c43589d08
data/.rubocop.yml CHANGED
@@ -55,3 +55,7 @@ BlockNesting:
55
55
  Style/StringLiterals:
56
56
  Enabled: true
57
57
  EnforcedStyle: single_quotes
58
+
59
+ Style/BlockLength:
60
+ Exclude:
61
+ - 'spec/**/*.rb'
data/lib/hedgelog.rb CHANGED
@@ -118,6 +118,10 @@ class Hedgelog
118
118
  ::Logger::Formatter.new
119
119
  end
120
120
 
121
+ def formatter=(_)
122
+ formatter
123
+ end
124
+
121
125
  private
122
126
 
123
127
  def level_to_int(level)
@@ -1,10 +1,12 @@
1
1
  class Hedgelog
2
2
  class Normalizer
3
+ # rubocop:disable Security/MarshalLoad
3
4
  def normalize(data)
4
5
  # Need to Marshal.dump/Marshal.load to deep copy the input so that scrubbing doesn't change global state
5
6
  d = Marshal.load(Marshal.dump(data))
6
7
  normalize_hash(d)
7
8
  end
9
+ # rubocop:enable Security/MarshalLoad
8
10
 
9
11
  def normalize_struct(struct)
10
12
  normalize_hash(Hash[struct.each_pair.to_a])
@@ -8,6 +8,7 @@ class Hedgelog
8
8
  ]
9
9
  end
10
10
 
11
+ # rubocop:disable Security/MarshalLoad
11
12
  def scrub(data)
12
13
  # Need to Marshal.dump/Marshal.load to deep copy the input so that scrubbing doesn't change global state
13
14
  d = Marshal.load(Marshal.dump(data))
@@ -16,5 +17,6 @@ class Hedgelog
16
17
  end
17
18
  d
18
19
  end
20
+ # rubocop:enable Security/MarshalLoad
19
21
  end
20
22
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  class Hedgelog
3
- VERSION = '0.1.8'.freeze
3
+ VERSION = '0.1.9'.freeze
4
4
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hedgelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Utter
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2017-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yajl-ruby
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.7'
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
40
  version: '1.7'
41
41
  description: An opinionated/structured JSON logger for Ruby
@@ -45,12 +45,12 @@ executables: []
45
45
  extensions: []
46
46
  extra_rdoc_files: []
47
47
  files:
48
- - .gitignore
49
- - .hound.yml
50
- - .rspec
51
- - .rubocop.yml
52
- - .simplecov
53
- - .travis.yml
48
+ - ".gitignore"
49
+ - ".hound.yml"
50
+ - ".rspec"
51
+ - ".rubocop.yml"
52
+ - ".simplecov"
53
+ - ".travis.yml"
54
54
  - CONTRIBUTING.md
55
55
  - Gemfile
56
56
  - Guardfile
@@ -78,17 +78,17 @@ require_paths:
78
78
  - lib
79
79
  required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ! '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - ! '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.4.5
91
+ rubygems_version: 2.4.8
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: An opinionated/strucutred JSON logger for Ruby