debug_logging 1.0.5 → 1.0.6
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 +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +6 -5
- data/README.md +1 -1
- data/debug_logging.gemspec +4 -1
- data/lib/debug_logging/version.rb +1 -1
- data/lib/debug_logging.rb +2 -2
- data/lib/simple_debug_logging.rb +1 -0
- metadata +7 -5
- data/.byebug_history +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7d2b010d394a66522b5a94e1a06010ee222e97b
|
4
|
+
data.tar.gz: 6a4b6aee82f818f482c71d5e3149dff8aefed907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4136fbceadf5261fb3b67105029c5bca184c5f31320cc5ddd365b9afdab9f3c0663078a9bd70206aece0c98ee440b3566e297b3b580d1b9b97994aa1519535df
|
7
|
+
data.tar.gz: 7d952c4facfd037c474d469328ac6bcda239ddb8afcfcf6706d35c81ba13cc44ac53811b4e21cc8d4a306db3f3be3cbde1d3cf704f2e3d4e60081520e6ef15ea
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -127,7 +127,7 @@ class Car
|
|
127
127
|
|
128
128
|
# For instance methods:
|
129
129
|
# Option 2: add logging to all instance methods defined above (but *not* defined below)
|
130
|
-
include DebugLogging::InstanceLogger.new(i_methods:
|
130
|
+
include DebugLogging::InstanceLogger.new(i_methods: self.instance_methods(false))
|
131
131
|
|
132
132
|
# override options for any instance method(s)
|
133
133
|
include DebugLogging::InstanceLogger.new(i_methods: [:stop], config: { multiple_last_hashes: true })
|
data/debug_logging.gemspec
CHANGED
@@ -10,7 +10,10 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["peter.boling@gmail.com"]
|
11
11
|
|
12
12
|
spec.summary = %q{Drop-in debug logging useful when a call stack gets unruly}
|
13
|
-
spec.description = %q{
|
13
|
+
spec.description = %q{
|
14
|
+
Unobtrusive debug logging for Ruby without the litter
|
15
|
+
Automatically log selected methods and their arguments as they are called at runtime!
|
16
|
+
}
|
14
17
|
spec.homepage = "https://github.com/pboling/debug_logging"
|
15
18
|
|
16
19
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
data/lib/debug_logging.rb
CHANGED
@@ -44,7 +44,7 @@ require "debug_logging/class_logger"
|
|
44
44
|
#
|
45
45
|
# # For instance methods:
|
46
46
|
# # Option 2: add logging to all instance methods defined above (but *not* defined below)
|
47
|
-
# include DebugLogging::InstanceLogger.new(i_methods:
|
47
|
+
# include DebugLogging::InstanceLogger.new(i_methods: self.instance_methods(false))
|
48
48
|
#
|
49
49
|
# def will_not_be_logged; false; end
|
50
50
|
#
|
@@ -61,7 +61,7 @@ module DebugLogging
|
|
61
61
|
#### API ####
|
62
62
|
def debug_log(message, config_proxy = nil)
|
63
63
|
config_proxy ||= self
|
64
|
-
config_proxy.debug_logger.send(config_proxy.debug_log_level, message)
|
64
|
+
config_proxy.debug_logger.send(config_proxy.debug_log_level, message) if config_proxy.debug_logger
|
65
65
|
end
|
66
66
|
|
67
67
|
# There are times when the class will need access to the configuration object,
|
data/lib/simple_debug_logging.rb
CHANGED
@@ -13,6 +13,7 @@ class SimpleDebugLogging < Module
|
|
13
13
|
def included(base)
|
14
14
|
instance_method_logger = InstanceMethodLoggerModulizer.to_mod(@instance_methods_to_log)
|
15
15
|
base.send(:prepend, instance_method_logger)
|
16
|
+
base.send(:extend, ClassMethodLogger)
|
16
17
|
end
|
17
18
|
module ClassMethodLogger
|
18
19
|
def logged(*methods_to_log)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debug_logging
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Boling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colorize
|
@@ -94,14 +94,16 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '3.0'
|
97
|
-
description:
|
97
|
+
description: |2
|
98
|
+
|
99
|
+
Unobtrusive debug logging for Ruby without the litter
|
100
|
+
Automatically log selected methods and their arguments as they are called at runtime!
|
98
101
|
email:
|
99
102
|
- peter.boling@gmail.com
|
100
103
|
executables: []
|
101
104
|
extensions: []
|
102
105
|
extra_rdoc_files: []
|
103
106
|
files:
|
104
|
-
- ".byebug_history"
|
105
107
|
- ".gitignore"
|
106
108
|
- ".rspec"
|
107
109
|
- ".travis.yml"
|
@@ -138,7 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
140
|
version: '0'
|
139
141
|
requirements: []
|
140
142
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.6.
|
143
|
+
rubygems_version: 2.6.12
|
142
144
|
signing_key:
|
143
145
|
specification_version: 4
|
144
146
|
summary: Drop-in debug logging useful when a call stack gets unruly
|