berkshelf / ridley

A reliable Chef API client with a clean syntax
Other
231 stars 85 forks source link

support source_url, issues_url #289

Closed jtimberman closed 9 years ago

jtimberman commented 9 years ago

In Chef 12, two new cookbook metadata methods for specifying the source and issues URLs are available.

These are not yet supported by Ridley:

An error occurred while reading the Berksfile:

  Could not parse `/Users/jtimberman/Development/cookbooks/mosh-cookbook/metadata.rb': undefined method `source_url' for #<Ridley::Chef::Cookbook::Metadata:0x007fbb6d0a5368>

Adding this guard around the methods works around the problem for now:

unless defined?(Ridley::Chef::Cookbook::Metadata)
  source_url       'https://github.com/jtimberman/mosh-cookbook'
  issues_url       'https://github.com/jtimberman/mosh-cookbook/issues'
end
reset commented 9 years ago

@jtimberman thanks so much for the heads up!

jtimberman commented 9 years ago

@reset Thanks so much for the quick release! :heart: :cake: :icecream: