From 3a55c9ee4b8a53b44ff18927f72fd02d1eb7bf7a Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Tue, 17 Sep 2013 02:17:55 -0600 Subject: [PATCH] add dependency on activesupport to access xml_mini package --- html-pipeline.gemspec | 2 +- test/test_helper.rb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/html-pipeline.gemspec b/html-pipeline.gemspec index 0fd38289..154d209c 100644 --- a/html-pipeline.gemspec +++ b/html-pipeline.gemspec @@ -21,7 +21,7 @@ Gem::Specification.new do |gem| gem.add_dependency "sanitize", RUBY_VERSION < "1.9.2" ? [">= 2", "< 2.0.4"] : "~> 2.0" gem.add_dependency "rinku", "~> 1.7" gem.add_dependency "escape_utils", "~> 0.3" + gem.add_dependency "activesupport", RUBY_VERSION < "1.9.3" ? [">= 2", "< 4"] : ">= 2" - gem.add_development_dependency "activesupport", RUBY_VERSION < "1.9.3" ? [">= 2", "< 4"] : ">= 2" gem.add_development_dependency "github-linguist", "~> 2.6.2" end diff --git a/test/test_helper.rb b/test/test_helper.rb index bce1cb33..65e38906 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -2,6 +2,7 @@ require 'html/pipeline' require 'test/unit' +require 'active_support/core_ext/string' require 'active_support/core_ext/object/try' module TestHelpers @@ -35,4 +36,4 @@ def assert_equal_html(expected, actual) end end -Test::Unit::TestCase.send(:include, TestHelpers) \ No newline at end of file +Test::Unit::TestCase.send(:include, TestHelpers)