lib/plugins/puppet-debugger/input_responders/functions.rb in puppet-debugger-0.12.2 vs lib/plugins/puppet-debugger/input_responders/functions.rb in puppet-debugger-0.12.3

- old
+ new

@@ -73,10 +73,10 @@ summary_match = File.read(file, :encoding => "UTF-8").match(/@summary\s(.*)/) summary = summary_match[1] if summary_match # fetch the puppet version if this is a function from puppet gem captures = file.match(/(puppet-[\d\.]+)/) file_namespace = captures[1] if captures - mod_name = match.nil? ? file_namespace : match[:mod] + mod_name = file_namespace || match[:mod] full_name = namespace.nil? || namespace.empty? ? name : name.prepend("#{namespace}::") { namespace: namespace, summary: summary, mod_name: mod_name, name: name, full_name: full_name, file: file } end private