RiotGamesMinions / thor-scmversion

Thor tasks to manage a VERSION file based on SCM tags
MIT License
58 stars 22 forks source link

require 'thor/scmversion' not working at top of Thorfile #38

Open trekr5 opened 9 years ago

trekr5 commented 9 years ago

Hello,

Am a new user to Chef cookbooks and wanted to use your gem in order to replace tedious issue of updating cookbook version, in metadata.rb, by hand.

However followed your instructions and placed the require 'thor/scmversion' command at the top of my Thorfile (which is in my cookbook directory) and am getting the error "cannot load such file -- thor/scmversion" when running cookbook through GO CI. I installed the most current version of thor-scmversion (1.7.0) and am using Ruby 2.0.0.

Any ideas?

Thanks

zarry commented 9 years ago

@trekr5 I ran into this as well initially. I am not sure why but listing the gem in my gem file and doing a bundle install wasn't cutting it.

I manually ran gem install thor-scmversion and that seemed to do the trick. Just something worth trying.