Skip to content

Commit

Permalink
coradoc/input/html: Add compatibility shim
Browse files Browse the repository at this point in the history
  • Loading branch information
hmdne committed Sep 18, 2024
1 parent f7b017b commit 46053ca
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/coradoc/reverse_adoc.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
warn <<~WARN
Deprecated: coradoc/reverse_adoc has been renamed to coradoc/input/html.
| Please update your references from:
| require 'coradoc/reverse_adoc'
| To:
| require 'coradoc/input/html'
|
| You are referencing an old require here:
| #{caller.join("\n| ")}
|
| Please also ensure that you replace all references to Coradoc::ReverseAdoc
| in your code with Coradoc::Input::HTML.
WARN

require 'coradoc'
require 'coradoc/input/html'

Coradoc::ReverseAdoc = Coradoc::Input::HTML

0 comments on commit 46053ca

Please sign in to comment.