debug_me 1.1.0 → 1.1.1
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/.envrc +9 -0
- data/README.md +1 -0
- data/lib/debug_me/version.rb +2 -2
- data/lib/debug_me.rb +3 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 406de0bd607687bab5c7a46e6dfde187353c24dfaf0800e2b5c0cd9223a8faf8
|
4
|
+
data.tar.gz: f3f85a306a6455e2e699558a41e7d78b7eded223f862ce34c8ee02e3f487a268
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ae3bf7696135d7d42ee5c0894a0d8d57b1ee2e93ce1236622b17f882ceaa67b9b0ac8769a2be01dd3291947363d5323c04138e2c5fdf141d0f1efcc20aa3b4c
|
7
|
+
data.tar.gz: 3d756257d84c6e72edaf7debfb6d7100fa8a7f43a81254cbcdbdf204cf8ff118c163a7136a92be076b017b2cd411fc1075f596e140a361036c41f0ed88e2e505
|
data/.envrc
ADDED
data/README.md
CHANGED
@@ -15,6 +15,7 @@ DebugMe::debug_me(){} works with local, instance and class variables.
|
|
15
15
|
|
16
16
|
## Recent Changes
|
17
17
|
|
18
|
+
* 1.1.1 Added global constant $DEBUG_ME as a boolean; default is true. when false the debug_me method does nothing.
|
18
19
|
* 1.1.0 Changes the output formatting w/r/t the use of levels option; add :backtrace option for full backtrace
|
19
20
|
* 1.0.6 Added support for variable backtrack length via the :levels option
|
20
21
|
* 1.0.5 Added support for an instance of a Logger class.
|
data/lib/debug_me/version.rb
CHANGED
@@ -2,7 +2,7 @@ module DebugMe
|
|
2
2
|
# I know. Its weird to duplicate the name space; but,
|
3
3
|
# doing this allows you to include DebugMe in your code
|
4
4
|
# to get direct access to the debug_me method without
|
5
|
-
#
|
5
|
+
# polluting your code with an object name that is so
|
6
6
|
# common.
|
7
|
-
DEBUG_ME_VERSION = '1.1.
|
7
|
+
DEBUG_ME_VERSION = '1.1.1'
|
8
8
|
end
|
data/lib/debug_me.rb
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
require 'pp'
|
2
2
|
require_relative 'debug_me/version'
|
3
3
|
|
4
|
+
$DEBUG_ME = true
|
5
|
+
|
4
6
|
DebugMeDefaultOptions = {
|
5
7
|
tag: 'DEBUG', # A tag to prepend to each output line
|
6
8
|
time: true, # Include a time-stamp in front of the tag
|
@@ -20,6 +22,7 @@ DebugMeDefaultOptions = {
|
|
20
22
|
|
21
23
|
module DebugMe
|
22
24
|
def debug_me(options = {}, &block)
|
25
|
+
return unless $DEBUG_ME
|
23
26
|
|
24
27
|
if 'Hash' == options.class.to_s
|
25
28
|
options = DebugMeDefaultOptions.merge(options)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debug_me
|
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
|
- Dewayne VanHoozer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -49,6 +49,7 @@ executables: []
|
|
49
49
|
extensions: []
|
50
50
|
extra_rdoc_files: []
|
51
51
|
files:
|
52
|
+
- ".envrc"
|
52
53
|
- ".gitignore"
|
53
54
|
- ".rultor.yml"
|
54
55
|
- Gemfile
|
@@ -80,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
81
|
- !ruby/object:Gem::Version
|
81
82
|
version: '0'
|
82
83
|
requirements: []
|
83
|
-
rubygems_version: 3.
|
84
|
+
rubygems_version: 3.4.21
|
84
85
|
signing_key:
|
85
86
|
specification_version: 4
|
86
87
|
summary: A tool to print the labeled value of variables.
|