pry-auditlog 0.2.0 → 0.2.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/README.md +2 -2
- data/lib/pry-auditlog/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3ee50ac939176aede2e4955cd623aa70ea86ec6
|
|
4
|
+
data.tar.gz: af43359a9d894b87042f90f1360f88072b5800c7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a5e2842283b10f2c17296f2c4738d7f9648807b077cee2ddc7e9c280a9d1e2b48ce1bef3918ccdf659fea1c59e74f50ba5ececb4ae9fe68188e145350a6ac59
|
|
7
|
+
data.tar.gz: 3c34344d5112ca2f2c0358a7c1f6e3fbcb5a6db34404e0d08e9bb2858cfcd3b16c2fd344b2761bf0335f323ac391dfa48af4a3031e61097a93c58ad1cf639ffb
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
PryAuditlog is a plugin for the [Pry](http://pry.github.com) REPL that enables logging of any combination of Pry input and output to a configured audit log file.
|
|
4
4
|
|
|
5
|
-
It
|
|
5
|
+
It modifies the `read` method of the REPL class to read input statements to Pry, and it inserts itself into the `output` mechanism to scrape a copy of all emitted data. It also redirects `$stdout` and `$stderr` during the Pry session in order to capture all output emitted from any `puts` or similar statements.
|
|
6
6
|
|
|
7
7
|
All output data is forwarded to the original configured `Pry.config.output` mechanism after logging, and this plugin should (hopefully) respect any configured outputter.
|
|
8
8
|
|
|
@@ -21,7 +21,7 @@ Set appropriate config values and then require the plugin in your `.pryrc` or an
|
|
|
21
21
|
Pry.config.auditlog_enabled = true # default: false
|
|
22
22
|
|
|
23
23
|
# Optional path to audit log destination
|
|
24
|
-
Pry.config.auditlog_file = '/path/to/file' # default:
|
|
24
|
+
Pry.config.auditlog_file = '/path/to/file' # default: '/dev/null'
|
|
25
25
|
|
|
26
26
|
# We log both input and output by default
|
|
27
27
|
Pry.config.auditlog_log_input = false # default: true
|
data/lib/pry-auditlog/version.rb
CHANGED