debug_print_ext 0.0.2 → 0.0.3
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 +5 -13
- data/lib/debug_print.rb +2 -1
- data/lib/debug_print/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZDhjODY1ODk3MjI1OWI0NDM0YmQ1ZWE0NzhjMjBiZmVhYjNhNDEwYQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3415c32b3edbf20430b62ee0836a10ef65d3305b
|
4
|
+
data.tar.gz: 7ede57533166743ae0f8c740a235e25f27b612b4
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
ODg4Zjg1ZGY5ZjhkOTUyYzEzODJkOWUxYjdmODkyZGFlMGI0Y2ZhNDM1YTFh
|
11
|
-
ZjhjOTc1NWJmM2YwMWZmMDFmNjdlMzFhNGZjMzExYzEzNmMxMzE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NmFmM2RmYmYwNjIxOWU0NjlmNTdiYjM0ODljY2E5ODc3MTlhNGJhZjFlMmY5
|
14
|
-
OWNjYmY4ZTAwODcxODBiOGNjMjVmMjg4MzljYzg4YzliODcyNmE5YWVlYjgy
|
15
|
-
MTBmYzc1ZDAzMTYyNzYzOWMyNzcyZGFmZWFiYWI0ZjMwMzhhNGY=
|
6
|
+
metadata.gz: fe3c7475244d7c1f2bca22630ac3289f6fe7b96505114b949fac1773a4f92fb61e6f4924f4c884cba2686fa66678f9ae344e067371808bed79d1e5f78e11851a
|
7
|
+
data.tar.gz: 4b092ef1a2ab90d47a48931dd10dc7819a59e1b1c1fbacb763fa44aa5ef3eacae387ce233d3b9698022a92fab42bed8dc73d1532de3f9e149902d58c95614cea
|
data/lib/debug_print.rb
CHANGED
@@ -33,7 +33,8 @@ module Kernel
|
|
33
33
|
def debug_print(object, options = {})
|
34
34
|
return if DebugPrint.silent
|
35
35
|
print = options[:printer] || DebugPrint.printer
|
36
|
-
|
36
|
+
label = options[:label] || 'DEBUG'
|
37
|
+
puts "[#{label}: from #{caller.first}]"
|
37
38
|
Kernel.send(print, object)
|
38
39
|
end
|
39
40
|
|
data/lib/debug_print/version.rb
CHANGED
metadata
CHANGED
@@ -1,44 +1,44 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: debug_print_ext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petr Cervinka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
description:
|
41
|
+
description: 'Ever placed `puts`, `pp` or `ap` for debugging purposes in the code
|
42
42
|
and then forgot where the prints come from? Use `dp` (or `debug_print`) instead!
|
43
43
|
`dp` simply prints header line with information about caller. '
|
44
44
|
email:
|
@@ -47,7 +47,7 @@ executables: []
|
|
47
47
|
extensions: []
|
48
48
|
extra_rdoc_files: []
|
49
49
|
files:
|
50
|
-
- .gitignore
|
50
|
+
- ".gitignore"
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE.txt
|
53
53
|
- README.md
|
@@ -65,17 +65,17 @@ require_paths:
|
|
65
65
|
- lib
|
66
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
67
|
requirements:
|
68
|
-
- -
|
68
|
+
- - ">="
|
69
69
|
- !ruby/object:Gem::Version
|
70
70
|
version: '0'
|
71
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- -
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
76
|
requirements: []
|
77
77
|
rubyforge_project:
|
78
|
-
rubygems_version: 2.
|
78
|
+
rubygems_version: 2.5.1
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Very simple gem for debug printings.
|