Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

check tap.yml gem configurations on gem

#81

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]

Reported by bahuvrihi · August 11th, 2008 @ 07:27 PM

State: invalid
Milestone: Tap-1.0.0
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi
    • 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.

    May 25th, 2009 @ 12:28 PM

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.