lib/puppet-debugger/code/code_file.rb in puppet-debugger-0.19.0 vs lib/puppet-debugger/code/code_file.rb in puppet-debugger-1.0.0

- old
+ new

@@ -1,6 +1,5 @@ - # frozen_string_literal: true class CodeFile class SourceNotFound < RuntimeError end @@ -8,22 +7,22 @@ DEFAULT_EXT = '.pp' # List of all supported languages. # @return [Hash] EXTENSIONS = { - %w[.py] => :python, - %w[.js] => :javascript, - %w[.pp] => :puppet, - %w[.css] => :css, - %w[.xml] => :xml, - %w[.php] => :php, - %w[.html] => :html, - %w[.diff] => :diff, - %w[.java] => :java, - %w[.json] => :json, - %w[.c .h] => :c, - %w[.rhtml] => :rhtml, + %w[.py] => :python, + %w[.js] => :javascript, + %w[.pp] => :puppet, + %w[.css] => :css, + %w[.xml] => :xml, + %w[.php] => :php, + %w[.html] => :html, + %w[.diff] => :diff, + %w[.java] => :java, + %w[.json] => :json, + %w[.c .h] => :c, + %w[.rhtml] => :rhtml, %w[.yaml .yml] => :yaml, %w[.cpp .hpp .cc .h cxx] => :cpp, %w[.rb .ru .irbrc .gemspec .pryrc] => :ruby }.freeze @@ -94,6 +93,6 @@ # @return [String] def from_load_path $LOAD_PATH.map { |path| File.expand_path(@filename, path) } end - end +end