RedCloth 4.1.1-x86-mswin32-60 → 4.1.9-x86-mswin32-60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of RedCloth might be problematic. Click here for more details.
- data/CHANGELOG +36 -0
- data/COPYING +1 -1
- data/README +32 -17
- data/Rakefile +1 -0
- data/RedCloth.gemspec +4 -7
- data/ext/redcloth_scan/redcloth.h +53 -22
- data/ext/redcloth_scan/redcloth_attributes.c.rl +2 -3
- data/ext/redcloth_scan/redcloth_attributes.java.rl +5 -6
- data/ext/redcloth_scan/redcloth_attributes.rl +2 -2
- data/ext/redcloth_scan/redcloth_common.rl +5 -1
- data/ext/redcloth_scan/redcloth_inline.c.rl +48 -14
- data/ext/redcloth_scan/redcloth_inline.java.rl +36 -4
- data/ext/redcloth_scan/redcloth_inline.rl +11 -12
- data/ext/redcloth_scan/redcloth_scan.c.rl +12 -14
- data/ext/redcloth_scan/redcloth_scan.java.rl +25 -3
- data/ext/redcloth_scan/redcloth_scan.rl +7 -12
- data/lib/redcloth/formatters/base.rb +26 -20
- data/lib/redcloth/formatters/html.rb +22 -30
- data/lib/redcloth/formatters/latex.rb +45 -17
- data/lib/redcloth/textile_doc.rb +1 -3
- data/lib/redcloth/version.rb +1 -1
- data/lib/redcloth_scan.so +0 -0
- data/test/basic.yml +16 -2
- data/test/code.yml +6 -7
- data/test/html.yml +15 -1
- data/test/images.yml +23 -0
- data/test/links.yml +27 -1
- data/test/lists.yml +19 -1
- data/test/table.yml +73 -4
- data/test/test_custom_tags.rb +13 -1
- data/test/test_erb.rb +1 -1
- data/test/test_extensions.rb +1 -1
- data/test/test_formatters.rb +1 -1
- data/test/test_parser.rb +1 -1
- data/test/test_restrictions.rb +1 -1
- data/test/textism.yml +1 -1
- data/test/threshold.yml +1 -3
- data/test/validate_fixtures.rb +2 -1
- metadata +6 -15
data/test/test_custom_tags.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require 'helper'
|
3
|
+
require File.join(File.dirname(__FILE__), 'helper')
|
4
4
|
|
5
5
|
class TestCustomTags < Test::Unit::TestCase
|
6
6
|
|
@@ -43,4 +43,16 @@ class TestCustomTags < Test::Unit::TestCase
|
|
43
43
|
|
44
44
|
assert_equal "<p>fig()>[no]{color:red}. 1.1 | img.jpg</p>", str
|
45
45
|
end
|
46
|
+
|
47
|
+
# We don't want to call just any String method!
|
48
|
+
def test_does_not_call_standard_methods
|
49
|
+
r = RedCloth.new "next. "
|
50
|
+
r.extend FigureTag
|
51
|
+
str = r.to_html
|
52
|
+
|
53
|
+
html = "<p>next. </p>"
|
54
|
+
|
55
|
+
assert_equal(html, str)
|
56
|
+
end
|
57
|
+
|
46
58
|
end
|
data/test/test_erb.rb
CHANGED
data/test/test_extensions.rb
CHANGED
data/test/test_formatters.rb
CHANGED
data/test/test_parser.rb
CHANGED
data/test/test_restrictions.rb
CHANGED
data/test/textism.yml
CHANGED
data/test/threshold.yml
CHANGED
data/test/validate_fixtures.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RedCloth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.9
|
5
5
|
platform: x86-mswin32-60
|
6
6
|
authors:
|
7
7
|
- Jason Garber
|
@@ -9,20 +9,11 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2009-02-20 00:00:00 -05:00
|
13
13
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
16
|
-
|
17
|
-
type: :development
|
18
|
-
version_requirement:
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
20
|
-
requirements:
|
21
|
-
- - ">="
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version: "0"
|
24
|
-
version:
|
25
|
-
description: RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: RedCloth-4.1.9 - Textile parser for Ruby. http://redcloth.org/
|
26
17
|
email: redcloth-upwards@rubyforge.org
|
27
18
|
executables:
|
28
19
|
- redcloth
|
@@ -130,7 +121,7 @@ rubyforge_project: redcloth
|
|
130
121
|
rubygems_version: 1.3.1
|
131
122
|
signing_key:
|
132
123
|
specification_version: 2
|
133
|
-
summary: RedCloth-4.1.
|
124
|
+
summary: RedCloth-4.1.9 - Textile parser for Ruby. http://redcloth.org/
|
134
125
|
test_files:
|
135
126
|
- test/test_custom_tags.rb
|
136
127
|
- test/test_erb.rb
|