[rubygem-asciidoctor/f19] change include uri test to use non-https URI

Dan Allen mojavelinux at fedoraproject.org
Mon Sep 23 00:13:04 UTC 2013


commit 32abb79025bf2485ef085e66b1f5874199edbcd7
Author: Dan Allen <dan.j.allen at gmail.com>
Date:   Sun Sep 22 18:11:29 2013 -0600

    change include uri test to use non-https URI

 asciidoctor-fix-include-uri.patch |   19 +++++++++++++++++++
 rubygem-asciidoctor.spec          |    2 ++
 2 files changed, 21 insertions(+), 0 deletions(-)
---
diff --git a/asciidoctor-fix-include-uri.patch b/asciidoctor-fix-include-uri.patch
new file mode 100644
index 0000000..1573854
--- /dev/null
+++ b/asciidoctor-fix-include-uri.patch
@@ -0,0 +1,19 @@
+diff --git a/test/reader_test.rb b/test/reader_test.rb
+index abc708a..6eb08ef 100644
+--- a/test/reader_test.rb
++++ b/test/reader_test.rb
+@@ -502,12 +502,12 @@ include::fixtures/no-such-file.ad[]
+       test 'include macro can retrieve data from uri' do
+         input = <<-EOS
+ ....
+-include::https://raw.github.com/asciidoctor/asciidoctor/master/LICENSE[]
++include::http://asciidoctor.org/humans.txt[]
+ ....
+         EOS
+   
+         output = render_embedded_string input, :safe => :safe, :attributes => {'allow-uri-read' => ''}
+-        assert_match(/MIT/, output)
++        assert_match(/Asciidoctor/, output)
+       end
+   
+       test 'inaccessible uri referenced by include macro does not crash processor' do
diff --git a/rubygem-asciidoctor.spec b/rubygem-asciidoctor.spec
index 735bbcb..4241c4a 100644
--- a/rubygem-asciidoctor.spec
+++ b/rubygem-asciidoctor.spec
@@ -9,6 +9,7 @@ Group: Development/Languages
 License: MIT
 URL: http://github.com/asciidoctor/asciidoctor
 Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
+Patch0: asciidoctor-fix-include-uri.patch 
 %if 0%{?rhel} > 6 || 0%{?fedora} > 18
 Requires: ruby(release)
 BuildRequires: ruby(release)
@@ -49,6 +50,7 @@ Documentation for %{name}
 gem unpack -V %{SOURCE0}
 %setup -q -D -T -n %{gem_name}-%{version}
 gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
+%patch0 -p1
 
 %build
 gem build %{gem_name}.gemspec


More information about the scm-commits mailing list