mdsol / dice_bag

DiceBag is a library of rake tasks for configuring web apps in the style of The Twelve-Factor App.
MIT License
19 stars 4 forks source link

undefined method 'starts_with?' for String #81

Closed darena-mdsol closed 7 years ago

darena-mdsol commented 7 years ago

https://github.com/mdsol/dice_bag/blob/817ec00de5e0d9cd4657598e5b6fafb85e9f9907/lib/dice_bag/available_templates.rb#L30

while trying to generate templates for mauth-client gem using `bundle exec rake config:generate_for_gems mauth-client, I get this error:

rake aborted! NoMethodError: undefined method `starts_with?' for # Did you mean? start_with?

Rails 5 api only mode is installed.

clabrunda commented 7 years ago

Were you able to get this working by changing it to start_with? I would be happy to review and merge such a change, as long as it also includes:

# Dice bag requires ruby 1.8.7 or greater.
s.required_ruby_version = '>= 1.8.7'

added to dice_bag.gemspec.

darena-mdsol commented 7 years ago

I did exactly that and the task ran successfully. I make the change and submit a PR.

jcarres-mdsol commented 7 years ago

Solved by #82