logstop 0.2.2 → 0.2.3

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: da4a7ae0dfced4f2fd89ef52da3c7560b714161722f9e6642628d2bc5c6dc7bd
4
- data.tar.gz: 8d96132e4c979d29ffec7572e9947f3f2e48cd40305bbefe9b0559a371a7ed13
3
+ metadata.gz: bd3468821cf2db0f736994a67beb26daa32b9bb4ccc8051efac0bbd21b5ff5dc
4
+ data.tar.gz: f15cc9e3cf9ff371dc28dccc69201d2e4bfdad9f6e36d0d3d4375a7f505eda75
5
5
  SHA512:
6
- metadata.gz: 1eedaef8e9a44ef497585e0dfc0b7ce82b28f88066df8edb13d38b6f181966784bb582996f49f8b469bad457874083d00bfa84b7be07330aa9882c0405882af8
7
- data.tar.gz: 4c4125427122c48e8f742e37514a25d0c61f29e36c1bc542e4a56b8f37f59e16b011b9ec609b9c735e205c211c8cf2211ddf59fe958c8d11de667a03f8f839cc
6
+ metadata.gz: 91dc7ecf3ca0ec7f8b650cff86aafde56ef7102f3fea1b148343e7a1db3802685193f8f7e6cf2f9cb37070d95107f15c908db7b3191b5ca74edd6dfad125ba34
7
+ data.tar.gz: 0a4726cece72b09e6023e1605e0d3aaf5296795086bf4d511e0ceb25f380fa2f98b0b8d77cb4f5ff03ff900bb4b0ed2a08a1fbbbad9d4e94bf82809ec9e170c2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.2.3
2
+
3
+ - Fixed tagged logging
4
+
1
5
  ## 0.2.2
2
6
 
3
7
  - Added `guard` method
@@ -10,5 +10,15 @@ module Logstop
10
10
  def call(severity, timestamp, progname, msg)
11
11
  Logstop.scrub(@formatter.call(severity, timestamp, progname, msg), ip: @ip)
12
12
  end
13
+
14
+ # for tagged logging
15
+ def method_missing(method_name, *arguments, &block)
16
+ @formatter.send(method_name, *arguments, &block)
17
+ end
18
+
19
+ # for tagged logging
20
+ def respond_to?(method_name, include_private = false)
21
+ @formatter.send(:respond_to?, method_name, include_private) || super
22
+ end
13
23
  end
14
24
  end
@@ -1,3 +1,3 @@
1
1
  module Logstop
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/logstop.gemspec CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
+ spec.add_development_dependency "activesupport"
23
24
  spec.add_development_dependency "benchmark-ips"
24
25
  spec.add_development_dependency "bundler"
25
26
  spec.add_development_dependency "minitest"
metadata CHANGED
@@ -1,15 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-15 00:00:00.000000000 Z
11
+ date: 2018-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activesupport
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: benchmark-ips
15
29
  requirement: !ruby/object:Gem::Requirement