check tap.yml gem configurations on gem
Reported by bahuvrihi | August 11th, 2008 @ 07:27 PM | in Tap-1.0.0
A configuration error results when a gem is installed with a tap.yml that specifies uninstalled gems. Obviously the best solution is to make the installed gem specify the other gems as dependencies. Add a rake task to execute before :gem to check:
task :check_tap_configuration do
if File.exists?("tap.yml")
require 'yaml'
if (hash = YAML.load_file("tap.yml")).kind_of?(Hash)
gemspec.dependencies.collect {|d| d.name }
...
end
end
end
task :gem => [:check_tap_configuration]
Comments and changes to this ticket
-
bahuvrihi May 25th, 2009 @ 12:28 PM
- Assigned user set to bahuvrihi
- State changed from new to invalid
Overly difficult solution... likely not a major problem and the user finds out one way or the other.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
A framework for making configurable, file-based tasks and workflows.