lib/sprout/ruby_feature.rb in sprout-1.0.26.pre vs lib/sprout/ruby_feature.rb in sprout-1.0.29.pre
- old
+ new
@@ -96,12 +96,14 @@
# empty class definitions to instances..
def update_registered_entities
end
def entity_for name_or_names, pkg_name, version_requirement
+ # These commented blocks help immensely when debugging
+ # loading and registration issues, please leave them here:
#puts "+++++++++++++++++++++++++++"
- #puts ">> entity_for #{name} pkg_name: #{pkg_name} version: #{version_requirement}"
+ #puts ">> entity_for #{name_or_names} pkg_name: #{pkg_name} version: #{version_requirement}"
#registered_entities.each do |entity|
#puts ">> entity: #{entity.name} pkg_name: #{entity.pkg_name} version: #{entity.pkg_version}"
#end
registered_entities.reverse.select do |entity|
satisfies_name?(entity, name_or_names) &&
@@ -170,7 +172,7 @@
# Mixin on the Rake::Task so
# that our concrete entities
# can interoperate with some
# knowledge of each other.
class Rake::Task
- attr_accessor :sprout_type
+ attr_accessor :sprout_entity
end