Skip to content

Commit

Permalink
Fix BaseDepDefiner#provided? for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoskings committed Feb 1, 2011
1 parent d60f10c commit 2d1a54b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/babushka/dep_runners/base_dep_runner.rb
Expand Up @@ -15,8 +15,9 @@ def set_version version_str
merge :versions, name => version_str
end

# TODO: solve cmd/app and string/version handling better.
def provided? provided_list = provides
apps, command_names = [*provided_list].partition {|i| i[/\.app\/?$/] }
apps, command_names = [*provided_list].partition {|i| i.to_s[/\.app\/?$/] }
commands = command_names.versions
apps_in_path?(apps) and cmds_in_path?(commands) and matching_versions?(commands)
end
Expand Down

0 comments on commit 2d1a54b

Please sign in to comment.