update for 0.0.9 release

This commit is contained in:
Dan Allen 2013-01-19 15:40:50 -07:00
parent 5e12bae25a
commit 5ac83d7612
5 changed files with 29 additions and 88 deletions

View File

@ -35,7 +35,7 @@ You'll also need to create all the required folders:
Next, grab the Asciidoctor gem (the sources) and put it into the `$HOME/rpmbuild/SOURCES` directory: Next, grab the Asciidoctor gem (the sources) and put it into the `$HOME/rpmbuild/SOURCES` directory:
wget -O $HOME/rpmbuild/SOURCES/asciidoctor-0.0.8.gem http://rubygems.org/gems/asciidoctor-0.0.8.gem wget -O $HOME/rpmbuild/SOURCES/asciidoctor-0.0.9.gem http://rubygems.org/gems/asciidoctor-0.0.9.gem
Finally, copy the `.patch` files from this repository to the same directory: Finally, copy the `.patch` files from this repository to the same directory:
@ -55,7 +55,7 @@ If all goes well, both the binary and source RPMs will emerge in the `$HOME/rpmb
There's nothing special about installing this RPM. I recommend using `yum` because it will install any dependencies that the package requires (though you should already have them if you built the RPM). There's nothing special about installing this RPM. I recommend using `yum` because it will install any dependencies that the package requires (though you should already have them if you built the RPM).
yum localinstall $HOME/rpmbuild/RPMS/noarch/rubygem-asciidoctor-0.0.8.rpm yum localinstall $HOME/rpmbuild/RPMS/noarch/rubygem-asciidoctor-0.0.9.rpm
Now, it's time to start using Asciidoctor! Now, it's time to start using Asciidoctor!

View File

@ -1,54 +1,22 @@
diff --git a/test/attributes_test.rb b/test/attributes_test.rb diff --git a/test/attributes_test.rb b/test/attributes_test.rb
index ac2d6a5..ae28d9c 100644 index 3e15eac..b683667 100644
--- a/test/attributes_test.rb --- a/test/attributes_test.rb
+++ b/test/attributes_test.rb +++ b/test/attributes_test.rb
@@ -67,7 +67,7 @@ context "Attributes" do @@ -177,7 +177,7 @@ To use {gem_name}, the first thing to do is to import it in your Ruby source fil
end end
test "renders attribute until it's deleted" do test 'renders attribute until it is deleted' do
- pending "Not working yet (will require adding element-specific attributes or early attr substitution during parsing)" - pending 'This requires that we consume attributes as the document is being lexed, not up front'
+ #pending "Not working yet (will require adding element-specific attributes or early attr substitution during parsing)" + #pending 'This requires that we consume attributes as the document is being lexed, not up front'
# html = render_string(":foo: bar\nCrossing the {foo}\n\n:foo!:\nBelly up to the {foo}") #output = render_string(":foo: bar\n\nCrossing the {foo}\n\n:foo!:\nBelly up to the {foo}")
# result = Nokogiri::HTML(html) # result = Nokogiri::HTML(html)
# assert_match /Crossing the bar/, result.css("p").first.content.strip # assert_match /Crossing the bar/, result.css("p").first.content.strip
@@ -84,15 +84,15 @@ context "Attributes" do
html = render_string(":foo: bar\nThis is a +++{foo}+++ day.")
result = Nokogiri::HTML(html)
#assert_equal 'This is a {foo} day.', result.css('p').first.content.strip
- pending "Don't yet have inline passthrough working"
+ #pending "Don't yet have inline passthrough working"
end
test "doesn't substitute attributes inside code blocks" do
- pending "whut?"
+ #pending "whut?"
end
test "doesn't substitute attributes inside literal blocks" do
- pending "whut?"
+ #pending "whut?"
end
context "Block attributes" do
diff --git a/test/reader_test.rb b/test/reader_test.rb
index 095d98f..af3912f 100644
--- a/test/reader_test.rb
+++ b/test/reader_test.rb
@@ -45,7 +45,7 @@ class ReaderTest < Test::Unit::TestCase
end
def test_grab_lines_until
- pending "Not tested yet"
+ #pending "Not tested yet"
end
def test_sanitize_attribute_name
diff --git a/test/test_helper.rb b/test/test_helper.rb diff --git a/test/test_helper.rb b/test/test_helper.rb
index b9cad90..f7b099b 100644 index 3b27218..964ff59 100644
--- a/test/test_helper.rb --- a/test/test_helper.rb
+++ b/test/test_helper.rb +++ b/test/test_helper.rb
@@ -6,7 +6,7 @@ require "#{File.expand_path(File.dirname(__FILE__))}/../lib/asciidoctor.rb" @@ -10,7 +10,7 @@ rescue LoadError
require 'mocha' end
require 'htmlentities' require 'htmlentities'
require 'nokogiri' require 'nokogiri'
-require 'pending' -require 'pending'
@ -56,16 +24,3 @@ index b9cad90..f7b099b 100644
ENV['SUPPRESS_DEBUG'] ||= 'true' ENV['SUPPRESS_DEBUG'] ||= 'true'
diff --git a/test/text_test.rb b/test/text_test.rb
index f892398..ca1e955 100644
--- a/test/text_test.rb
+++ b/test/text_test.rb
@@ -2,7 +2,7 @@ require 'test_helper'
context "Text" do
test 'escaped text markup' do
- pending "Not done yet"
+ #pending "Not done yet"
end
test "line breaks" do

View File

@ -1,13 +0,0 @@
diff --git a/test/test_helper.rb b/test/test_helper.rb
index a6577e8..b9cad90 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -3,7 +3,7 @@ require 'test/unit'
require "#{File.expand_path(File.dirname(__FILE__))}/../lib/asciidoctor.rb"
-require 'mocha/setup'
+require 'mocha'
require 'htmlentities'
require 'nokogiri'
require 'pending'

View File

@ -1,35 +1,35 @@
%global gem_name asciidoctor %global gem_name asciidoctor
%global rubyabi 1.9.1 %global rubyabi 1.9.1
Summary: AsciiDoc implementation in Ruby that uses Tilt-supported templates to generate output Summary: AsciiDoc implementation in Ruby
Name: rubygem-%{gem_name} Name: rubygem-%{gem_name}
Version: 0.0.8 Version: 0.0.9
Release: 1%{?dist} Release: 1%{?dist}
Group: Development/Languages Group: Development/Languages
License: MIT License: MIT
URL: http://github.com/erebor/asciidoctor URL: http://github.com/erebor/asciidoctor
Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem
Patch0: asciidoctor-modify-mocha-import.patch Patch0: asciidoctor-disable-use-of-pending.patch
Patch1: asciidoctor-disable-use-of-pending.patch
Requires: ruby(abi) = %{rubyabi} Requires: ruby(abi) = %{rubyabi}
Requires: ruby(rubygems) Requires: ruby(rubygems)
Requires: ruby Requires: ruby
Requires: rubygem(tilt)
BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: ruby(abi) = %{rubyabi}
BuildRequires: rubygems-devel BuildRequires: rubygems-devel
BuildRequires: ruby BuildRequires: ruby
BuildRequires: rubygem(tilt) BuildRequires: rubygem(coderay)
BuildRequires: rubygem(erubis)
BuildRequires: rubygem(htmlentities)
BuildRequires: rubygem(mocha) BuildRequires: rubygem(mocha)
BuildRequires: rubygem(nokogiri) BuildRequires: rubygem(nokogiri)
BuildRequires: rubygem(htmlentities)
# using patch to comment lines where pending is used # using patch to comment lines where pending is used
#BuildRequires: rubygem(pending) #BuildRequires: rubygem(pending)
BuildArch: noarch BuildArch: noarch
Provides: rubygem(%{gem_name}) = %{version} Provides: rubygem(%{gem_name}) = %{version}
%description %description
A pure-Ruby processor for parsing AsciiDoc documents or strings and rendering A pure AsciiDoc implementation in Ruby that can parse AsciiDoc files or strings
them as HTML and other formats using Tilt-based templates. and render them as HTML, DocBook and other output formats using Tilt-supported
templates.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
@ -44,7 +44,6 @@ Documentation for %{name}
gem unpack -V %{SOURCE0} gem unpack -V %{SOURCE0}
%setup -q -D -T -n %{gem_name}-%{version} %setup -q -D -T -n %{gem_name}-%{version}
%patch0 -p1 %patch0 -p1
%patch1 -p1
%build %build
rdoc -o rdoc --charset=UTF-8 rdoc -o rdoc --charset=UTF-8
@ -93,5 +92,5 @@ cp -a rdoc/* \
%doc %{gem_docdir} %doc %{gem_docdir}
%changelog %changelog
* Wed Dec 19 2012 Dan Allen <dan.j.allen@gmail.com> - 0.0.8-1 * Wed Jan 20 2013 Dan Allen <dan.j.allen@gmail.com> - 0.0.9-1
- Initial package - Initial package

View File

@ -4,4 +4,4 @@
require 'asciidoctor' require 'asciidoctor'
puts Asciidoctor::Document.new("= Asciidoctor\n\nI'm **alive**!".lines.entries).render puts Asciidoctor::Document.new("= Asciidoctor\n\nI'm **alive**!".lines.entries, :compact => true).render