simple_structured_logger 1.0.1 → 1.0.2

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: 959e1a8479e4536b7c1a97cca00e409b4d979e611a5da6a214311cb33a877070
4
- data.tar.gz: 555fd1aa0f22f2470b65e724bdaf861d1f28ece8fd5d9decf8579bd7bcd4d7b1
3
+ metadata.gz: 9df33e4323ac59c529e37567af1ee202132c011614d2787f669fb1fcb8eaa8d8
4
+ data.tar.gz: 8097fc69ca2750857bc556b5c7bd1df15ad78b98bf015678f73813c08e891fc1
5
5
  SHA512:
6
- metadata.gz: 87bc3367c2993374dbb3c2220a6d9378cfecaf0480901e26f305850b75c7584ea7a90cbe8c1c9bc831802e07456bf50a250a03a0cb2634faa926e6f9523e770f
7
- data.tar.gz: '0489971ce5a5d82e1a9b3327510a322796ba4b02014300f286502df17923bfe35de572d272119647a32edcd97798409ef68be0ea8fe62d1e93c033758a0633f5'
6
+ metadata.gz: 4e0840be3ac36f2ae8cf14230c1152334d34b00935f22bee80a19d13af914116fdb670e59532f8e6fe523bc641aab3348d7c488b1abf98fe7c7ff6fcdcd591e7
7
+ data.tar.gz: 7bef35bb408318855f04dde6e021f41aa54460f30b302fdce6cdaa705a61e0f374ab59e1f58fbe3bb22c97f3a17406f0fb51a9ae2e5fc97aceaf06b2b5a7bdd9
data/README.md CHANGED
@@ -46,7 +46,7 @@ SimpleStructuredLogger.configure do
46
46
  end
47
47
  end
48
48
 
49
- class ExampleJob
49
+ class **ExampleJob**
50
50
  def perform(user_id)
51
51
  user = get_user(user_id, job_argument)
52
52
  log.set_context(user: user, job: self.class, job_argument: job_argument)
@@ -85,7 +85,9 @@ end
85
85
  SimpleStructuredLogger.logger.level(Logger::INFO)
86
86
  ```
87
87
 
88
- Want to change the log level quickly? Without modifying source?
88
+ Want to change the log level quickly? Without modifying source? Use the `LOG_LEVEL` environment variable.
89
+
90
+ ```ruby
89
91
 
90
92
  ```shell
91
93
  LOG_LEVEL=DEBUG ruby your_script.rb
@@ -107,7 +107,7 @@ module SimpleStructuredLogger
107
107
  additional_tags = SimpleStructuredLogger::Configuration.expand_log.call(additional_tags, self.default_tags)
108
108
  end
109
109
 
110
- @default_tags.merge(additional_tags).map {|k, v| "#{k}=#{v}" }.join(' ')
110
+ additional_tags.merge(@default_tags).map {|k, v| "#{k}=#{v}" }.join(' ')
111
111
  end
112
112
 
113
113
  end
@@ -4,19 +4,21 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "simple_structured_logger"
7
- spec.version = '1.0.1'
7
+ spec.version = '1.0.2'
8
8
  spec.authors = ["Michael Bianco"]
9
9
  spec.email = ["mike@mikebian.co"]
10
10
  spec.licenses = ['MIT']
11
11
 
12
- spec.summary = "Dead-simple structured logging in ruby with a simple codebase"
12
+ spec.summary = "Simple structured logging with a simple codebase"
13
13
  spec.homepage = "https://github.com/iloveitaly/simple_structured_logger"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
16
16
  spec.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  spec.require_paths = ["lib"]
18
18
 
19
+ spec.metadata['rubygems_mfa_required'] = 'true'
20
+
19
21
  spec.add_development_dependency "bundler", "~> 2.3.10"
20
22
  spec.add_development_dependency "rake", "~> 13.0.6"
21
- spec.add_development_dependency "minitest", "~> 5.15"
23
+ spec.add_development_dependency "minitest", "~> 5.16"
22
24
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_structured_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Bianco
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-27 00:00:00.000000000 Z
11
+ date: 2022-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.15'
47
+ version: '5.16'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '5.15'
54
+ version: '5.16'
55
55
  description:
56
56
  email:
57
57
  - mike@mikebian.co
@@ -77,7 +77,8 @@ files:
77
77
  homepage: https://github.com/iloveitaly/simple_structured_logger
78
78
  licenses:
79
79
  - MIT
80
- metadata: {}
80
+ metadata:
81
+ rubygems_mfa_required: 'true'
81
82
  post_install_message:
82
83
  rdoc_options: []
83
84
  require_paths:
@@ -93,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
94
  - !ruby/object:Gem::Version
94
95
  version: '0'
95
96
  requirements: []
96
- rubygems_version: 3.3.7
97
+ rubygems_version: 3.3.11
97
98
  signing_key:
98
99
  specification_version: 4
99
- summary: Dead-simple structured logging in ruby with a simple codebase
100
+ summary: Simple structured logging with a simple codebase
100
101
  test_files: []