lib/docman/docroot_config.rb in docman-0.0.14 vs lib/docman/docroot_config.rb in docman-0.0.15
- old
+ new
@@ -79,10 +79,10 @@
def states_dependin_on(name, version)
raise "There is no project with name '#{name}' exists in config" unless @names.has_key? name
states = {}
- @names[name]['states'].each do |state, info|
+ @names[name].states.each do |state, info|
states[state] = info if info['version'] == version
end
states
end
\ No newline at end of file