markdown_logging_proxy 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 2ede32c7a00afa640bd44e6ec610034cc8a968e369a214d80bc3071c5b902516
4
+ data.tar.gz: c2032172bb4e05c3ebf6ac0ba30984c08623d4948b371f1afb77199ed4effae3
5
+ SHA512:
6
+ metadata.gz: a60b3241307b03bd0ef86b4cec3ca1fc149e3cb552dfea7eecffadf9e831f014f367cd714b4e3a3897d3f08b6258ece8e22111500989707e216f909726e45ab1
7
+ data.tar.gz: 2dadcbef2a63e99aa6187751ee8cbf2c1318add028e0d6443f6f2331895dbadc27c4a20cdf740468df83937183a94f88bd28e6a8d46dee6fe21b5a3572f18bbe
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/CHANGELOG.md ADDED
@@ -0,0 +1,5 @@
1
+ ## [Unreleased]
2
+
3
+ ## [0.1.0] - 2022-08-22
4
+
5
+ - Initial release
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at carl@linkleaf.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in markdown_logging_proxy.gemspec
6
+ gemspec
7
+
8
+ gem "rake", "~> 13.0"
9
+
10
+ gem "rspec", "~> 3.0"
11
+ gem "pry"
data/Gemfile.lock ADDED
@@ -0,0 +1,40 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ markdown_logging_proxy (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ coderay (1.1.3)
10
+ diff-lcs (1.5.0)
11
+ method_source (1.0.0)
12
+ pry (0.14.1)
13
+ coderay (~> 1.1)
14
+ method_source (~> 1.0)
15
+ rake (13.0.6)
16
+ rspec (3.11.0)
17
+ rspec-core (~> 3.11.0)
18
+ rspec-expectations (~> 3.11.0)
19
+ rspec-mocks (~> 3.11.0)
20
+ rspec-core (3.11.0)
21
+ rspec-support (~> 3.11.0)
22
+ rspec-expectations (3.11.0)
23
+ diff-lcs (>= 1.2.0, < 2.0)
24
+ rspec-support (~> 3.11.0)
25
+ rspec-mocks (3.11.1)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.11.0)
28
+ rspec-support (3.11.0)
29
+
30
+ PLATFORMS
31
+ x86_64-linux
32
+
33
+ DEPENDENCIES
34
+ markdown_logging_proxy!
35
+ pry
36
+ rake (~> 13.0)
37
+ rspec (~> 3.0)
38
+
39
+ BUNDLED WITH
40
+ 2.3.20
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Carl Zulauf
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,49 @@
1
+ # MarkdownLoggingProxy
2
+
3
+ Ruby object to wrap your ruby objects when you are trying to figure out how your ruby objects are being called.
4
+
5
+ ## Installation
6
+
7
+ Meant to be installable as a gem, and also compile-able to a single file for copy+pasting to irb/pry sessions.
8
+
9
+ ### Gem Install
10
+
11
+ Install the gem and add to the application's Gemfile by executing:
12
+
13
+ $ bundle add markdown_logging_proxy
14
+
15
+ If bundler is not being used to manage dependencies, install the gem by executing:
16
+
17
+ $ gem install markdown_logging_proxy
18
+
19
+ ### Copy+Paste
20
+
21
+ Look at `dist/` for compiled versions of the gem which can safely (relatively) be copied into irb/pry sessions.
22
+
23
+ ## Usage
24
+
25
+ Wrap an object in the proxy and tell it where to log and find out a lot about what happens to that object.
26
+
27
+ ```ruby
28
+ user = User.find(123)
29
+ proxy = MarkdownLoggingProxy.new(target: user, location: "/home/deploy/user_trace.md")
30
+ ComplicatedProcess.for_user(proxy)
31
+ ```
32
+
33
+ ## Development
34
+
35
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
36
+
37
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
38
+
39
+ ## Contributing
40
+
41
+ Bug reports and pull requests are welcome on GitHub at https://github.com/carlzulauf/markdown_logging_proxy. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/carlzulauf/markdown_logging_proxy/blob/main/CODE_OF_CONDUCT.md).
42
+
43
+ ## License
44
+
45
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
46
+
47
+ ## Code of Conduct
48
+
49
+ Everyone interacting in the MarkdownLoggingProxy project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/carlzulauf/markdown_logging_proxy/blob/main/CODE_OF_CONDUCT.md).
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,149 @@
1
+ module MarkdownLoggingProxy
2
+ # frozen_string_literal: true
3
+
4
+ require 'logger'
5
+ require 'securerandom'
6
+ require 'pp'
7
+ require 'time'
8
+
9
+ class Proxy
10
+
11
+ def initialize(
12
+ target:,
13
+ logger: nil,
14
+ location: STDOUT,
15
+ backtrace: /projects/, # regex/true/false backtrace control
16
+ ignore: [], # methods we shouldn't proxy
17
+ proxy_response: [], # methods we should return a proxy for
18
+ overwrite: [] # methods defined on Object we should overwrite
19
+ )
20
+ @ignore = (ignore + proxy_response).uniq
21
+ @proxy_response = proxy_response
22
+ @target = target
23
+ @logger =
24
+ if logger
25
+ Utils.format_logger(logger)
26
+ else
27
+ Utils.create_logger(location)
28
+ end
29
+ @backtrace = backtrace
30
+ overwrite.each do |meth|
31
+ define_method(meth) do |*args, &blk|
32
+ __trace_method(meth, args, &blk)
33
+ end
34
+ end
35
+ end
36
+
37
+ def method_missing(meth, *args, &blk)
38
+ __trace_method(meth, args, &blk)
39
+ end
40
+
41
+ private
42
+
43
+ def __trace_method(meth, args, &blk)
44
+ __log :info, meth, 2, <<~MSG
45
+ Calling `#{meth}`
46
+
47
+ Arguments:
48
+
49
+ #{__inspect_object(args)}
50
+
51
+ Block? #{block_given? ? 'Yes' : 'No'}
52
+ #{__display_backtrace}
53
+ MSG
54
+
55
+ __proxy_response(meth, @target.public_send(meth, *args, &__proxy_block(meth, blk))).tap do |response|
56
+ __log :info, meth, <<~MSG
57
+ `#{meth}` Response
58
+
59
+ #{__inspect_object(response)}
60
+ MSG
61
+ end
62
+ rescue StandardError => e
63
+ __log :error, meth, <<~MSG
64
+ Error in `#{meth}`
65
+
66
+ Type: #{e.class}
67
+
68
+ #{__inspect_object(e)}
69
+ MSG
70
+ raise e
71
+ end
72
+
73
+ def __display_backtrace(ignore = 3)
74
+ displayed_trace =
75
+ case @backtrace
76
+ when true then caller(ignore)
77
+ when Regexp then caller(ignore).grep(@backtrace)
78
+ end
79
+ displayed_trace.map { |l| "* #{l.chop}`" }.join("\n") if displayed_trace
80
+ end
81
+
82
+ def __log(level, meth, heading = 3, msg)
83
+ return if @ignore.member?(meth)
84
+ @heading_level = heading
85
+ @logger.send(level, msg)
86
+ end
87
+
88
+ def __proxy_response(meth, response)
89
+ return response unless @proxy_response.member?(meth)
90
+ __log :info, nil, <<~MSG
91
+ Using proxied response for `#{meth}`
92
+
93
+ Object to proxy:
94
+
95
+ #{__inspect_object(response)}
96
+ MSG
97
+ self.class.new(target: response, logger: @logger)
98
+ end
99
+
100
+ def __proxy_block(meth, block)
101
+ return if block.nil?
102
+ logger = @logger
103
+ proc do |*args|
104
+ logger.info <<~MSG
105
+ Yield to block in `#{meth}`
106
+
107
+ Arguments:
108
+
109
+ #{__inspect_object(args)}
110
+ MSG
111
+ block.call(*args).tap do |response|
112
+ logger.info <<~MSG
113
+ Response from block in `#{meth}`
114
+
115
+ #{__inspect_object(response)}
116
+ MSG
117
+ end
118
+ end
119
+ end
120
+
121
+ def __inspect_object(obj)
122
+ ['```ruby', obj.pretty_inspect.chomp, '```'].join("\n")
123
+ end
124
+ end
125
+
126
+ end
127
+ module MarkdownLoggingProxy
128
+ module Utils
129
+ def self.heading_level
130
+ @heading_level || 1
131
+ end
132
+
133
+ def self.heading_level=(level)
134
+ @heading_level = level
135
+ end
136
+
137
+ def self.create_logger(location)
138
+ logger = location.kind_of?(Logger) ? location : Logger.new(location)
139
+ format_logger logger
140
+ end
141
+
142
+ def self.format_logger(logger)
143
+ logger.formatter = proc do |severity, time, _, msg|
144
+ "#{'#' * heading_level} #{severity} in #{Process.pid} at #{time.iso8601} -- #{msg}\n\n"
145
+ end
146
+ logger
147
+ end
148
+ end
149
+ end
@@ -0,0 +1,69 @@
1
+ module MarkdownLoggingProxy
2
+ class MarkdownLogger
3
+ def self.inspect_object(object)
4
+ ['```ruby', object.pretty_inspect.chomp, '```'].join("\n")
5
+ end
6
+
7
+ def self.id_object(object)
8
+ # #<Object:0x00007f5a0919e140>
9
+ "##{object.class}:0x#{object.object_id.to_s(16)}>"
10
+ end
11
+
12
+ def self.build(location, **options)
13
+ return location if location.is_a?(MarkdownLogger)
14
+ new(location, **options)
15
+ end
16
+
17
+ attr_reader :std_logger, :backtrace, :heading_level
18
+
19
+ def initialize(location, backtrace: true)
20
+ @std_logger = create_logger(location)
21
+ @heading_level = 1
22
+ @backtrace = backtrace
23
+ end
24
+
25
+ def log(level, heading = 3, msg)
26
+ @heading_level = heading
27
+ std_logger.send(level, msg)
28
+ end
29
+
30
+ def inspect_backtrace(ignore = 4)
31
+ return unless backtrace
32
+ lines =
33
+ case backtrace
34
+ when true then caller(ignore)
35
+ when Regexp then caller(ignore).grep(backtrace)
36
+ else
37
+ []
38
+ end
39
+ <<~MSG.chomp
40
+
41
+ Backtrace:
42
+
43
+ #{lines.map { |l| "* #{l.chop}`" }.join("\n")}
44
+ MSG
45
+ end
46
+
47
+ private
48
+
49
+ def logger_instance(location)
50
+ case location
51
+ when Logger then location
52
+ else
53
+ Logger.new(location)
54
+ end
55
+ end
56
+
57
+ def create_logger(location)
58
+ logger_instance(location).tap do |logger|
59
+ logger.formatter = markdown_formatter
60
+ end
61
+ end
62
+
63
+ def markdown_formatter
64
+ proc do |severity, time, __exec, msg|
65
+ "#{'#' * heading_level} #{severity} in #{Process.pid} at #{time.iso8601} -- #{msg}\n\n"
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,6 @@
1
+ module MarkdownLoggingProxy
2
+ # just a shortcut for Proxy.new
3
+ def self.new(*args, **options)
4
+ Proxy.new(*args, **options)
5
+ end
6
+ end
@@ -0,0 +1,45 @@
1
+ module MarkdownLoggingProxy
2
+ # frozen_string_literal: true
3
+
4
+ require 'logger'
5
+ require 'securerandom'
6
+ require 'pp'
7
+ require 'time'
8
+
9
+ class Proxy
10
+
11
+ def initialize(
12
+ to_proxy = nil,
13
+ target: nil,
14
+ location: STDOUT,
15
+ backtrace: true, # regex/true/false backtrace control
16
+ ignore: [], # methods we shouldn't log/proxy
17
+ proxy_response: [], # methods we should return a proxy for
18
+ overwrite: [] # methods defined on Object we should overwrite
19
+ )
20
+ @target = to_proxy || target
21
+ raise ArgumentError, "Missing required proxy target" unless @target
22
+ @logger = MarkdownLogger.build(location, backtrace: backtrace)
23
+ @tracer = Tracer.new(
24
+ target: @target,
25
+ proxy: self,
26
+ logger: @logger,
27
+ ignore: ignore,
28
+ proxy_response: proxy_response,
29
+ proxy_options: {
30
+ overwrite: overwrite,
31
+ backtrace: backtrace,
32
+ }
33
+ )
34
+ overwrite.each do |meth|
35
+ define_method(meth) do |*args, &blk|
36
+ @traceer.trace(meth, args, &blk)
37
+ end
38
+ end
39
+ end
40
+
41
+ def method_missing(meth, *args, &blk)
42
+ @tracer.trace(meth, args, &blk)
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,114 @@
1
+ module MarkdownLoggingProxy
2
+ class Tracer
3
+ attr_reader :target, :logger, :ignore, :proxy
4
+
5
+ def initialize(
6
+ target:,
7
+ proxy:,
8
+ logger: nil,
9
+ ignore: [],
10
+ proxy_response: [],
11
+ proxy_options: {}
12
+ )
13
+ @target = target
14
+ @logger = logger
15
+ @ignore = (ignore + proxy_response)
16
+ @proxy_response = proxy_response
17
+ @proxy_options = proxy_options
18
+ end
19
+
20
+ def trace(meth, args, &blk)
21
+ log_call_signature(meth, args, &blk) unless ignore?(meth)
22
+ log_and_proxy_response(meth, args, &blk)
23
+ rescue StandardError => e
24
+ log_and_reraise_error(meth, e)
25
+ end
26
+
27
+ def proxy_response?(meth)
28
+ case @proxy_response
29
+ when true, false then @proxy_response
30
+ else
31
+ @proxy_response.member?(meth)
32
+ end
33
+ end
34
+
35
+ def ignore?(meth)
36
+ @ignore.member?(meth)
37
+ end
38
+
39
+ private
40
+
41
+ def log_call_signature(meth, args, &blk)
42
+ return if ignore.member?(meth)
43
+ logger.log :info, 1, <<~MSG.chomp
44
+ Calling `#{meth}` on #{MarkdownLogger.id_object(target)}
45
+
46
+ Arguments:
47
+
48
+ #{MarkdownLogger.inspect_object(args)}
49
+
50
+ Block? #{block_given? ? 'Yes' : 'No'}
51
+ #{logger.inspect_backtrace}
52
+ MSG
53
+ end
54
+
55
+ def log_and_proxy_response(meth, args, &blk)
56
+ response = target.public_send(meth, *args, &log_and_proxy_block(meth, blk))
57
+ log_response(meth, response) unless ignore?(meth)
58
+ return response unless proxy_response?(meth)
59
+ logger.log :info, 3, <<~MSG
60
+ Returning proxied response to `#{meth}`
61
+
62
+ Proxy from `#{meth}` on #{MarkdownLogger.id_object(target)}
63
+
64
+ Proxy for: #{MarkdownLogger.id_object(response)}
65
+ MSG
66
+ Proxy.new(**@proxy_options.merge(
67
+ target: response,
68
+ location: logger,
69
+ proxy_response: @proxy_response,
70
+ ignore: @ignore,
71
+ ))
72
+ end
73
+
74
+ def log_and_proxy_block(meth, blk)
75
+ return if blk.nil?
76
+ proc do |*args|
77
+ logger.log :info, 3, <<~MSG
78
+ Yield to block in `#{meth}` on #{MarkdownLogger.id_object(target)}
79
+
80
+ Arguments:
81
+
82
+ #{MarkdownLogger.inspect_object(args)}
83
+ MSG
84
+ blk.call(*args).tap do |response|
85
+ logger.log :info, 4, <<~MSG
86
+ Response from block in `#{meth}`
87
+
88
+ #{MarkdownLogger.inspect_object(response)}
89
+ MSG
90
+ end
91
+ end
92
+ end
93
+
94
+ def log_and_reraise_error(meth, error)
95
+ logger.log :error, 2, <<~MSG
96
+ Error in `#{meth}`
97
+
98
+ Type: #{error.class}
99
+
100
+ #{MarkdownLogger.inspect_object(error)}
101
+ MSG
102
+ raise error
103
+ end
104
+
105
+ def log_response(meth, response)
106
+ return if ignore?(meth)
107
+ logger.log :info, 2, <<~MSG.chomp
108
+ `#{meth}` response
109
+
110
+ #{MarkdownLogger.inspect_object(response)}
111
+ MSG
112
+ end
113
+ end
114
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'logger'
4
+ require 'securerandom'
5
+ require 'pp'
6
+ require 'time'
7
+
8
+ require_relative "markdown_logging_proxy/module_methods"
9
+ require_relative "markdown_logging_proxy/proxy"
10
+ require_relative "markdown_logging_proxy/tracer"
11
+ require_relative "markdown_logging_proxy/markdown_logger"
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: markdown_logging_proxy
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Carl Zulauf
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-08-28 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Wrap your ruby objects in a proxy to find out what happens to them
14
+ email:
15
+ - carl@linkleaf.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - ".rspec"
21
+ - CHANGELOG.md
22
+ - CODE_OF_CONDUCT.md
23
+ - Gemfile
24
+ - Gemfile.lock
25
+ - LICENSE.txt
26
+ - README.md
27
+ - Rakefile
28
+ - dist/markdown_logging_proxy.rb
29
+ - lib/markdown_logging_proxy.rb
30
+ - lib/markdown_logging_proxy/markdown_logger.rb
31
+ - lib/markdown_logging_proxy/module_methods.rb
32
+ - lib/markdown_logging_proxy/proxy.rb
33
+ - lib/markdown_logging_proxy/tracer.rb
34
+ homepage: https://github.com/carlzulauf/markdown_logging_proxy
35
+ licenses:
36
+ - MIT
37
+ metadata:
38
+ homepage_uri: https://github.com/carlzulauf/markdown_logging_proxy
39
+ source_code_uri: https://github.com/carlzulauf/markdown_logging_proxy
40
+ changelog_uri: https://github.com/carlzulauf/markdown_logging_proxy/blob/main/CHANGELOG.md
41
+ post_install_message:
42
+ rdoc_options: []
43
+ require_paths:
44
+ - lib
45
+ required_ruby_version: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 2.6.0
50
+ required_rubygems_version: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ requirements: []
56
+ rubygems_version: 3.3.7
57
+ signing_key:
58
+ specification_version: 4
59
+ summary: Proxy object for debugging
60
+ test_files: []