Greetings!
It's been a while since I last had the opportunity to release a new version of the gem, designed to streamline your console operations and minimize typing.
The core concept remains unchanged: you specify lengthy constant names and assign shorter, more convenient aliases that suit your needs.
my_awesome_project:
definitions:
'Models::Users::CreditCard': 'MUCC'
my_another_project:
definitions:
'OtherLongConst': 'Short'
As per the configuration, you can now use MUCC
within your console environment.
However, in this latest version, I've opted to simplify the configuration on a per-project basis, eliminating the need to explicitly define namespaces. After all, if the gem can resolve it automatically, why burden the user with additional work, huh?
For detailed information on the new logic, please refer to the GitHub readme section here.
---
definitions:
'Models::Users::CreditCard: 'MUCC'
This makes MUCC
readily available. Additionally, I've refined the error handling logic to provide more precise and targeted feedback, aiding in troubleshooting if the configuration evaluation fails.
The gem is accessible on both RubyGems and GitHub. Feel free to contribute, engage in discussions, report issues, or simply give it a try โ you might just find the tool you've been seeking!
The earlier article discussing the development rationale behind the Lazy Names gem can be found here.
Top comments (0)