rails_console_pro 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
  SHA256:
3
- metadata.gz: c2bf3b43d1aec8df2a4c5c347b7732a99d9e3da3dc4466f07fec32237775d961
4
- data.tar.gz: 1b2684a44388c146c0f1460807bfe972d66709dc9761a2ba4275d5b3825a382b
3
+ metadata.gz: 212f6c9da69da95f89adde09139086ead382077988260cf4c348a3e70e2aa27a
4
+ data.tar.gz: 4bc720a83588b51498f89986a6f5563a7a6da761e2060808048213081d678116
5
5
  SHA512:
6
- metadata.gz: 87415018c9a9b084ac0623683825beb95423783a38feaa02ee3ccfbe732d141379772c9041a78856c3b3491c414b798fa503ec9daa1b964b3e12c257eb084cb7
7
- data.tar.gz: f640e154acc417cb01a696c3dcaca90dfb67b3e03dbe281a54243e76e606ffede5739caa39f67ba4a6aa9e72040ac50850f49c1b855f70537feafd9f3c1b1d87
6
+ metadata.gz: a6544050d3a2ac2ae62d763e7ba9747eb13fcb96119ed2c874c44b2749b5849c10b38e32fdfea1ca5411d04290b112cc6b110331408f1677ff9e7c390289f834
7
+ data.tar.gz: e9b7c36b8659b0e27a426a38157328e7c397aec326f84a2f7ae6caad584f4d56cdb8b31c53c8d8906bcbf84304840aa1b46d896d18ee88035c07f79b099931a5
@@ -9,7 +9,7 @@ module RailsConsolePro
9
9
  protected
10
10
 
11
11
  def pastel
12
- ColorHelper.pastel
12
+ RailsConsolePro::ColorHelper.pastel
13
13
  end
14
14
  end
15
15
  end
@@ -8,6 +8,9 @@ module RailsConsolePro
8
8
 
9
9
  # Singleton Pastel instance
10
10
  PASTEL = Pastel.new(enabled: TTY::Color.color?)
11
+
12
+ # Require ColorHelper early since it's used throughout
13
+ require_relative 'color_helper'
11
14
 
12
15
  # Configuration instance
13
16
  def config
@@ -22,7 +25,6 @@ module RailsConsolePro
22
25
 
23
26
  # Autoload all components
24
27
  autoload :Configuration, "rails_console_pro/configuration"
25
- autoload :ColorHelper, "rails_console_pro/color_helper"
26
28
  autoload :BasePrinter, "rails_console_pro/base_printer"
27
29
  autoload :ModelValidator, "rails_console_pro/model_validator"
28
30
  autoload :SchemaInspectorResult, "rails_console_pro/schema_inspector_result"
@@ -57,7 +59,7 @@ module RailsConsolePro
57
59
  rescue => e
58
60
  # Show error in development to help debug
59
61
  if Rails.env.development? || ENV['RAILS_CONSOLE_PRO_DEBUG']
60
- pastel = ColorHelper.pastel
62
+ pastel = PASTEL
61
63
  output.puts pastel.red.bold("💥 RailsConsolePro Error: #{e.class}: #{e.message}")
62
64
  output.puts pastel.dim(e.backtrace.first(5).join("\n"))
63
65
  end
@@ -105,7 +107,7 @@ module RailsConsolePro
105
107
  end
106
108
 
107
109
  def handle_error(output, error, value, pry_instance)
108
- pastel = ColorHelper.pastel
110
+ pastel = PASTEL
109
111
  output.puts pastel.red.bold("💥 #{error.class}: #{error.message}")
110
112
  output.puts pastel.dim(error.backtrace.first(3).join("\n"))
111
113
  default_print(output, value, pry_instance)
@@ -169,7 +171,7 @@ end
169
171
 
170
172
  # Print welcome message if enabled (only for Pry)
171
173
  if RailsConsolePro.config.show_welcome_message && defined?(Pry)
172
- pastel = ColorHelper.pastel
174
+ pastel = RailsConsolePro::PASTEL
173
175
  puts pastel.bright_green("🚀 Rails Console Pro Loaded!")
174
176
  puts pastel.cyan("📊 Use `schema ModelName`, `explain Query`, `stats ModelName`, `diff obj1, obj2`, or `navigate ModelName`")
175
177
  puts pastel.dim("💾 Export support: Use `.to_json`, `.to_yaml`, `.to_html`, or `.export_to_file` on any result")
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsConsolePro
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
6
6
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_console_pro
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
  - Harsh