betterp 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/README.md +2 -8
- data/betterp.gemspec +1 -1
- data/doc/images/screenshot.png +0 -0
- data/lib/betterp.rb +1 -0
- data/lib/betterp/output.rb +2 -2
- data/lib/betterp/version.rb +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a87d11a58d6dba378c026a3c924f9b83bd4bd6f1832f09df382aca6dff77d355
|
4
|
+
data.tar.gz: 13bb71a2a765d6012ffa2c7a170919bdb584c6ee1349e046dbff234eeaa2c184
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba8fd7cc760640f944480481210367c4f77ad82c3a073a88a8e752944477a8daf1eaed370662d910c8c6a95663a2e45cf2e9fa8ce9b5edf29b9b3689026c8302
|
7
|
+
data.tar.gz: 2968e802c10a1d204acff3dc345c8f04899931ccf4ce470e32d7ec4413f26af054e70edb144c287ae4421c549a2ac005e380ac60fb4e7b5d8461382383618a90
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -1,11 +1,5 @@
|
|
1
1
|
# betterp
|
2
2
|
|
3
|
-
```
|
4
|
-
If we can find the light
|
5
|
-
We'll find the light, come on
|
6
|
-
--Nickelback
|
7
|
-
```
|
8
|
-
|
9
3
|
## Overview
|
10
4
|
|
11
5
|
_betterp_ emulates _Ruby_'s default `p` with a few extra goodies.
|
@@ -22,7 +16,7 @@ The original semantics of `Kernel#p` are still applied, i.e. it returns the valu
|
|
22
16
|
Add the gem to your `Gemfile`
|
23
17
|
|
24
18
|
```ruby
|
25
|
-
gem 'betterp', '~> 0.1.
|
19
|
+
gem 'betterp', '~> 0.1.4'
|
26
20
|
```
|
27
21
|
|
28
22
|
And rebuild your bundle:
|
@@ -33,7 +27,7 @@ $ bundle install
|
|
33
27
|
|
34
28
|
Or install standalone:
|
35
29
|
```bash
|
36
|
-
$ gem install betterp -v '0.1.
|
30
|
+
$ gem install betterp -v '0.1.4'
|
37
31
|
```
|
38
32
|
|
39
33
|
## Usage
|
data/betterp.gemspec
CHANGED
@@ -30,6 +30,6 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency 'rake', '~> 10.0'
|
31
31
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
32
32
|
spec.add_development_dependency 'rspec-its', '~> 1.2'
|
33
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
33
|
+
spec.add_development_dependency 'rubocop', '~> 0.77.0'
|
34
34
|
spec.add_development_dependency 'strong_versions', '~> 0.3.2'
|
35
35
|
end
|
data/doc/images/screenshot.png
CHANGED
Binary file
|
data/lib/betterp.rb
CHANGED
data/lib/betterp/output.rb
CHANGED
@@ -15,7 +15,7 @@ module Betterp
|
|
15
15
|
|
16
16
|
def format(args)
|
17
17
|
args.map do |arg|
|
18
|
-
style = %i[
|
18
|
+
style = %i[yellow]
|
19
19
|
header + colorize(prefix) + caller_code + Paint[pretty(arg), *style]
|
20
20
|
end
|
21
21
|
end
|
@@ -42,7 +42,7 @@ module Betterp
|
|
42
42
|
+'%{open}%{code}%{close}',
|
43
43
|
:default,
|
44
44
|
open: ['{ ', :white, :default],
|
45
|
-
code: [find_caller(line.to_i, path).to_s.strip, :
|
45
|
+
code: [find_caller(line.to_i, path).to_s.strip, :cyan],
|
46
46
|
close: [' } ', :white, :default]
|
47
47
|
]
|
48
48
|
end
|
data/lib/betterp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Farrell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: paint
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.
|
89
|
+
version: 0.77.0
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.
|
96
|
+
version: 0.77.0
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: strong_versions
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,8 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
|
-
|
159
|
-
rubygems_version: 2.7.6
|
158
|
+
rubygems_version: 3.0.3
|
160
159
|
signing_key:
|
161
160
|
specification_version: 4
|
162
161
|
summary: Enhanced debug output
|