lib/howzit/buildnote.rb in howzit-2.1.15 vs lib/howzit/buildnote.rb in howzit-2.1.16
- old
+ new
@@ -19,11 +19,11 @@
create_note(prompt: true) if file.nil?
content = Util.read_file(file)
raise "{br}No content found in build note (#{file}){x}".c if content.nil? || content.empty?
- this_meta = content.split(/^#/)[0].strip.get_metadata
+ this_meta = content.split(/^#/)[0].strip.metadata
@metadata = meta.nil? ? this_meta : meta.merge(this_meta)
read_help(file)
end
@@ -361,11 +361,11 @@
##
def ensure_requirements(template)
t_leader = Util.read_file(template).split(/^#/)[0].strip
return unless t_leader.length.positive?
- t_meta = t_leader.get_metadata
+ t_meta = t_leader.metadata
return unless t_meta.key?('required')
required = t_meta['required'].strip.split(/\s*,\s*/)
required.each do |req|
@@ -554,10 +554,10 @@
template_topics = []
return template_topics if leader.empty?
- data = leader.get_metadata
+ data = leader.metadata
if data.key?('template')
templates = data['template'].strip.split(/\s*,\s*/)
template_topics.concat(gather_templates(templates))