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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58eaa19df226afd2a1c13607d5f0bd2922ba5dbf
4
- data.tar.gz: 11ea87d1d868e5a57290b287213a80af3de9e534
3
+ metadata.gz: ede79516da0652f02b85606bc9ba0ad436a08fc2
4
+ data.tar.gz: b5e74b88668472fe64850a3d7f1d2371b78f6554
5
5
  SHA512:
6
- metadata.gz: 9733a777982e76a05dc0eb54a02da495717709afaa0ff2fec42e6232ea9075e94554ea88afa178e3a800c71818bb6ac8a27fb77c11c43a6c27167f8bec42ce88
7
- data.tar.gz: 5ef71acdfcc923dc64ede41d117b1bc91c477210396556122aa0b098b593d41d765e806572279b63fe9c5ad127960f21a8b62b6b25db79031a207984beafd0d4
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 'strong_versions', '~> 0.3.0'
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 yourself:
34
+ Or install standalone:
35
35
  ```bash
36
- $ gem install strong_versions -v '0.3.0'
36
+ $ gem install betterp -v '0.1.1'
37
37
  ```
38
38
 
39
39
  ## Usage
data/betterp.gemspec CHANGED
@@ -6,6 +6,7 @@ require 'betterp/version'
6
6
 
7
7
  Gem::Specification.new do |spec|
8
8
  spec.name = 'betterp'
9
+ spec.licenses = ['MIT']
9
10
  spec.version = Betterp::VERSION
10
11
  spec.authors = ['Bob Farrell']
11
12
  spec.email = ['bob@homeflow.co.uk']
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 *%w[hello bob how are you]
10
- p({ i: 'am', a: 'hash' })
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.'
@@ -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: [' => ', :default, :reset, :bright],
49
- separator: [':', :default, :reset],
50
- terminator: [' :: ', :default, :reset]
48
+ method_pointer: [' => ', :reset, :bright],
49
+ separator: [':', :reset],
50
+ terminator: [' :: ', :reset]
51
51
  }
52
52
  end
53
53
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Betterp
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
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.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: []