RedCloth 4.2.2-x86-mswin32-60 → 4.2.3-x86-mswin32-60
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of RedCloth might be problematic. Click here for more details.
- data/CHANGELOG +11 -0
- data/README +4 -0
- data/Rakefile +14 -12
- data/RedCloth.gemspec +7 -7
- data/ext/redcloth_scan/redcloth.h +1 -1
- data/lib/redcloth/formatters/html.rb +2 -2
- data/lib/redcloth/version.rb +1 -1
- data/lib/redcloth_scan.so +0 -0
- data/lib/tasks/pureruby.rake +14 -9
- data/spec/fixtures/basic.yml +15 -5
- data/spec/fixtures/threshold.yml +3 -3
- metadata +22 -8
data/CHANGELOG
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 4.2.3 / March 1, 2010
|
2
|
+
|
3
|
+
* Allow quotes in styles so you can do things like listing font-families. [Jason Garber]
|
4
|
+
* Fix uninitialized constant Gem::Specification::PLATFORM_CROSS_TARGETS in Rails [Jason Garber]
|
5
|
+
* Allow uppercase letters in class and ID attributes even though it's invalid [Jason Garber]
|
6
|
+
* Fix compatibility with newer Echoe, by using full-name for Platform [Flameeyes]
|
7
|
+
* Fixes for PPC/PPC64 [Flameeyes]
|
8
|
+
* Added a modified copy of 'Textile Reference' to a doc folder [codesponge]
|
9
|
+
* Add footnote return links [Jonathan Rudenberg]
|
10
|
+
* Add bug report link to the README
|
11
|
+
|
1
12
|
=== 4.2.2 / June 30, 2009
|
2
13
|
|
3
14
|
* Fix regression where percent wasn't accepted in style attribute. [Jason Garber]
|
data/README
CHANGED
@@ -40,6 +40,10 @@ incompatible with Ruby 1.9. The JRuby and pure-Ruby extensions don't support
|
|
40
40
|
multi-byte characters. The RedCloth::EXTENSION_LANGUAGE constant indicates in
|
41
41
|
which language your copy of RedCloth is compiled.
|
42
42
|
|
43
|
+
== Bugs
|
44
|
+
|
45
|
+
Please submit bugs to http://jgarber.lighthouseapp.com/projects/13054-redcloth/overview
|
46
|
+
|
43
47
|
== Using RedCloth
|
44
48
|
|
45
49
|
RedCloth is simply an extension of the String class, which can handle
|
data/Rakefile
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'lib/redcloth/version'
|
2
2
|
require 'rubygems'
|
3
|
-
gem 'echoe', '>=
|
3
|
+
gem 'echoe', '>= 4.1'
|
4
4
|
require 'echoe'
|
5
5
|
Dir["#{File.dirname(__FILE__)}/lib/tasks/*.rake"].sort.each { |ext| load(ext) }
|
6
6
|
|
@@ -17,9 +17,9 @@ e = Echoe.new('RedCloth', RedCloth::VERSION.to_s) do |p|
|
|
17
17
|
p.extension_pattern = nil
|
18
18
|
p.development_dependencies = [] # remove echoe from development dependencies
|
19
19
|
|
20
|
-
if Platform.gcc?
|
20
|
+
if Echoe::Platform.gcc?
|
21
21
|
p.platform = 'x86-mswin32-60'
|
22
|
-
elsif Platform.java?
|
22
|
+
elsif Echoe::Platform.java?
|
23
23
|
p.platform = 'universal-java'
|
24
24
|
elsif RUBY_PLATFORM == 'pureruby'
|
25
25
|
p.platform = 'ruby'
|
@@ -56,16 +56,18 @@ def move_extensions
|
|
56
56
|
Dir["ext/**/*.{bundle,so,jar}"].each { |file| mv file, "lib/" }
|
57
57
|
end
|
58
58
|
|
59
|
-
def java_classpath_arg
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
59
|
+
def java_classpath_arg # myriad of ways to discover JRuby classpath
|
60
|
+
begin
|
61
|
+
cpath = Java::java.lang.System.getProperty('java.class.path').split(File::PATH_SEPARATOR)
|
62
|
+
cpath += Java::java.lang.System.getProperty('sun.boot.class.path').split(File::PATH_SEPARATOR)
|
63
|
+
jruby_cpath = cpath.compact.join(File::PATH_SEPARATOR)
|
64
|
+
rescue => e
|
65
|
+
end
|
66
|
+
unless jruby_cpath
|
67
|
+
jruby_cpath = ENV['JRUBY_PARENT_CLASSPATH'] || ENV['JRUBY_HOME'] &&
|
68
|
+
FileList["#{ENV['JRUBY_HOME']}/lib/*.jar"].join(File::PATH_SEPARATOR)
|
67
69
|
end
|
68
|
-
|
70
|
+
jruby_cpath ? "-cp \"#{jruby_cpath}\"" : ""
|
69
71
|
end
|
70
72
|
|
71
73
|
ext = "ext/redcloth_scan"
|
data/RedCloth.gemspec
CHANGED
@@ -2,30 +2,30 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{RedCloth}
|
5
|
-
s.version = "4.2.
|
5
|
+
s.version = "4.2.3"
|
6
6
|
s.platform = %q{x86-mswin32-60}
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
9
9
|
s.authors = ["Jason Garber"]
|
10
|
-
s.date = %q{
|
10
|
+
s.date = %q{2010-03-01}
|
11
11
|
s.default_executable = %q{redcloth}
|
12
|
-
s.description = %q{RedCloth-4.2.
|
12
|
+
s.description = %q{RedCloth-4.2.3 - Textile parser for Ruby.
|
13
|
+
http://redcloth.org/}
|
13
14
|
s.email = %q{redcloth-upwards@rubyforge.org}
|
14
15
|
s.executables = ["redcloth"]
|
15
16
|
s.extra_rdoc_files = ["CHANGELOG", "lib/case_sensitive_require/RedCloth.rb", "lib/redcloth/erb_extension.rb", "lib/redcloth/formatters/base.rb", "lib/redcloth/formatters/html.rb", "lib/redcloth/formatters/latex.rb", "lib/redcloth/textile_doc.rb", "lib/redcloth/version.rb", "lib/redcloth.rb", "README"]
|
16
17
|
s.files = ["bin/redcloth", "CHANGELOG", "COPYING", "ext/redcloth_scan/extconf.rb", "ext/redcloth_scan/redcloth.h", "lib/case_sensitive_require/RedCloth.rb", "lib/redcloth/erb_extension.rb", "lib/redcloth/formatters/base.rb", "lib/redcloth/formatters/html.rb", "lib/redcloth/formatters/latex.rb", "lib/redcloth/formatters/latex_entities.yml", "lib/redcloth/textile_doc.rb", "lib/redcloth/version.rb", "lib/redcloth.rb", "lib/tasks/pureruby.rake", "Manifest", "Rakefile", "README", "setup.rb", "spec/custom_tags_spec.rb", "spec/differs/inline.rb", "spec/erb_spec.rb", "spec/extension_spec.rb", "spec/fixtures/basic.yml", "spec/fixtures/code.yml", "spec/fixtures/definitions.yml", "spec/fixtures/extra_whitespace.yml", "spec/fixtures/filter_html.yml", "spec/fixtures/filter_pba.yml", "spec/fixtures/html.yml", "spec/fixtures/images.yml", "spec/fixtures/instiki.yml", "spec/fixtures/links.yml", "spec/fixtures/lists.yml", "spec/fixtures/poignant.yml", "spec/fixtures/sanitize_html.yml", "spec/fixtures/table.yml", "spec/fixtures/textism.yml", "spec/fixtures/threshold.yml", "spec/formatters/class_filtered_html_spec.rb", "spec/formatters/filtered_html_spec.rb", "spec/formatters/html_no_breaks_spec.rb", "spec/formatters/html_spec.rb", "spec/formatters/id_filtered_html_spec.rb", "spec/formatters/latex_spec.rb", "spec/formatters/lite_mode_html_spec.rb", "spec/formatters/no_span_caps_html_spec.rb", "spec/formatters/sanitized_html_spec.rb", "spec/formatters/style_filtered_html_spec.rb", "spec/parser_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "RedCloth.gemspec", "lib/redcloth_scan.so"]
|
17
|
-
s.has_rdoc = true
|
18
18
|
s.homepage = %q{http://redcloth.org}
|
19
19
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "RedCloth", "--main", "README"]
|
20
20
|
s.require_paths = ["lib", "ext", "lib/case_sensitive_require"]
|
21
21
|
s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
|
22
22
|
s.rubyforge_project = %q{redcloth}
|
23
|
-
s.rubygems_version = %q{1.3.
|
24
|
-
s.summary = %q{RedCloth-4.2.
|
23
|
+
s.rubygems_version = %q{1.3.6}
|
24
|
+
s.summary = %q{RedCloth-4.2.3 - Textile parser for Ruby. http://redcloth.org/}
|
25
25
|
|
26
26
|
if s.respond_to? :specification_version then
|
27
27
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
28
|
-
s.specification_version =
|
28
|
+
s.specification_version = 3
|
29
29
|
|
30
30
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
31
31
|
else
|
@@ -129,7 +129,7 @@ VALUE red_pass_code(VALUE, VALUE, VALUE, ID);
|
|
129
129
|
case ')': \
|
130
130
|
{ /*needed to keep inside chars scoped for less memory usage*/\
|
131
131
|
char *temp_p = p - 1; \
|
132
|
-
char level = -1; \
|
132
|
+
signed char level = -1; \
|
133
133
|
while (temp_p > reg) { \
|
134
134
|
switch(*(temp_p - 1)) { \
|
135
135
|
case '(': ++level; break; \
|
@@ -124,14 +124,14 @@ module RedCloth::Formatters::HTML
|
|
124
124
|
|
125
125
|
def footno(opts)
|
126
126
|
opts[:id] ||= opts[:text]
|
127
|
-
%Q{<sup class="footnote"><a href=\"#fn#{opts[:id]}\">#{opts[:text]}</a></sup>}
|
127
|
+
%Q{<sup class="footnote" id=\"fnr#{opts[:id]}\"><a href=\"#fn#{opts[:id]}\">#{opts[:text]}</a></sup>}
|
128
128
|
end
|
129
129
|
|
130
130
|
def fn(opts)
|
131
131
|
no = opts[:id]
|
132
132
|
opts[:id] = "fn#{no}"
|
133
133
|
opts[:class] = ["footnote", opts[:class]].compact.join(" ")
|
134
|
-
"<p#{pba(opts)}><sup>#{no}</sup> #{opts[:text]}</p>\n"
|
134
|
+
"<p#{pba(opts)}><a href=\"#fnr#{no}\"><sup>#{no}</sup></a> #{opts[:text]}</p>\n"
|
135
135
|
end
|
136
136
|
|
137
137
|
def snip(opts)
|
data/lib/redcloth/version.rb
CHANGED
data/lib/redcloth_scan.so
CHANGED
Binary file
|
data/lib/tasks/pureruby.rake
CHANGED
@@ -1,12 +1,17 @@
|
|
1
|
-
|
1
|
+
# Apparently this file gets loaded by Rails. Only want to define the pureruby
|
2
|
+
# task in the context of RedCloth compilation (echoe loaded).
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
end
|
4
|
+
if Gem::Specification.const_defined?(:PLATFORM_CROSS_TARGETS)
|
5
|
+
Gem::Specification::PLATFORM_CROSS_TARGETS << "pureruby"
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
Gem::Specification::PLATFORM_CROSS_TARGETS.include? arg
|
7
|
+
task 'pureruby' do
|
8
|
+
reset_target 'pureruby'
|
10
9
|
end
|
11
|
-
|
12
|
-
|
10
|
+
|
11
|
+
if target = ARGV.detect do |arg|
|
12
|
+
# Hack to get the platform set before the Rakefile evaluates
|
13
|
+
Gem::Specification::PLATFORM_CROSS_TARGETS.include? arg
|
14
|
+
end
|
15
|
+
reset_target target
|
16
|
+
end
|
17
|
+
end
|
data/spec/fixtures/basic.yml
CHANGED
@@ -247,12 +247,12 @@ html: |-
|
|
247
247
|
name: footnote reference
|
248
248
|
desc: Numeric references within text to footnotes appear between square brackets.
|
249
249
|
in: This is covered elsewhere[1].
|
250
|
-
html: <p>This is covered elsewhere<sup class="footnote"><a href="#fn1">1</a></sup>.</p>
|
250
|
+
html: <p>This is covered elsewhere<sup class="footnote" id="fnr1"><a href="#fn1">1</a></sup>.</p>
|
251
251
|
---
|
252
252
|
name: footnote
|
253
253
|
desc: To create the footnote that corresponds to its reference within the text, begin a new paragraph with fn and the footnote’s number, followed by a dot and a space.
|
254
254
|
in: fn1. Down here, in fact.
|
255
|
-
html: <p class="footnote" id="fn1"><sup>1</sup> Down here, in fact.</p>
|
255
|
+
html: <p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> Down here, in fact.</p>
|
256
256
|
---
|
257
257
|
name: em
|
258
258
|
desc: Emphasis to text is added by surrounding a phrase with underscores. In HTML, this often appears as <em>italics</em>.
|
@@ -367,7 +367,17 @@ name: css id
|
|
367
367
|
desc: An element ID can be given by prefixing the ID with a pound symbol and using it in place of the class.
|
368
368
|
in: p(#big-red). Red here
|
369
369
|
html: <p id="big-red">Red here</p>
|
370
|
-
---
|
370
|
+
---
|
371
|
+
name: css id with initial uppercase
|
372
|
+
desc: CSS IDs are supposed to be lowercase, but Textile understands the invalid capitalization nonetheless
|
373
|
+
in: p(#Foo). bar
|
374
|
+
html: <p id="Foo">bar</p>
|
375
|
+
---
|
376
|
+
name: css class uppercase
|
377
|
+
desc: CSS classes are supposed to be lowercase, but Textile understands the invalid capitalization nonetheless
|
378
|
+
in: p(fooBar). baz
|
379
|
+
html: <p class="fooBar">baz</p>
|
380
|
+
---
|
371
381
|
name: class and id combined
|
372
382
|
desc: Class and ID can be combined by placing the class first.
|
373
383
|
in: p(example1#big-red2). Red here
|
@@ -375,8 +385,8 @@ html: <p class="example1" id="big-red2">Red here</p>
|
|
375
385
|
---
|
376
386
|
name: css style
|
377
387
|
desc: Style settings can be provided directly by surrounding them in curly braces.
|
378
|
-
in: p{color:blue;margin:30px;font-size:120%;}. Spacey blue
|
379
|
-
html: <p style="color:blue;margin:30px;font-size:120%;">Spacey blue</p>
|
388
|
+
in: p{color:blue;margin:30px;font-size:120%;font-family:'Comic Sans'}. Spacey blue
|
389
|
+
html: <p style="color:blue;margin:30px;font-size:120%;font-family:'Comic Sans';">Spacey blue</p>
|
380
390
|
---
|
381
391
|
name: language designations
|
382
392
|
desc: Language designations can be given between angel brackets.
|
data/spec/fixtures/threshold.yml
CHANGED
@@ -252,8 +252,8 @@ in: |-
|
|
252
252
|
|
253
253
|
fn1. The footnote.
|
254
254
|
html: |-
|
255
|
-
<p>A footnote reference<sup class="footnote"><a href="#fn1">1</a></sup>.</p>
|
256
|
-
<p class="footnote" id="fn1"><sup>1</sup> The footnote.</p>
|
255
|
+
<p>A footnote reference<sup class="footnote" id="fnr1"><a href="#fn1">1</a></sup>.</p>
|
256
|
+
<p class="footnote" id="fn1"><a href="#fnr1"><sup>1</sup></a> The footnote.</p>
|
257
257
|
# html: |-
|
258
258
|
# <p>A footnote reference<sup class="footnote"><a href="#fn1216642796463b1223ae29d">1</a></sup>.</p>
|
259
259
|
# <p class="footnote" id="fn1216642796463b1223ae29d"><sup>1</sup> The footnote.</p>
|
@@ -755,7 +755,7 @@ in: |-
|
|
755
755
|
html: |-
|
756
756
|
<p>A close<img src="/img.gif" alt="" />image.<br />
|
757
757
|
A tight<a href="http://thresholdstate.com/">text</a>link.<br />
|
758
|
-
A <a href="http://thresholdstate.com/">footnoted link</a><sup class="footnote"><a href="#fn1">1</a></sup>.</p>
|
758
|
+
A <a href="http://thresholdstate.com/">footnoted link</a><sup class="footnote" id="fnr1"><a href="#fn1">1</a></sup>.</p>
|
759
759
|
# html: |-
|
760
760
|
# <p>A close<img src="/img.gif" alt="" />image.<br />
|
761
761
|
# A tight<a href="http://thresholdstate.com/">text</a>link.<br />
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: RedCloth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 4
|
7
|
+
- 2
|
8
|
+
- 3
|
9
|
+
version: 4.2.3
|
5
10
|
platform: x86-mswin32-60
|
6
11
|
authors:
|
7
12
|
- Jason Garber
|
@@ -9,11 +14,13 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-03-01 00:00:00 -05:00
|
13
18
|
default_executable:
|
14
19
|
dependencies: []
|
15
20
|
|
16
|
-
description:
|
21
|
+
description: |-
|
22
|
+
RedCloth-4.2.3 - Textile parser for Ruby.
|
23
|
+
http://redcloth.org/
|
17
24
|
email: redcloth-upwards@rubyforge.org
|
18
25
|
executables:
|
19
26
|
- redcloth
|
@@ -87,6 +94,8 @@ files:
|
|
87
94
|
- lib/redcloth_scan.so
|
88
95
|
has_rdoc: true
|
89
96
|
homepage: http://redcloth.org
|
97
|
+
licenses: []
|
98
|
+
|
90
99
|
post_install_message:
|
91
100
|
rdoc_options:
|
92
101
|
- --line-numbers
|
@@ -103,20 +112,25 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
103
112
|
requirements:
|
104
113
|
- - ">="
|
105
114
|
- !ruby/object:Gem::Version
|
115
|
+
segments:
|
116
|
+
- 1
|
117
|
+
- 8
|
118
|
+
- 4
|
106
119
|
version: 1.8.4
|
107
|
-
version:
|
108
120
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
121
|
requirements:
|
110
122
|
- - ">="
|
111
123
|
- !ruby/object:Gem::Version
|
124
|
+
segments:
|
125
|
+
- 1
|
126
|
+
- 2
|
112
127
|
version: "1.2"
|
113
|
-
version:
|
114
128
|
requirements: []
|
115
129
|
|
116
130
|
rubyforge_project: redcloth
|
117
|
-
rubygems_version: 1.3.
|
131
|
+
rubygems_version: 1.3.6
|
118
132
|
signing_key:
|
119
|
-
specification_version:
|
120
|
-
summary: RedCloth-4.2.
|
133
|
+
specification_version: 3
|
134
|
+
summary: RedCloth-4.2.3 - Textile parser for Ruby. http://redcloth.org/
|
121
135
|
test_files: []
|
122
136
|
|