Skip to content

Commit

Permalink
Deprecate creole templates as they require modifying frozen string li…
Browse files Browse the repository at this point in the history
…terals

It's a shame I didn't catch this earlier, due to warnings being silenced
for creole templates, but better late than never.  Creole's last commit
was 10 years ago, and it's last release was 12 years ago, so it appears
dead.
  • Loading branch information
jeremyevans committed Dec 18, 2024
1 parent 5dc13d1 commit 18b58ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## master

* Deprecate creole templates as they require modifying frozen string literals (jeremyevans)
* Remove deprecated erubis, wikicloth, and maruku templates (jeremyevans)
* Avoid spurious frozen string literal deprecation warning on Ruby 3.4.0-preview2+ (jeremyevans)

Expand Down
2 changes: 2 additions & 0 deletions lib/tilt/creole.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
require_relative 'template'
require 'creole'

warn 'tilt/creole is deprecated, as creole requires modifying string literals', uplevel: 1

allowed_opts = [:allowed_schemes, :extensions, :no_escape].freeze

# Creole implementation. See: http://www.wikicreole.org/
Expand Down

0 comments on commit 18b58ff

Please sign in to comment.