- Inspector extracts callbacks and validators from any AR model, resolves source locations, and filters Rails internals - CLI: `whetrails inspect <ModelName>` boots Rails and renders chain - Formatter produces clean lifecycle-ordered terminal output - Order model added as development fixture Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
805 B
Ruby
21 lines
805 B
Ruby
require_relative "lib/whetrails/version"
|
|
|
|
Gem::Specification.new do |spec|
|
|
spec.name = "whetrails"
|
|
spec.version = Whetrails::VERSION
|
|
spec.authors = ["Bill Holcombe"]
|
|
spec.email = ["billholcombe30@gmail.com"]
|
|
spec.summary = "Makes ActiveRecord callback and validation chains visible"
|
|
spec.description = "Inspects Rails models and surfaces the full ordered callback and validation chain, including source locations and conditions."
|
|
spec.homepage = "https://github.com/whetforge/whetrails"
|
|
spec.license = "MIT"
|
|
|
|
spec.required_ruby_version = ">= 3.0"
|
|
|
|
spec.files = Dir["lib/**/*.rb", "exe/*", "LICENSE", "README.md"]
|
|
spec.executables = ["whetrails"]
|
|
|
|
spec.add_dependency "railties", ">= 7.0"
|
|
spec.add_dependency "activerecord", ">= 7.0"
|
|
end
|