markdown_logging_proxy 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 +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/dist/markdown_logging_proxy.rb +5 -8
- data/lib/markdown_logging_proxy/proxy.rb +0 -8
- data/markdown_logging_proxy.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aff578739daa97caef0a7014bf062fe113a495cc124da496f6a08d8c31790e49
|
4
|
+
data.tar.gz: 560c9efb88be9083d5d91b46a174c8b5c26c5c0b30289776c80f937b9ee81b1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa0ff0ff2637a3bd8eb9141cd6200e763478d071859958a07ca6585a2405fcce83160a9b03c49a88afa7f11428d3ed50bc4b3cde944bf96060c820b253406d20
|
7
|
+
data.tar.gz: 45f2d7f82f0e7d366857b8da7ab7a6397e582190969155013facd87a5ae66c7c441f006486fee4cfe9b388538d614eaa60c533f478ec4a7165f9038031e31dcb
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -18,7 +18,7 @@ If bundler is not being used to manage dependencies, install the gem by executin
|
|
18
18
|
|
19
19
|
### Copy+Paste
|
20
20
|
|
21
|
-
|
21
|
+
You can copy the contents of [`dist/markdown_logging_proxy.rb`](dist/markdown_logging_proxy.rb) into a live irb/pry session.
|
22
22
|
|
23
23
|
## Usage
|
24
24
|
|
@@ -1,3 +1,7 @@
|
|
1
|
+
require 'logger'
|
2
|
+
require 'securerandom'
|
3
|
+
require 'pp'
|
4
|
+
require 'time'
|
1
5
|
module MarkdownLoggingProxy
|
2
6
|
class MarkdownLogger
|
3
7
|
def self.inspect_object(object, show_id = true)
|
@@ -81,13 +85,6 @@ module MarkdownLoggingProxy
|
|
81
85
|
end
|
82
86
|
end
|
83
87
|
module MarkdownLoggingProxy
|
84
|
-
# frozen_string_literal: true
|
85
|
-
|
86
|
-
require 'logger'
|
87
|
-
require 'securerandom'
|
88
|
-
require 'pp'
|
89
|
-
require 'time'
|
90
|
-
|
91
88
|
class Proxy
|
92
89
|
# Object methods that should be proxied but won't hit method_missing
|
93
90
|
DEFAULT_OVERWRITES = %i[
|
@@ -107,7 +104,6 @@ module MarkdownLoggingProxy
|
|
107
104
|
overwrite: DEFAULT_OVERWRITES
|
108
105
|
)
|
109
106
|
@target = to_proxy || target
|
110
|
-
raise ArgumentError, "Missing required proxy target" unless @target
|
111
107
|
@logger = MarkdownLogger.build(location, backtrace: backtrace)
|
112
108
|
@tracer = Tracer.new(
|
113
109
|
target: @target,
|
@@ -248,3 +244,4 @@ module MarkdownLoggingProxy
|
|
248
244
|
end
|
249
245
|
end
|
250
246
|
end
|
247
|
+
|
@@ -1,11 +1,4 @@
|
|
1
1
|
module MarkdownLoggingProxy
|
2
|
-
# frozen_string_literal: true
|
3
|
-
|
4
|
-
require 'logger'
|
5
|
-
require 'securerandom'
|
6
|
-
require 'pp'
|
7
|
-
require 'time'
|
8
|
-
|
9
2
|
class Proxy
|
10
3
|
# Object methods that should be proxied but won't hit method_missing
|
11
4
|
DEFAULT_OVERWRITES = %i[
|
@@ -25,7 +18,6 @@ module MarkdownLoggingProxy
|
|
25
18
|
overwrite: DEFAULT_OVERWRITES
|
26
19
|
)
|
27
20
|
@target = to_proxy || target
|
28
|
-
raise ArgumentError, "Missing required proxy target" unless @target
|
29
21
|
@logger = MarkdownLogger.build(location, backtrace: backtrace)
|
30
22
|
@tracer = Tracer.new(
|
31
23
|
target: @target,
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: markdown_logging_proxy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carl Zulauf
|
@@ -54,7 +54,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '0'
|
56
56
|
requirements: []
|
57
|
-
rubygems_version: 3.3.
|
57
|
+
rubygems_version: 3.3.20
|
58
58
|
signing_key:
|
59
59
|
specification_version: 4
|
60
60
|
summary: Proxy object for debugging
|