lorekeeper 1.1.0 → 1.1.1

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
  SHA1:
3
- metadata.gz: aadbee0bac5c03a25508d71162e6fd6e1684f168
4
- data.tar.gz: e11ee8efb4e4e0aff367e7d1a29ccb462b1ccd30
3
+ metadata.gz: b074c9039eb5fbdba6a406afbf3ebf823b94033e
4
+ data.tar.gz: 8284b1c7aa0550b516b7175118904dd689db3b99
5
5
  SHA512:
6
- metadata.gz: bf16fbacc7fae49dbcc81a2e61e0c1865276c62fd6a2345d06be0ba65b0083c0aca08282ac703405e71b26c78646f7db6dc549c2816ee3a20108205dcbb3dc21
7
- data.tar.gz: e94fdc0f7149b0cd29c738bc2a3dc627fd414341992af5771689bd6bee11c29d354a3926dedd2cbe2aa601cfa01959c03c846825143faffd9d508020a09a6145
6
+ metadata.gz: 4967f583dc58d077f368a272be3d29c006ef2ab3f85275f9b9e0efda4a1c4622fe18b19f80433015be54cdeac06f8c043dfa2ac604c217d880c062583222e36e
7
+ data.tar.gz: b6b0f9f97554fb7a094677192032b4e302c73978a1f863eaf96f393c27355f50f67c0d2bca5e57a2c67b46564c9ff158b62794b5784223d57d7d5eb47311566f
data/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # 1.1.1
2
+ Avoid syntax errors in rubies < 2.3
3
+
4
+ # 1.1.0
5
+ Added an 'add' method to the logger so it is compatible with the Logger
6
+ provided by Ruby's standard library
7
+
8
+ # 1.0.0
9
+ Initial release
@@ -31,9 +31,9 @@ module Lorekeeper
31
31
  define_method "#{method_name}_with_data", ->(message_param = nil, data = {}, &block) do
32
32
  return true if METHOD_SEVERITY_MAP[method_name] < @level
33
33
  extra_fields = {'data' => (data || {}) }
34
- with_extra_fields(extra_fields) do
34
+ with_extra_fields(extra_fields) { # Using do/end here only valid on Ruby>= 2.3
35
35
  add(METHOD_SEVERITY_MAP[method_name], message_param, nil, &block)
36
- end
36
+ }
37
37
  end
38
38
  end
39
39
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
  # The comment above will make all strings in a current file frozen
3
3
  module Lorekeeper
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lorekeeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordi Polo
@@ -132,6 +132,7 @@ files:
132
132
  - ".gitignore"
133
133
  - ".rspec"
134
134
  - ".travis.yml"
135
+ - CHANGELOG.md
135
136
  - Gemfile
136
137
  - LICENSE.txt
137
138
  - README.md
@@ -164,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
164
165
  version: '0'
165
166
  requirements: []
166
167
  rubyforge_project:
167
- rubygems_version: 2.5.1
168
+ rubygems_version: 2.4.8
168
169
  signing_key:
169
170
  specification_version: 4
170
171
  summary: Very fast JSON logger