jazz_fingers 5.2.0 → 6.2.0

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: 68eb4443091b5d11a09fe647b29ec39a0285e8194cf160773ea2c648d4a0c6fb
4
- data.tar.gz: afef7c899f5a9d8cf40d9395a6890a62ba27ad915afda4ce11ff1bc9b48ea666
3
+ metadata.gz: f0560400d1f8a71b6c6cef1ce2ec86fd9c73a84a59e280399af0c349e42634b9
4
+ data.tar.gz: 0a0d950e7f29ef16825bff68be2f326d29ab8a8dacf62fdea8526c658633f3dd
5
5
  SHA512:
6
- metadata.gz: ebf8563fc9845812c5898b8ac79b56f7a322202e3e3ed18108551cf35561a50d068179a8031e62f94aae43af2dd01671ae59d335de29b5cfe78cde2cdba43f6c
7
- data.tar.gz: 5cc24c6094438c859fbc41590acefe95bf5be2056237955ba86aa6275ddd03f18340ba24f9f44ae73181c5d1a8f0932752722d11b9d231eb0c791d38933cb7fe
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
- * [**Awesome Print**][awesome_print] for stylish pretty print.
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.awesome_print = false
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
- [awesome_print]: https://github.com/michaeldv/awesome_print
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 awesome_print, and has some other goodies up its sleeves.'
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 'awesome_print', '~> 1.6'
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.4'
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 :AWESOME_PRINT, 'jazz_fingers/awesome_print'
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, :awesome_print?, :coolline?
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.awesome_print?
70
- require 'awesome_print'
69
+ if JazzFingers.amazing_print?
70
+ require 'amazing_print'
71
71
 
72
- AwesomePrint.defaults = JazzFingers::AWESOME_PRINT
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
- AWESOME_PRINT = {
2
+ AMAZING_PRINT = {
3
3
  indent: 2,
4
4
  sort_keys: true,
5
5
  color: {
6
6
  args: :greenish,
7
- array: :pale,
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: :pale,
14
+ hash: :whiteish,
15
15
  keyword: :cyan,
16
16
  method: :purpleish,
17
17
  nilclass: :red,
18
18
  string: :yellowish,
19
- struct: :pale,
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, :awesome_print,
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 awesome_print?
36
- return true if @awesome_print.nil?
35
+ def amazing_print?
36
+ return true if @amazing_print.nil?
37
37
 
38
- @awesome_print
38
+ @amazing_print
39
39
  end
40
40
 
41
41
  def application_name
42
42
  return underscore(@application_name) unless @application_name.nil?
43
- return Rails.application.class.parent_name.underscore if defined?(Rails)
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
@@ -1,4 +1,4 @@
1
- require 'awesome_print'
1
+ require 'amazing_print'
2
2
 
3
3
  module JazzFingers
4
4
  class Print
@@ -1,3 +1,3 @@
1
1
  module JazzFingers
2
- VERSION = '5.2.0'.freeze
2
+ VERSION = '6.2.0'.freeze
3
3
  end
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: 5.2.0
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: 2020-05-09 00:00:00.000000000 Z
11
+ date: 2021-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: awesome_print
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.6'
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.6'
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.4'
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.4'
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 awesome_print,
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/awesome_print.rb
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.0.8
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: []