Skip to content

Conversation

@maetl
Copy link
Contributor

@maetl maetl commented Apr 4, 2016

It looks like Extlib is being included specifically for its string transformations API. Inflecto is a smaller Gem which provides the same functionality and means that the whole of Extlib doesn’t need to be loaded to get a small subset of features.

Another consequence is that there’s no monkeypatching of the core string class.

Warning: I need to test this more thoroughly to confirm that it works. Just want to get feedback on whether this is a good idea or not.

It looks like Extlib is being included specifically for its string
transformations API. Inflecto is a smaller Gem which provides the same
functionality and means that the whole of Extlib doesn’t need to be
loaded to get a small subset of features.
bootstrapper = Pathname.new(__FILE__).dirname.join('bootstrap.rb').expand_path

binary = Smith.config.vm[agent_process.name.snake_case.to_sym] || Smith.config.vm.agent_default
binary = Smith.config.vm[Inflecto.undercore(agent_process.name).to_sym] || Smith.config.vm.agent_default
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

underscore ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants