betterp 0.1.1 → 0.1.2
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 +3 -3
- data/betterp.gemspec +1 -0
- data/doc/images/screenshot.png +0 -0
- data/doc/testp.rb +4 -2
- data/lib/betterp/output.rb +4 -4
- data/lib/betterp/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ede79516da0652f02b85606bc9ba0ad436a08fc2
|
|
4
|
+
data.tar.gz: b5e74b88668472fe64850a3d7f1d2371b78f6554
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3613c1f03a649f804a62a53591222b9705c98d6a5ac7b3a551dc4ba591ef0a31ba6b6d341b960b88d78e24d1f5e17e8c0f0c6ce32c56ab9b3fe122404fa8905c
|
|
7
|
+
data.tar.gz: 2e7d82ae3d46978d104f2bc92b6c61b19198f9fb60d1737ef8905b2fc33c346f7db2241e85e79258b1e347710d24705d7a661560fa445794ce0ac7053136121d
|
data/README.md
CHANGED
|
@@ -22,7 +22,7 @@ The original semantics of `Kernel#p` are still applied, i.e. it returns the valu
|
|
|
22
22
|
Add the gem to your `Gemfile`
|
|
23
23
|
|
|
24
24
|
```ruby
|
|
25
|
-
gem '
|
|
25
|
+
gem 'betterp', '~> 0.1.1'
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
And rebuild your bundle:
|
|
@@ -31,9 +31,9 @@ And rebuild your bundle:
|
|
|
31
31
|
$ bundle install
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
Or install
|
|
34
|
+
Or install standalone:
|
|
35
35
|
```bash
|
|
36
|
-
$ gem install
|
|
36
|
+
$ gem install betterp -v '0.1.1'
|
|
37
37
|
```
|
|
38
38
|
|
|
39
39
|
## Usage
|
data/betterp.gemspec
CHANGED
data/doc/images/screenshot.png
CHANGED
|
Binary file
|
data/doc/testp.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
1
3
|
require 'betterp'
|
|
2
4
|
|
|
3
5
|
class MyCustomClass
|
|
@@ -6,8 +8,8 @@ end
|
|
|
6
8
|
p 'hello'
|
|
7
9
|
p 'hi'
|
|
8
10
|
p 'debug output'
|
|
9
|
-
p
|
|
10
|
-
p(
|
|
11
|
+
p 'hello', 'bob', 'how', 'are', 'you'
|
|
12
|
+
p(i: 'am', a: 'hash')
|
|
11
13
|
p MyCustomClass.new
|
|
12
14
|
p 'hello again'
|
|
13
15
|
p 'etc.'
|
data/lib/betterp/output.rb
CHANGED
|
@@ -43,11 +43,11 @@ module Betterp
|
|
|
43
43
|
{
|
|
44
44
|
path: [@source.path, color, :underline, effect],
|
|
45
45
|
line_no: [@source.line_no, :underline, color, effect],
|
|
46
|
-
method_name: [@source.method_name, color, effect],
|
|
46
|
+
method_name: [@source.method_name, :reset, color, effect],
|
|
47
47
|
|
|
48
|
-
method_pointer: [' => ', :
|
|
49
|
-
separator: [':', :
|
|
50
|
-
terminator: [' :: ', :
|
|
48
|
+
method_pointer: [' => ', :reset, :bright],
|
|
49
|
+
separator: [':', :reset],
|
|
50
|
+
terminator: [' :: ', :reset]
|
|
51
51
|
}
|
|
52
52
|
end
|
|
53
53
|
|
data/lib/betterp/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: betterp
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Bob Farrell
|
|
@@ -119,7 +119,8 @@ files:
|
|
|
119
119
|
- lib/betterp/version.rb
|
|
120
120
|
- lib/kernel.rb
|
|
121
121
|
homepage: https://github.com/bobf/betterp
|
|
122
|
-
licenses:
|
|
122
|
+
licenses:
|
|
123
|
+
- MIT
|
|
123
124
|
metadata: {}
|
|
124
125
|
post_install_message:
|
|
125
126
|
rdoc_options: []
|