File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -16,5 +16,5 @@ group :rubocop do
16
16
end
17
17
18
18
# specify gem versions for old rubies
19
- gem "nokogiri" , RUBY_VERSION < "2.1" ? "~> 1.6.0" : ">= 1.7"
20
- gem "activesupport" , RUBY_VERSION < "2.2.2" ? "~> 4.2.0" : ">= 5"
19
+ gem "nokogiri" , ">= 1.7"
20
+ gem "activesupport" , ">= 5"
Original file line number Diff line number Diff line change @@ -728,8 +728,6 @@ def test_abbr_attribute
728
728
end
729
729
730
730
def test_uri_escaping_of_href_attr_in_a_tag_in_safe_list_sanitizer
731
- skip if RUBY_VERSION < "2.3"
732
-
733
731
html = %{<a href='examp<!--" unsafeattr=foo()>-->le.com'>test</a>}
734
732
735
733
text = safe_list_sanitize ( html )
@@ -747,8 +745,6 @@ def test_uri_escaping_of_href_attr_in_a_tag_in_safe_list_sanitizer
747
745
end
748
746
749
747
def test_uri_escaping_of_src_attr_in_a_tag_in_safe_list_sanitizer
750
- skip if RUBY_VERSION < "2.3"
751
-
752
748
html = %{<a src='examp<!--" unsafeattr=foo()>-->le.com'>test</a>}
753
749
754
750
text = safe_list_sanitize ( html )
@@ -766,8 +762,6 @@ def test_uri_escaping_of_src_attr_in_a_tag_in_safe_list_sanitizer
766
762
end
767
763
768
764
def test_uri_escaping_of_name_attr_in_a_tag_in_safe_list_sanitizer
769
- skip if RUBY_VERSION < "2.3"
770
-
771
765
html = %{<a name='examp<!--" unsafeattr=foo()>-->le.com'>test</a>}
772
766
773
767
text = safe_list_sanitize ( html )
@@ -785,8 +779,6 @@ def test_uri_escaping_of_name_attr_in_a_tag_in_safe_list_sanitizer
785
779
end
786
780
787
781
def test_uri_escaping_of_name_action_in_a_tag_in_safe_list_sanitizer
788
- skip if RUBY_VERSION < "2.3"
789
-
790
782
html = %{<a action='examp<!--" unsafeattr=foo()>-->le.com'>test</a>}
791
783
792
784
text = safe_list_sanitize ( html , attributes : [ "action" ] )
You can’t perform that action at this time.
0 commit comments