json_ruby_logger 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1899a6af2f8634c3951c9fb20cabc731b17a47dc4520b87dab6f4ecc760aa4d
4
- data.tar.gz: 8c8fba7b7e09373948a09576b65c7c794419cd1316a7d04af080105e94979e72
3
+ metadata.gz: 624bd26aa2b74a230c89726b66584990eea81cc86a4a4efbdd975e7f19122291
4
+ data.tar.gz: c8d0abfe50234f78cb853cb39f64f46a7dfe940e193282f955c7eabc896864d1
5
5
  SHA512:
6
- metadata.gz: c495fe7a1afc04b58e68e8669a5c269a647f22e4a7316df239bb6428df95e808fd7226dabc6e5bf93007d831cbecc27825de4cb47796b57edaccd16f06888378
7
- data.tar.gz: 4a53553727ad33be74b84e424f5840f773af4b7011a488769fedf88321a3fd79def883fd2fcc1153a2cd4036472e258a22cb0cfceedf5e56a60e9d27900f4921
6
+ metadata.gz: 73f92f56c04b8f180a1fb6d623bd1cfb46b54a9abf551a8c85dc7f93f57cf7774a38d39ea7764c97ced37dd011b76e18e5873773087eb4548610364a2f4f0c7b
7
+ data.tar.gz: f21f4a119edc7695c148f80f7c3b808dde1d0a77f32748b9d284834e2f770250fe982cbfa41f6753f81833eb34afc72c87526ad9e968973a10ef331c389878de
data/.editorconfig CHANGED
@@ -8,4 +8,4 @@ charset = utf-8
8
8
  trim_trailing_whitespace = true
9
9
  insert_final_newline = true
10
10
 
11
- max_line_length = 110
11
+ max_line_length = 300
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json_ruby_logger (0.1.5)
4
+ json_ruby_logger (0.1.6)
5
5
  json (~> 2.6)
6
6
  logger (~> 1.5)
7
7
  time (~> 0.2)
data/README.md CHANGED
@@ -21,7 +21,7 @@ A simpe ruby [logger](https://ruby-doc.org/3.2.2/stdlibs/logger/Logger.html) tha
21
21
 
22
22
  - [Installation](#installation)
23
23
  - [Usage](#usage)
24
- - [Examples](##examples)
24
+ - [Examples](#examples)
25
25
  - [Example 1 - Single file](#example-1)
26
26
  - [Example 2 - Multiple files file](#example-2)
27
27
 
@@ -49,9 +49,9 @@ Example 1 - Single function in a single file called `test_logging.rb`:
49
49
 
50
50
 
51
51
  ```ruby
52
- include Logging
52
+ include JsonRubyLogger
53
53
  def test
54
- logger.info { "Hello World call from #{self.class.name}" }
54
+ logger.info("Hello World call from #{self.class.name}")
55
55
  end
56
56
 
57
57
  test
@@ -77,12 +77,12 @@ module LogTest
77
77
  include JsonRubyLogger
78
78
 
79
79
  def call
80
- logger.info { "Hello World call from #{self.class.name}" }
80
+ logger.info("Hello World call from #{self.class.name}")
81
81
  call2
82
82
  end
83
83
 
84
84
  def call2
85
- logger.info { "Hello World call2 from #{self.class.name}" }
85
+ logger.info("Hello World call2 from #{self.class.name}")
86
86
  end
87
87
  end
88
88
  end
@@ -92,12 +92,12 @@ class TestLogging2
92
92
  include JsonRubyLogger
93
93
 
94
94
  def call
95
- logger.info { "Hello World call from #{self.class.name}" }
95
+ logger.info("Hello World call from #{self.class.name}")
96
96
  call2
97
97
  end
98
98
 
99
99
  def call2
100
- logger.info { "Hello World call2 from #{self.class.name}" }
100
+ logger.info("Hello World call2 from #{self.class.name}")
101
101
  end
102
102
  end
103
103
 
@@ -129,12 +129,12 @@ class AnotherClass
129
129
  include JsonRubyLogger
130
130
 
131
131
  def another_class_call
132
- logger.info { "AnotherClass Hello World call from #{self.class.name}" }
132
+ logger.info("AnotherClass Hello World call from #{self.class.name}")
133
133
  another_class
134
134
  end
135
135
 
136
136
  def another_class
137
- logger.info { "Hello World call2 from #{self.class.name}" }
137
+ logger.info("Hello World call2 from #{self.class.name}")
138
138
  end
139
139
  end
140
140
  ```
@@ -149,12 +149,12 @@ class TestLogging
149
149
  include JsonRubyLogger
150
150
 
151
151
  def call
152
- logger.info { "Hello World call from #{self.class.name}" }
152
+ logger.info("Hello World call from #{self.class.name}")
153
153
  another_class
154
154
  end
155
155
 
156
156
  def another_class
157
- logger.info { "Hello World call2 from #{self.class.name}" }
157
+ logger.info("Hello World call2 from #{self.class.name}")
158
158
  AnotherClass.new.another_class_call
159
159
  end
160
160
  end
@@ -207,3 +207,10 @@ bundle gem json_ruby_logger \
207
207
  ```bash
208
208
  gem yank json_ruby_logger -v 0.1.0
209
209
  ```
210
+
211
+ ## Bump Gem Version
212
+
213
+ ```bash
214
+ gem install gem-release
215
+ gem bump patch --skip-ci --push
216
+ ```
@@ -6,7 +6,6 @@ Gem::Specification.new do |spec|
6
6
  spec.name = "json_ruby_logger"
7
7
  spec.version = JsonRubyLogger::VERSION
8
8
  spec.authors = ["ml"]
9
- spec.email = ["redacted@gmail.com"]
10
9
 
11
10
  spec.summary = "Simple JSON logging for Ruby, including classnames, filenames, linenos, timestamps, and log levels."
12
11
  spec.description = "Simple JSON logging for Ruby"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsonRubyLogger
4
- VERSION = "0.1.6"
4
+ VERSION = "0.1.8"
5
5
  end
@@ -29,7 +29,7 @@ module JsonRubyLogger
29
29
  lineno: caller_info.lineno,
30
30
  severity: severity,
31
31
  pid: Process.pid,
32
- message: msg
32
+ message: msg.to_s
33
33
  ) + "\n"
34
34
  end
35
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_ruby_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ml
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-07 00:00:00.000000000 Z
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logger
@@ -54,7 +54,6 @@ dependencies:
54
54
  version: '0.2'
55
55
  description: Simple JSON logging for Ruby
56
56
  email:
57
- - redacted@gmail.com
58
57
  executables: []
59
58
  extensions: []
60
59
  extra_rdoc_files: []