Skip to content

Commit f92b3db

Browse files
Merge pull request gjtorikian#243 from jch/add-namespace-to-missing-deps-raise
Use entire namespace so exception constant is resolved :shipit:
2 parents 16dbb54 + f2e9ad9 commit f92b3db

10 files changed

+14
-10
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## 2.2.4
4+
5+
* Use entire namespace so MissingDependencyError constant is resolved [#243](https://github.com/jch/html-pipeline/pull/243)
6+
37
## 2.2.3
48

59
* raise MissingDependencyError instead of aborting on missing dependency [#241](https://github.com/jch/html-pipeline/pull/241)

lib/html/pipeline/autolink_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
begin
22
require "rinku"
33
rescue LoadError => _
4-
raise MissingDependencyError, "Missing dependency 'rinku' for AutolinkFilter. See README.md for details."
4+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'rinku' for AutolinkFilter. See README.md for details."
55
end
66

77
module HTML

lib/html/pipeline/email_reply_filter.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
begin
22
require "escape_utils"
33
rescue LoadError => _
4-
raise MissingDependencyError, "Missing dependency 'escape_utils' for EmailReplyFilter. See README.md for details."
4+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'escape_utils' for EmailReplyFilter. See README.md for details."
55
end
66

77
begin
88
require "email_reply_parser"
99
rescue LoadError => _
10-
raise MissingDependencyError, "Missing dependency 'email_reply_parser' for EmailReplyFilter. See README.md for details."
10+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'email_reply_parser' for EmailReplyFilter. See README.md for details."
1111
end
1212

1313
module HTML

lib/html/pipeline/emoji_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
begin
44
require "gemoji"
55
rescue LoadError => _
6-
raise MissingDependencyError, "Missing dependency 'gemoji' for EmojiFilter. See README.md for details."
6+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'gemoji' for EmojiFilter. See README.md for details."
77
end
88

99
module HTML

lib/html/pipeline/markdown_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
begin
22
require "github/markdown"
33
rescue LoadError => _
4-
raise MissingDependencyError, "Missing dependency 'github-markdown' for MarkdownFilter. See README.md for details."
4+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'github-markdown' for MarkdownFilter. See README.md for details."
55
end
66

77
module HTML

lib/html/pipeline/plain_text_input_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
begin
22
require "escape_utils"
33
rescue LoadError => _
4-
raise MissingDependencyError, "Missing dependency 'escape_utils' for PlainTextInputFilter. See README.md for details."
4+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'escape_utils' for PlainTextInputFilter. See README.md for details."
55
end
66

77
module HTML

lib/html/pipeline/sanitization_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
begin
22
require "sanitize"
33
rescue LoadError => _
4-
raise MissingDependencyError, "Missing dependency 'sanitize' for SanitizationFilter. See README.md for details."
4+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'sanitize' for SanitizationFilter. See README.md for details."
55
end
66

77
module HTML

lib/html/pipeline/syntax_highlight_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
begin
22
require "linguist"
33
rescue LoadError => _
4-
raise MissingDependencyError, "Missing dependency 'github-linguist' for SyntaxHighlightFilter. See README.md for details."
4+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'github-linguist' for SyntaxHighlightFilter. See README.md for details."
55
end
66

77
module HTML

lib/html/pipeline/textile_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
begin
22
require "redcloth"
33
rescue LoadError => _
4-
raise MissingDependencyError, "Missing dependency 'RedCloth' for TextileFilter. See README.md for details."
4+
raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'RedCloth' for TextileFilter. See README.md for details."
55
end
66

77
module HTML

lib/html/pipeline/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module HTML
22
class Pipeline
3-
VERSION = "2.2.3"
3+
VERSION = "2.2.4"
44
end
55
end

0 commit comments

Comments
 (0)