Skip to content

Commit

Permalink
Merge branch 'main' of github.com:puppetlabs/showoff
Browse files Browse the repository at this point in the history
  • Loading branch information
binford2k committed Feb 20, 2023
2 parents 4d26e07 + 97ec0f7 commit 0430158
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "bundler" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
2 changes: 1 addition & 1 deletion lib/showoff.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ def manage_client_cookies(presenter=false)
end
end

get %r{(?:image|file)/(.*)} do
get %r{/(?:image|file)/(.*)} do
path = params[:captures].first
full_path = File.join(settings.pres_dir, path)
if File.exist?(full_path)
Expand Down
2 changes: 1 addition & 1 deletion lib/showoff/compiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def profile
end
rescue LoadError
puts "ERROR: The #{renderer} markdown rendering engine does not appear to be installed correctly."
exit! 1
exit 1
end

profile
Expand Down
4 changes: 2 additions & 2 deletions lib/showoff_utils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def self.validate(config)
puts "Found #{errors.size} errors."
unless errors.empty?
errors.each { |err| puts " * #{err}" }
exit!
exit 1
end
end

Expand Down Expand Up @@ -715,7 +715,7 @@ def self.setup(dir_name)
end
rescue LoadError
puts "ERROR: The #{renderer} markdown rendering engine does not appear to be installed correctly."
exit! 1
exit 1
end
end

Expand Down

0 comments on commit 0430158

Please sign in to comment.