jazz_fingers 5.2.2 → 6.0.0.pre.rc1
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/jazz_fingers.gemspec +2 -2
- 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 +4 -4
- data/lib/jazz_fingers/print.rb +1 -1
- data/lib/jazz_fingers/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 532d4660c48c061acd71789b37a2192a234ee1a9c758e7a558a6d84f4e9a2e17
|
4
|
+
data.tar.gz: 10dda140b0286c7ef7c7639703742d07b11e0e1c27edde9d4f66a4d41d01dd48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1673af4271d78fb52ce3537a09f963af085a5afd1a8382af3664e9f67b7573e1a4e98e1ab60a38ef0c6f57a83aaa877cd79df99a43ed22b795c5d3c0e1a0dd8
|
7
|
+
data.tar.gz: a8ffbb30aeb64be2a37955274645e740137a4f404bb68190d05ea8412acd2ade3b145214c1c9ac26f8762dba31dd5605e014644a1a062ac3d3057ce88648317c
|
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,7 +20,7 @@ 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.2'
|
24
24
|
gem.add_runtime_dependency 'pry', '~> 0.10'
|
25
25
|
gem.add_runtime_dependency 'pry-byebug', '~> 3.4'
|
26
26
|
gem.add_runtime_dependency 'pry-coolline', '~> 0.2'
|
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,10 +32,10 @@ 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
|
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.0.0.pre.rc1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paulo Henrique Lopes Ribeiro
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-22 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.2'
|
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.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
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
|
@@ -132,9 +132,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
132
132
|
version: '2.0'
|
133
133
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
|
-
- - "
|
135
|
+
- - ">"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version:
|
137
|
+
version: 1.3.1
|
138
138
|
requirements: []
|
139
139
|
rubygems_version: 3.1.3
|
140
140
|
signing_key:
|