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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b7fa845a8bab9f3a70e7362c0910ff5b24c6bc95d5267e82e8d4f87f90fa2e3
4
- data.tar.gz: 0c26ee702af858bc046077ebf4209f473c50e66ee14e03f45da161f1990b510a
3
+ metadata.gz: aff578739daa97caef0a7014bf062fe113a495cc124da496f6a08d8c31790e49
4
+ data.tar.gz: 560c9efb88be9083d5d91b46a174c8b5c26c5c0b30289776c80f937b9ee81b1b
5
5
  SHA512:
6
- metadata.gz: 6ac27cf32075e6046405f21bec1d4bae709c9a3e91b40b461a53b8a5794ff25165efe4295183a9a0f58a1f8686a15d08b0424e79f87355887967338c85e00526
7
- data.tar.gz: 927d9792258911a98117c6915288b13bb05a6596257a38504adf24d1439aa972e71868c8895ab1cd0d5afbb8e4910e463948bb0bd11cbf0e29544fc66b04685d
6
+ metadata.gz: aa0ff0ff2637a3bd8eb9141cd6200e763478d071859958a07ca6585a2405fcce83160a9b03c49a88afa7f11428d3ed50bc4b3cde944bf96060c820b253406d20
7
+ data.tar.gz: 45f2d7f82f0e7d366857b8da7ab7a6397e582190969155013facd87a5ae66c7c441f006486fee4cfe9b388538d614eaa60c533f478ec4a7165f9038031e31dcb
data/CHANGELOG.md CHANGED
@@ -24,3 +24,8 @@
24
24
 
25
25
  - Don't show object IDs for args arrays. It's confusing.
26
26
  - BREAKING: Proxies most `Object` methods by default now
27
+
28
+ ## [1.1.1]
29
+
30
+ - Allow proxying of `nil`
31
+ - Add require statements to copy+paste version
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- markdown_logging_proxy (1.1.0)
4
+ markdown_logging_proxy (1.1.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
- Look at `dist/` for compiled versions of the gem which can safely (relatively) be copied into irb/pry sessions.
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,
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "markdown_logging_proxy"
3
- spec.version = "1.1.0"
3
+ spec.version = "1.1.1"
4
4
  spec.authors = ["Carl Zulauf"]
5
5
  spec.email = ["carl@linkleaf.com"]
6
6
 
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.0
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.7
57
+ rubygems_version: 3.3.20
58
58
  signing_key:
59
59
  specification_version: 4
60
60
  summary: Proxy object for debugging