lib/evertils/helpers/formatting.rb in evertils-0.3.9 vs lib/evertils/helpers/formatting.rb in evertils-0.3.10
- old
+ new
@@ -75,18 +75,18 @@
# @since 0.3.1
def load_template(type)
file_name = type.to_s.downcase.gsub(/\s/, '-')
installed_dir = Gem::Specification.find_by_name('evertils').gem_dir
local_installed_dir = "#{Dir.home}/.evertils/templates/"
- template_file = "#{installed_dir}/#{file_name}.enml"
+ template_file = "#{installed_dir}/lib/evertils/configs/templates/#{file_name}.enml"
if Dir.exist? local_installed_dir
template_file = "#{local_installed_dir}#{file_name}.enml"
# local config dir exists but the requested template does not, use
# the default template for this type
unless File.exist? template_file
- template_file = "#{installed_dir}/#{file_name}.enml"
+ template_file = "#{installed_dir}/lib/evertils/configs/templates/#{file_name}.enml"
end
end
template_file
end