Skip to content

Commit a02673b

Browse files
committed
Merge pull request gjtorikian#208 from jch/feature/soften-nokogiri-dependency
Soften Nokogiri dependency to versions ">= 1.4"
2 parents b73afbe + c26c429 commit a02673b

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
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.1
4+
5+
* Soften Nokogiri dependency to versions ">= 1.4" [#208](https://github.com/jch/html-pipeline/pull/208)
6+
37
## 2.2.0
48

59
* Only allow cite attribute on blockquote and restrict schemes [#223](https://github.com/jch/html-pipeline/pull/223)

html-pipeline.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Gem::Specification.new do |gem|
1515
gem.test_files = gem.files.grep(%r{^test})
1616
gem.require_paths = ["lib"]
1717

18-
gem.add_dependency "nokogiri", [">= 1.4", "<= 1.6.5"]
18+
gem.add_dependency "nokogiri", ">= 1.4"
1919
gem.add_dependency "activesupport", [">= 2", "< 5"]
2020

2121
gem.post_install_message = <<msg

lib/html/pipeline/@mention_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def self.mentioned_logins_in(text, username_pattern=UsernamePattern)
7070
def call
7171
result[:mentioned_usernames] ||= []
7272

73-
doc.search('text()').each do |node|
73+
doc.search('.//text()').each do |node|
7474
content = node.to_html
7575
next if !content.include?('@')
7676
next if has_ancestor?(node, IGNORE_PARENTS)

lib/html/pipeline/emoji_filter.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class EmojiFilter < Filter
1919
DEFAULT_IGNORED_ANCESTOR_TAGS = %w(pre code tt).freeze
2020

2121
def call
22-
doc.search('text()').each do |node|
22+
doc.search('.//text()').each do |node|
2323
content = node.to_html
2424
next unless content.include?(':')
2525
next if has_ancestor?(node, ignored_ancestor_tags)

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.0"
3+
VERSION = "2.2.1"
44
end
55
end

0 commit comments

Comments
 (0)