lib/docman/docroot_config.rb in docman-0.0.8 vs lib/docman/docroot_config.rb in docman-0.0.9
- old
+ new
@@ -76,9 +76,11 @@
def info_by(name)
@names[name]
end
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|
states[state] = info if info['version'] == version
end
states
\ No newline at end of file