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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 03f8c0541fab13dc5ea656fdd5ef697075132bb00a4662345d4d27f3f935bc99
4
- data.tar.gz: 0d1d53bbedf84a6d9e17fcccb1565eaecd25ff0fa58ce09daeafb7386482999b
3
+ metadata.gz: 406de0bd607687bab5c7a46e6dfde187353c24dfaf0800e2b5c0cd9223a8faf8
4
+ data.tar.gz: f3f85a306a6455e2e699558a41e7d78b7eded223f862ce34c8ee02e3f487a268
5
5
  SHA512:
6
- metadata.gz: 6531b542b0b28d5dd0d5b0dee66b3e15d316a0ee05b54be0dedfb1a38f7a78e1cf9ba366404dd2a5d8867e5bb35af7add5254b1a58187a5be610b0f750b1ad24
7
- data.tar.gz: 36df84f99c1ab56ea168a7e693904244cf2b5c46660da6326e0649c5cdf5685190eb01155f1cbee548914babbbe02e9726ef6418de67e490a9a9f75d387c30fd
6
+ metadata.gz: 7ae3bf7696135d7d42ee5c0894a0d8d57b1ee2e93ce1236622b17f882ceaa67b9b0ac8769a2be01dd3291947363d5323c04138e2c5fdf141d0f1efcc20aa3b4c
7
+ data.tar.gz: 3d756257d84c6e72edaf7debfb6d7100fa8a7f43a81254cbcdbdf204cf8ff118c163a7136a92be076b017b2cd411fc1075f596e140a361036c41f0ed88e2e505
data/.envrc ADDED
@@ -0,0 +1,9 @@
1
+ # .envrc
2
+ # using the tool "direnv"
3
+ # brew install direnv
4
+ #
5
+ # $RR means repository root or rails root
6
+ # alias rr='cd $RR'
7
+ #
8
+
9
+ export RR=`pwd`
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.
@@ -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
- # poluting your code with an object name that is so
5
+ # polluting your code with an object name that is so
6
6
  # common.
7
- DEBUG_ME_VERSION = '1.1.0'
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.0
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: 2021-04-23 00:00:00.000000000 Z
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.2.15
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.