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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 77fbb36e55d0c863d7451219b231702f1520ea7abfd97997863be1da860b9a3f
4
- data.tar.gz: 234ade8966e9e3e61b88d70e4143915bc842e814abdab13e5bcecb44970024cc
3
+ metadata.gz: a87d11a58d6dba378c026a3c924f9b83bd4bd6f1832f09df382aca6dff77d355
4
+ data.tar.gz: 13bb71a2a765d6012ffa2c7a170919bdb584c6ee1349e046dbff234eeaa2c184
5
5
  SHA512:
6
- metadata.gz: 843988be19cc12f78344cd6392ea98ea636acef8e70f71a12dbb2193ced6fed064dc4ca8fba8a220f420368135c262883fe0faa2285bfcf5e3996cce0e83a2ef
7
- data.tar.gz: e16a4d415911c0ae530e3aaae83bcfacabaddc2a8a9de5d28ac003f576094458f70377be7903632f337bfc62597baa3b1299b234a0de453f4d78987a463ec4a0
6
+ metadata.gz: ba8fd7cc760640f944480481210367c4f77ad82c3a073a88a8e752944477a8daf1eaed370662d910c8c6a95663a2e45cf2e9fa8ce9b5edf29b9b3689026c8302
7
+ data.tar.gz: 2968e802c10a1d204acff3dc345c8f04899931ccf4ce470e32d7ec4413f26af054e70edb144c287ae4421c549a2ac005e380ac60fb4e7b5d8461382383618a90
data/.gitignore CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  Gemfile.lock
10
10
 
11
- # rspec failure tracking
11
+ .ruby-version
12
12
  .rspec_status
13
13
  .byebug_history
14
14
  *.swp
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.2'
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.2'
30
+ $ gem install betterp -v '0.1.4'
37
31
  ```
38
32
 
39
33
  ## Usage
@@ -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.60.0'
33
+ spec.add_development_dependency 'rubocop', '~> 0.77.0'
34
34
  spec.add_development_dependency 'strong_versions', '~> 0.3.2'
35
35
  end
Binary file
@@ -3,6 +3,7 @@
3
3
  require 'digest'
4
4
  require 'pathname'
5
5
  require 'pp'
6
+ require 'stringio'
6
7
 
7
8
  require 'paint'
8
9
 
@@ -15,7 +15,7 @@ module Betterp
15
15
 
16
16
  def format(args)
17
17
  args.map do |arg|
18
- style = %i[cyan black]
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, :blue, :black],
45
+ code: [find_caller(line.to_i, path).to_s.strip, :cyan],
46
46
  close: [' } ', :white, :default]
47
47
  ]
48
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Betterp
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
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.3
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: 2019-01-01 00:00:00.000000000 Z
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.60.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.60.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
- rubyforge_project:
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