jazz_fingers 5.2.0 → 6.2.0
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/CHANGELOG.md +21 -0
- data/README.md +3 -3
- data/jazz_fingers.gemspec +3 -3
- data/lib/jazz_fingers.rb +5 -5
- data/lib/jazz_fingers/{awesome_print.rb → amazing_print.rb} +4 -4
- data/lib/jazz_fingers/configuration.rb +14 -5
- data/lib/jazz_fingers/print.rb +1 -1
- data/lib/jazz_fingers/version.rb +1 -1
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0560400d1f8a71b6c6cef1ce2ec86fd9c73a84a59e280399af0c349e42634b9
|
4
|
+
data.tar.gz: 0a0d950e7f29ef16825bff68be2f326d29ab8a8dacf62fdea8526c658633f3dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2295a4a7669fd2304bc822b026f1b5c74f2992572983b6549593115822cf62c63a1461cd39be584841fcb485bd07ec6b1111a737f426074b49e3d947d65ea2d
|
7
|
+
data.tar.gz: 2a416eee08ae868a31e8e82addb2198b50ba10cd65213d6bcce91aebb444f54f2f9ce80c2184a9fb9daa043a3cb15cf169738810287ddace9cb6775ffe8abaea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## 6.2.0 (2021-04-19)
|
4
|
+
* Upgrade [pry-byebug][pry-byebug] to 3.9
|
5
|
+
|
6
|
+
## 6.1.0 (2021-04-19)
|
7
|
+
* Update [amazing_print][amazing_print] to v1.3.0
|
8
|
+
|
9
|
+
## 6.0.0.pre.rc1 (2020-10-22)
|
10
|
+
* Switched [awesome_print][awesome_print] with [amazing_print][amazing_print]
|
11
|
+
|
12
|
+
## 5.2.0 (2020-07-22)
|
13
|
+
* Fixed application name
|
14
|
+
|
15
|
+
## 5.2.1 (2020-07-16)
|
16
|
+
* Fix Rails deprecation
|
17
|
+
|
18
|
+
## 5.2.0 (2020-05-09)
|
19
|
+
* Added Pry custom commands
|
20
|
+
* Customize AwesomePrint configuration
|
21
|
+
* Customize CodeRay colors
|
22
|
+
|
3
23
|
## 5.1.0.rc1 (2020-04-25)
|
4
24
|
* Change deprecated method on pry > 0.13.0
|
5
25
|
* Improve naming context
|
@@ -185,6 +205,7 @@
|
|
185
205
|
|
186
206
|
[pry]: http://pry.github.com
|
187
207
|
[awesome_print]: https://github.com/michaeldv/awesome_print
|
208
|
+
[amazing_print]: https://github.com/amazing-print/amazing_print
|
188
209
|
[pry-doc]: https://github.com/pry/pry-doc
|
189
210
|
[pry-git]: https://github.com/pry/pry-git
|
190
211
|
[pry-nav]: https://github.com/nixme/pry-nav
|
data/README.md
CHANGED
@@ -9,7 +9,7 @@ hard-working fingers!
|
|
9
9
|
**jazz_fingers** is an opinionated set of console-related gems and a bit of glue:
|
10
10
|
|
11
11
|
* [**Pry**][pry] for a powerful shell alternative to IRB.
|
12
|
-
* [**
|
12
|
+
* [**Amazing Print**][amazing_print] for stylish pretty print.
|
13
13
|
console.
|
14
14
|
* [**Pry Coolline**][pry-coolline] for syntax highlighting as you type.
|
15
15
|
|
@@ -46,7 +46,7 @@ Some configurations can be overwritten:
|
|
46
46
|
if defined?(JazzFingers)
|
47
47
|
JazzFingers.configure do |config|
|
48
48
|
config.colored_prompt = false
|
49
|
-
config.
|
49
|
+
config.amazing_print = false
|
50
50
|
config.coolline = false
|
51
51
|
config.application_name = MyAwesomeProject
|
52
52
|
end
|
@@ -69,7 +69,7 @@ mixed encodings.
|
|
69
69
|
|
70
70
|
|
71
71
|
[pry]: http://pry.github.com
|
72
|
-
[
|
72
|
+
[amazing_print]: https://github.com/amazing-print/amazing_print
|
73
73
|
[hirb]: https://github.com/cldwalker/hirb
|
74
74
|
[pry-doc]: https://github.com/pry/pry-doc
|
75
75
|
[pry-coolline]: https://github.com/pry/pry-coolline
|
data/jazz_fingers.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.summary = 'Exercise those fingers. Pry-based enhancements for the default Ruby console.'
|
11
11
|
description =
|
12
12
|
'Spending hours in the ruby console? Spruce it up and show off those hard-working hands! jazz_fingers'\
|
13
|
-
'replaces IRB with Pry, improves output through
|
13
|
+
'replaces IRB with Pry, improves output through amazing_print, and has some other goodies up its sleeves.'
|
14
14
|
gem.description = description
|
15
15
|
|
16
16
|
gem.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
|
@@ -20,9 +20,9 @@ Gem::Specification.new do |gem|
|
|
20
20
|
|
21
21
|
# Dependencies
|
22
22
|
gem.required_ruby_version = '>= 2.0'
|
23
|
-
gem.add_runtime_dependency '
|
23
|
+
gem.add_runtime_dependency 'amazing_print', '~> 1.3'
|
24
24
|
gem.add_runtime_dependency 'pry', '~> 0.10'
|
25
|
-
gem.add_runtime_dependency 'pry-byebug', '~> 3.
|
25
|
+
gem.add_runtime_dependency 'pry-byebug', '~> 3.9'
|
26
26
|
gem.add_runtime_dependency 'pry-coolline', '~> 0.2'
|
27
27
|
|
28
28
|
gem.add_development_dependency 'rubocop'
|
data/lib/jazz_fingers.rb
CHANGED
@@ -6,7 +6,7 @@ require 'readline'
|
|
6
6
|
require 'forwardable'
|
7
7
|
|
8
8
|
module JazzFingers
|
9
|
-
autoload :
|
9
|
+
autoload :AMAZING_PRINT, 'jazz_fingers/amazing_print'
|
10
10
|
autoload :CodeRay, 'jazz_fingers/coderay'
|
11
11
|
autoload :Commands, 'jazz_fingers/commands'
|
12
12
|
autoload :Configuration, 'jazz_fingers/configuration'
|
@@ -18,7 +18,7 @@ module JazzFingers
|
|
18
18
|
class << self
|
19
19
|
extend Forwardable
|
20
20
|
|
21
|
-
def_delegators :config, :
|
21
|
+
def_delegators :config, :amazing_print?, :coolline?
|
22
22
|
|
23
23
|
def print
|
24
24
|
@print ||= Print.config
|
@@ -66,10 +66,10 @@ module JazzFingers
|
|
66
66
|
Pry.config.commands.import(command)
|
67
67
|
end
|
68
68
|
|
69
|
-
if JazzFingers.
|
70
|
-
require '
|
69
|
+
if JazzFingers.amazing_print?
|
70
|
+
require 'amazing_print'
|
71
71
|
|
72
|
-
|
72
|
+
AmazingPrint.defaults = JazzFingers::AMAZING_PRINT
|
73
73
|
Pry.print = print
|
74
74
|
end
|
75
75
|
|
@@ -1,22 +1,22 @@
|
|
1
1
|
module JazzFingers
|
2
|
-
|
2
|
+
AMAZING_PRINT = {
|
3
3
|
indent: 2,
|
4
4
|
sort_keys: true,
|
5
5
|
color: {
|
6
6
|
args: :greenish,
|
7
|
-
array: :
|
7
|
+
array: :whiteish,
|
8
8
|
bigdecimal: :blue,
|
9
9
|
class: :yellow,
|
10
10
|
date: :greenish,
|
11
11
|
falseclass: :red,
|
12
12
|
fixnum: :blue,
|
13
13
|
float: :blue,
|
14
|
-
hash: :
|
14
|
+
hash: :whiteish,
|
15
15
|
keyword: :cyan,
|
16
16
|
method: :purpleish,
|
17
17
|
nilclass: :red,
|
18
18
|
string: :yellowish,
|
19
|
-
struct: :
|
19
|
+
struct: :whiteish,
|
20
20
|
symbol: :cyanish,
|
21
21
|
time: :greenish,
|
22
22
|
trueclass: :green,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
module JazzFingers
|
2
2
|
class Configuration
|
3
|
-
attr_writer :colored_prompt, :prompt_separator, :coolline, :
|
3
|
+
attr_writer :colored_prompt, :prompt_separator, :coolline, :amazing_print,
|
4
4
|
:application_name
|
5
5
|
|
6
6
|
# Color the prompt?
|
@@ -32,15 +32,24 @@ module JazzFingers
|
|
32
32
|
@coolline
|
33
33
|
end
|
34
34
|
|
35
|
-
def
|
36
|
-
return true if @
|
35
|
+
def amazing_print?
|
36
|
+
return true if @amazing_print.nil?
|
37
37
|
|
38
|
-
@
|
38
|
+
@amazing_print
|
39
39
|
end
|
40
40
|
|
41
41
|
def application_name
|
42
42
|
return underscore(@application_name) unless @application_name.nil?
|
43
|
-
|
43
|
+
|
44
|
+
if defined?(Rails)
|
45
|
+
application_class = Rails.application.class
|
46
|
+
|
47
|
+
if application_class.respond_to?(:module_parent_name)
|
48
|
+
return application_class.module_parent_name.underscore
|
49
|
+
else
|
50
|
+
return application_class.parent_name.underscore
|
51
|
+
end
|
52
|
+
end
|
44
53
|
|
45
54
|
"jazz_fingers"
|
46
55
|
end
|
data/lib/jazz_fingers/print.rb
CHANGED
data/lib/jazz_fingers/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jazz_fingers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Henrique Lopes Ribeiro
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: amazing_print
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.3'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.9'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
54
|
+
version: '3.9'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pry-coolline
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
description: Spending hours in the ruby console? Spruce it up and show off those hard-working
|
84
|
-
hands! jazz_fingersreplaces IRB with Pry, improves output through
|
84
|
+
hands! jazz_fingersreplaces IRB with Pry, improves output through amazing_print,
|
85
85
|
and has some other goodies up its sleeves.
|
86
86
|
email: plribeiro3000@gmail.com
|
87
87
|
executables: []
|
@@ -102,7 +102,7 @@ files:
|
|
102
102
|
- Rakefile
|
103
103
|
- jazz_fingers.gemspec
|
104
104
|
- lib/jazz_fingers.rb
|
105
|
-
- lib/jazz_fingers/
|
105
|
+
- lib/jazz_fingers/amazing_print.rb
|
106
106
|
- lib/jazz_fingers/coderay.rb
|
107
107
|
- lib/jazz_fingers/coderay/escaped_colors.rb
|
108
108
|
- lib/jazz_fingers/coderay/unescaped_colors.rb
|
@@ -121,7 +121,7 @@ homepage: https://github.com/plribeiro3000/jazz_fingers
|
|
121
121
|
licenses:
|
122
122
|
- MIT
|
123
123
|
metadata: {}
|
124
|
-
post_install_message:
|
124
|
+
post_install_message:
|
125
125
|
rdoc_options: []
|
126
126
|
require_paths:
|
127
127
|
- lib
|
@@ -136,8 +136,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: '0'
|
138
138
|
requirements: []
|
139
|
-
rubygems_version: 3.
|
140
|
-
signing_key:
|
139
|
+
rubygems_version: 3.1.3
|
140
|
+
signing_key:
|
141
141
|
specification_version: 4
|
142
142
|
summary: Exercise those fingers. Pry-based enhancements for the default Ruby console.
|
143
143
|
test_files: []
|