debug_print_ext 0.0.3 → 0.0.5

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
- SHA1:
3
- metadata.gz: 3415c32b3edbf20430b62ee0836a10ef65d3305b
4
- data.tar.gz: 7ede57533166743ae0f8c740a235e25f27b612b4
2
+ SHA256:
3
+ metadata.gz: 415b2b7a635ad7edb073dce4b05320639011b25d25be0b00c66e035fb0c9ad64
4
+ data.tar.gz: 8c71888a85f489ca5c71e2b2a82e6e5fcd037835cead558b601065c0b1fd0a28
5
5
  SHA512:
6
- metadata.gz: fe3c7475244d7c1f2bca22630ac3289f6fe7b96505114b949fac1773a4f92fb61e6f4924f4c884cba2686fa66678f9ae344e067371808bed79d1e5f78e11851a
7
- data.tar.gz: 4b092ef1a2ab90d47a48931dd10dc7819a59e1b1c1fbacb763fa44aa5ef3eacae387ce233d3b9698022a92fab42bed8dc73d1532de3f9e149902d58c95614cea
6
+ metadata.gz: 8bf8f55839bd9e7c9d1a0776f0fcccc41ae3c95348b7f0d11eef32c7372b4b5990968921648557bf67f9b9fb5d09e10efe06a9ef21ae6c20ce98157bd15e0566
7
+ data.tar.gz: c34d0212ce93449a27dae74f1f2d72ee5c4d2f104a7015ad566041d896149ca57db585727a62469a676d7e318118e421047bdb1c8630730a27524e14671eb870
data/README.md CHANGED
@@ -36,7 +36,7 @@ DebugPrint.printer = :p # use standard p method for printing
36
36
  DebugPrint.printer = :puts # use standard puts method for printing
37
37
 
38
38
  # set printing method ad-hoc
39
- dp object_to_print, printer: ap
39
+ dp object_to_print, printer: :ap
40
40
  ```
41
41
 
42
42
  You can also silent all calls to `dp` by `DebugPrint.silent = true`
@@ -38,5 +38,17 @@ module Kernel
38
38
  Kernel.send(print, object)
39
39
  end
40
40
 
41
+ def dputs(object, options = {})
42
+ debug_print(object, options.merge({printer: :puts}))
43
+ end
44
+
45
+ def dpp(object, options = {})
46
+ debug_print(object, options.merge({printer: :pp}))
47
+ end
48
+
49
+ def dap(object, options = {})
50
+ debug_print(object, options.merge({printer: :ap}))
51
+ end
52
+
41
53
  alias :dp :debug_print
42
54
  end
@@ -1,3 +1,3 @@
1
1
  class DebugPrint
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debug_print_ext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Petr Cervinka
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-01 00:00:00.000000000 Z
11
+ date: 2020-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -59,7 +59,7 @@ homepage: ''
59
59
  licenses:
60
60
  - MIT
61
61
  metadata: {}
62
- post_install_message:
62
+ post_install_message:
63
63
  rdoc_options: []
64
64
  require_paths:
65
65
  - lib
@@ -74,9 +74,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
- rubyforge_project:
78
- rubygems_version: 2.5.1
79
- signing_key:
77
+ rubygems_version: 3.0.1
78
+ signing_key:
80
79
  specification_version: 4
81
80
  summary: Very simple gem for debug printings.
82
81
  test_files: []