rails_console_pro 0.1.0 → 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 +4 -4
- data/CONTRIBUTING.md +1 -1
- data/QUICK_START.md +1 -1
- data/README.md +2 -2
- data/lib/generators/rails_console_pro/templates/rails_console_pro.rb +1 -1
- data/lib/rails_console_pro/commands/base_command.rb +1 -1
- data/lib/rails_console_pro/initializer.rb +6 -4
- data/lib/rails_console_pro/version.rb +1 -1
- data/rails_console_pro.gemspec +4 -5
- metadata +11 -9
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 212f6c9da69da95f89adde09139086ead382077988260cf4c348a3e70e2aa27a
|
|
4
|
+
data.tar.gz: 4bc720a83588b51498f89986a6f5563a7a6da761e2060808048213081d678116
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6544050d3a2ac2ae62d763e7ba9747eb13fcb96119ed2c874c44b2749b5849c10b38e32fdfea1ca5411d04290b112cc6b110331408f1677ff9e7c390289f834
|
|
7
|
+
data.tar.gz: e9b7c36b8659b0e27a426a38157328e7c397aec326f84a2f7ae6caad584f4d56cdb8b31c53c8d8906bcbf84304840aa1b46d896d18ee88035c07f79b099931a5
|
data/CONTRIBUTING.md
CHANGED
|
@@ -6,7 +6,7 @@ Thank you for your interest in contributing to Rails Console Pro!
|
|
|
6
6
|
|
|
7
7
|
1. **Fork and clone the repository:**
|
|
8
8
|
```bash
|
|
9
|
-
git clone https://github.com/
|
|
9
|
+
git clone https://github.com/harshumaretiya/rails_console_pro.git
|
|
10
10
|
cd rails_console_pro
|
|
11
11
|
```
|
|
12
12
|
|
data/QUICK_START.md
CHANGED
|
@@ -108,5 +108,5 @@ rails generate rails_console_pro:install
|
|
|
108
108
|
## Need Help?
|
|
109
109
|
|
|
110
110
|
- Full documentation: See [README.md](README.md)
|
|
111
|
-
- Issues: https://github.com/
|
|
111
|
+
- Issues: https://github.com/harshumaretiya/rails_console_pro/issues
|
|
112
112
|
|
data/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Rails Console Pro
|
|
2
2
|
|
|
3
3
|
[](https://badge.fury.io/rb/rails_console_pro)
|
|
4
|
-
[](https://github.com/harshumaretiya/rails_console_pro/actions)
|
|
5
5
|
|
|
6
6
|
**Enhanced Rails console with powerful debugging tools and beautiful formatting.**
|
|
7
7
|
|
|
@@ -111,7 +111,7 @@ end
|
|
|
111
111
|
|
|
112
112
|
## 🤝 Contributing
|
|
113
113
|
|
|
114
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
114
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/harshumaretiya/rails_console_pro.
|
|
115
115
|
|
|
116
116
|
## 📝 License
|
|
117
117
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
# Rails Console Pro Configuration
|
|
4
|
-
# See https://github.com/
|
|
4
|
+
# See https://github.com/harshumaretiya/rails_console_pro for documentation
|
|
5
5
|
|
|
6
6
|
RailsConsolePro.configure do |config|
|
|
7
7
|
# Enable/disable features
|
|
@@ -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 =
|
|
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 =
|
|
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 =
|
|
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")
|
data/rails_console_pro.gemspec
CHANGED
|
@@ -20,13 +20,12 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
- Export to JSON, YAML, and HTML
|
|
21
21
|
- Smart pagination for large collections
|
|
22
22
|
DESC
|
|
23
|
-
spec.homepage = "https://github.com/
|
|
23
|
+
spec.homepage = "https://github.com/harshumaretiya/rails_console_pro"
|
|
24
24
|
spec.license = "MIT"
|
|
25
25
|
spec.required_ruby_version = ">= 3.0.0"
|
|
26
26
|
|
|
27
|
-
spec.metadata["
|
|
28
|
-
spec.metadata["
|
|
29
|
-
spec.metadata["changelog_uri"] = "https://github.com/yourusername/rails_console_pro/blob/main/CHANGELOG.md"
|
|
27
|
+
spec.metadata["source_code_uri"] = "https://github.com/harshumaretiya/rails_console_pro"
|
|
28
|
+
spec.metadata["changelog_uri"] = "https://github.com/harshumaretiya/rails_console_pro/blob/main/CHANGELOG.md"
|
|
30
29
|
spec.metadata["rubygems_mfa_required"] = "true"
|
|
31
30
|
|
|
32
31
|
# Specify which files should be added to the gem when it is released.
|
|
@@ -54,7 +53,7 @@ Gem::Specification.new do |spec|
|
|
|
54
53
|
spec.add_development_dependency "bundler", "~> 2.0"
|
|
55
54
|
spec.add_development_dependency "rake", "~> 13.0"
|
|
56
55
|
spec.add_development_dependency "rspec", "~> 3.12"
|
|
57
|
-
spec.add_development_dependency "rails", "
|
|
56
|
+
spec.add_development_dependency "rails", "~> 6.0"
|
|
58
57
|
spec.add_development_dependency "sqlite3", "~> 2.1"
|
|
59
58
|
end
|
|
60
59
|
|
metadata
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rails_console_pro
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Harsh
|
|
8
|
+
autorequire:
|
|
8
9
|
bindir: exe
|
|
9
10
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
+
date: 2025-11-07 00:00:00.000000000 Z
|
|
11
12
|
dependencies:
|
|
12
13
|
- !ruby/object:Gem::Dependency
|
|
13
14
|
name: pastel
|
|
@@ -103,14 +104,14 @@ dependencies:
|
|
|
103
104
|
name: rails
|
|
104
105
|
requirement: !ruby/object:Gem::Requirement
|
|
105
106
|
requirements:
|
|
106
|
-
- - "
|
|
107
|
+
- - "~>"
|
|
107
108
|
- !ruby/object:Gem::Version
|
|
108
109
|
version: '6.0'
|
|
109
110
|
type: :development
|
|
110
111
|
prerelease: false
|
|
111
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
112
113
|
requirements:
|
|
113
|
-
- - "
|
|
114
|
+
- - "~>"
|
|
114
115
|
- !ruby/object:Gem::Version
|
|
115
116
|
version: '6.0'
|
|
116
117
|
- !ruby/object:Gem::Dependency
|
|
@@ -211,14 +212,14 @@ files:
|
|
|
211
212
|
- lib/rails_console_pro/version.rb
|
|
212
213
|
- lib/tasks/rails_console_pro.rake
|
|
213
214
|
- rails_console_pro.gemspec
|
|
214
|
-
homepage: https://github.com/
|
|
215
|
+
homepage: https://github.com/harshumaretiya/rails_console_pro
|
|
215
216
|
licenses:
|
|
216
217
|
- MIT
|
|
217
218
|
metadata:
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
changelog_uri: https://github.com/yourusername/rails_console_pro/blob/main/CHANGELOG.md
|
|
219
|
+
source_code_uri: https://github.com/harshumaretiya/rails_console_pro
|
|
220
|
+
changelog_uri: https://github.com/harshumaretiya/rails_console_pro/blob/main/CHANGELOG.md
|
|
221
221
|
rubygems_mfa_required: 'true'
|
|
222
|
+
post_install_message:
|
|
222
223
|
rdoc_options: []
|
|
223
224
|
require_paths:
|
|
224
225
|
- lib
|
|
@@ -233,7 +234,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
233
234
|
- !ruby/object:Gem::Version
|
|
234
235
|
version: '0'
|
|
235
236
|
requirements: []
|
|
236
|
-
rubygems_version: 3.
|
|
237
|
+
rubygems_version: 3.1.6
|
|
238
|
+
signing_key:
|
|
237
239
|
specification_version: 4
|
|
238
240
|
summary: Enhanced Rails console with schema inspection, SQL explain, association navigation,
|
|
239
241
|
and beautiful formatting
|