RedCloth 4.1.0-x86-mswin32-60 → 4.1.1-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 CHANGED
@@ -1,3 +1,17 @@
1
+ === 4.1.1 / November 19, 2008
2
+
3
+ * Added 'lib/case_sensitive_require' back into gemspec. It got left out in the conversion to echoe, so "require 'RedCloth'" didn't work. #88
4
+
5
+ * Fixed <embed> being recognized as a block-level element when using the twice-cooked method of flash embedding. #87
6
+
7
+ * Added horizontal rules from RedCloth 3. Three or more asterisks, dashes, or underscores between blocks triggers the HR tag.
8
+
9
+ * echoe was not being properly registered as a development dependency; a bug in RubyGems was making it a runtime dependency
10
+
11
+ * Fixed "No definition for redcloth_to Installing RDoc documentation"
12
+
13
+ * Fixed wrong platform names when cross-compiling java and win32 versions
14
+
1
15
  === 4.1.0 / October 31, 2008
2
16
 
3
17
  * JRuby support! [olabini]
data/Manifest CHANGED
@@ -29,7 +29,6 @@ lib/redcloth.rb
29
29
  Manifest
30
30
  Rakefile
31
31
  README
32
- RedCloth.gemspec
33
32
  setup.rb
34
33
  test/basic.yml
35
34
  test/code.yml
data/Rakefile CHANGED
@@ -1,12 +1,7 @@
1
1
  require 'lib/redcloth/version'
2
-
3
- begin
4
- require 'rubygems'
5
- gem 'echoe', '>=2.7.11'
6
- require 'echoe'
7
- rescue LoadError
8
- abort "You'll need to have `echoe' installed to use RedCloth's Rakefile"
9
- end
2
+ require 'rubygems'
3
+ gem 'echoe', '>= 3.0.1'
4
+ require 'echoe'
10
5
 
11
6
  e = Echoe.new('RedCloth', RedCloth::VERSION.to_s) do |p|
12
7
  p.summary = RedCloth::DESCRIPTION
@@ -43,6 +38,8 @@ e = Echoe.new('RedCloth', RedCloth::VERSION.to_s) do |p|
43
38
  else
44
39
  self.files += %w[attributes inline scan].map {|f| "ext/redcloth_scan/redcloth_#{f}.c"}
45
40
  end
41
+
42
+ self.require_paths << "lib/case_sensitive_require"
46
43
  end
47
44
 
48
45
  end
data/RedCloth.gemspec CHANGED
@@ -1,32 +1,34 @@
1
+ # -*- encoding: utf-8 -*-
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = %q{RedCloth}
3
- s.version = "4.1.0"
5
+ s.version = "4.1.1"
4
6
  s.platform = %q{x86-mswin32-60}
5
7
 
6
8
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
7
9
  s.authors = ["Jason Garber"]
8
- s.date = %q{2008-11-10}
10
+ s.date = %q{2008-11-19}
9
11
  s.default_executable = %q{redcloth}
10
- s.description = %q{RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/}
12
+ s.description = %q{RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/}
11
13
  s.email = %q{redcloth-upwards@rubyforge.org}
12
14
  s.executables = ["redcloth"]
13
15
  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"]
14
- s.files = ["bin/redcloth", "CHANGELOG", "COPYING", "ext/mingw-rbconfig.rb", "ext/redcloth_scan/extconf.rb", "ext/redcloth_scan/redcloth.h", "ext/redcloth_scan/redcloth_attributes.c.rl", "ext/redcloth_scan/redcloth_attributes.java.rl", "ext/redcloth_scan/redcloth_attributes.rl", "ext/redcloth_scan/redcloth_common.c.rl", "ext/redcloth_scan/redcloth_common.java.rl", "ext/redcloth_scan/redcloth_common.rl", "ext/redcloth_scan/redcloth_inline.c.rl", "ext/redcloth_scan/redcloth_inline.java.rl", "ext/redcloth_scan/redcloth_inline.rl", "ext/redcloth_scan/redcloth_scan.c.rl", "ext/redcloth_scan/redcloth_scan.java.rl", "ext/redcloth_scan/redcloth_scan.rl", "extras/ragel_profiler.rb", "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", "Manifest", "Rakefile", "README", "RedCloth.gemspec", "setup.rb", "test/basic.yml", "test/code.yml", "test/definitions.yml", "test/extra_whitespace.yml", "test/filter_html.yml", "test/filter_pba.yml", "test/helper.rb", "test/html.yml", "test/images.yml", "test/instiki.yml", "test/links.yml", "test/lists.yml", "test/poignant.yml", "test/sanitize_html.yml", "test/table.yml", "test/test_custom_tags.rb", "test/test_erb.rb", "test/test_extensions.rb", "test/test_formatters.rb", "test/test_parser.rb", "test/test_restrictions.rb", "test/textism.yml", "test/threshold.yml", "test/validate_fixtures.rb", "lib/redcloth_scan.so"]
16
+ s.files = ["bin/redcloth", "CHANGELOG", "COPYING", "ext/mingw-rbconfig.rb", "ext/redcloth_scan/extconf.rb", "ext/redcloth_scan/redcloth.h", "ext/redcloth_scan/redcloth_attributes.c.rl", "ext/redcloth_scan/redcloth_attributes.java.rl", "ext/redcloth_scan/redcloth_attributes.rl", "ext/redcloth_scan/redcloth_common.c.rl", "ext/redcloth_scan/redcloth_common.java.rl", "ext/redcloth_scan/redcloth_common.rl", "ext/redcloth_scan/redcloth_inline.c.rl", "ext/redcloth_scan/redcloth_inline.java.rl", "ext/redcloth_scan/redcloth_inline.rl", "ext/redcloth_scan/redcloth_scan.c.rl", "ext/redcloth_scan/redcloth_scan.java.rl", "ext/redcloth_scan/redcloth_scan.rl", "extras/ragel_profiler.rb", "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", "Manifest", "Rakefile", "README", "setup.rb", "test/basic.yml", "test/code.yml", "test/definitions.yml", "test/extra_whitespace.yml", "test/filter_html.yml", "test/filter_pba.yml", "test/helper.rb", "test/html.yml", "test/images.yml", "test/instiki.yml", "test/links.yml", "test/lists.yml", "test/poignant.yml", "test/sanitize_html.yml", "test/table.yml", "test/test_custom_tags.rb", "test/test_erb.rb", "test/test_extensions.rb", "test/test_formatters.rb", "test/test_parser.rb", "test/test_restrictions.rb", "test/textism.yml", "test/threshold.yml", "test/validate_fixtures.rb", "RedCloth.gemspec", "lib/redcloth_scan.so"]
15
17
  s.has_rdoc = true
16
18
  s.homepage = %q{http://redcloth.org}
17
19
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "RedCloth", "--main", "README"]
18
- s.require_paths = ["lib", "ext"]
20
+ s.require_paths = ["lib", "ext", "lib/case_sensitive_require"]
19
21
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
20
22
  s.rubyforge_project = %q{redcloth}
21
- s.rubygems_version = %q{1.2.0}
22
- s.summary = %q{RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/}
23
+ s.rubygems_version = %q{1.3.1}
24
+ s.summary = %q{RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/}
23
25
  s.test_files = ["test/test_custom_tags.rb", "test/test_erb.rb", "test/test_extensions.rb", "test/test_formatters.rb", "test/test_parser.rb", "test/test_restrictions.rb"]
24
26
 
25
27
  if s.respond_to? :specification_version then
26
28
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
29
  s.specification_version = 2
28
30
 
29
- if current_version >= 3 then
31
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
32
  s.add_development_dependency(%q<echoe>, [">= 0"])
31
33
  else
32
34
  s.add_dependency(%q<echoe>, [">= 0"])
@@ -37,6 +37,7 @@
37
37
  dl_start = (dt_start mtext (LF dt_start mtext)* " "* dd_start) ;
38
38
  blank_line = LF;
39
39
  link_alias = ( "[" >{ ASET("type", "ignore"); } %A chars %T "]" %A uri %{ STORE_URL("href"); } ) ;
40
+ horizontal_rule = '*'{3,} | '-'{3,} | '_'{3,} ;
40
41
 
41
42
  # image lookahead
42
43
  IMG_A_LEFT = "<" %{ ASET("float", "left"); } ;
@@ -44,7 +45,7 @@
44
45
  aligned_image = ( "["? "!" (IMG_A_LEFT | IMG_A_RIGHT) ) >A @{ p = reg - 1; } ;
45
46
 
46
47
  # html blocks
47
- BlockTagName = Name - ("pre" | "notextile" | "a" | "applet" | "basefont" | "bdo" | "br" | "font" | "iframe" | "img" | "map" | "object" | "param" | "q" | "script" | "span" | "sub" | "sup" | "abbr" | "acronym" | "cite" | "code" | "del" | "dfn" | "em" | "ins" | "kbd" | "samp" | "strong" | "var" | "b" | "big" | "i" | "s" | "small" | "strike" | "tt" | "u");
48
+ BlockTagName = Name - ("pre" | "notextile" | "a" | "applet" | "basefont" | "bdo" | "br" | "font" | "iframe" | "img" | "map" | "object" | "param" | "embed" | "q" | "script" | "span" | "sub" | "sup" | "abbr" | "acronym" | "cite" | "code" | "del" | "dfn" | "em" | "ins" | "kbd" | "samp" | "strong" | "var" | "b" | "big" | "i" | "s" | "small" | "strike" | "tt" | "u");
48
49
  block_start_tag = "<" BlockTagName space+ AttrSet* (AttrEnd)? ">" | "<" BlockTagName ">";
49
50
  block_empty_tag = "<" BlockTagName space+ AttrSet* (AttrEnd)? "/>" | "<" BlockTagName "/>" ;
50
51
  block_end_tag = "</" BlockTagName space* ">" ;
@@ -303,6 +304,7 @@
303
304
  bq_start { INLINE(html, "bq_open"); ASET("type", "p"); fgoto bq; };
304
305
  block_start { fgoto block; };
305
306
  footnote_start { fgoto footnote; };
307
+ horizontal_rule { INLINE(html, "hr"); };
306
308
  list_start { CLEAR_LIST(); LIST_ITEM(); fgoto list; };
307
309
  dl_start { p = ts; INLINE(html, "dl_open"); ASET("type", "dt"); fgoto dl; };
308
310
  table { INLINE(table, "table_close"); DONE(table); fgoto block; };
@@ -33,6 +33,10 @@ module RedCloth::Formatters::HTML
33
33
  end
34
34
  end
35
35
 
36
+ def hr(opts)
37
+ "<hr />\n"
38
+ end
39
+
36
40
  def acronym(opts)
37
41
  opts[:block] = true
38
42
  "<acronym#{pba(opts)}>#{caps(:text => opts[:text])}</acronym>"
@@ -2,7 +2,7 @@ module RedCloth
2
2
  module VERSION
3
3
  MAJOR = 4
4
4
  MINOR = 1
5
- TINY = 0
5
+ TINY = 1
6
6
  RELEASE_CANDIDATE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
data/lib/redcloth_scan.so CHANGED
Binary file
data/test/basic.yml CHANGED
@@ -868,3 +868,51 @@ in: |-
868
868
  html: |-
869
869
  <p>citation [&#8220;(Berk.) Hilton&#8221;], see<br />
870
870
  [Papers &#8220;blah blah.&#8221;]</p>
871
+ ---
872
+ name: horizontal rule using asterisks
873
+ in: |-
874
+ Just some *** text
875
+
876
+ ***
877
+
878
+ Some more text.
879
+ html: |-
880
+ <p>Just some <strong>*</strong> text</p>
881
+ <hr />
882
+ <p>Some more text.</p>
883
+ ---
884
+ name: horizontal rule using more than three asterisks
885
+ in: |-
886
+ Just some **** text
887
+
888
+ ****
889
+
890
+ Some more text.
891
+ html: |-
892
+ <p>Just some **** text</p>
893
+ <hr />
894
+ <p>Some more text.</p>
895
+ ---
896
+ name: horizontal rule using dashes
897
+ in: |-
898
+ Just some --- text
899
+
900
+ ---
901
+
902
+ Some more text.
903
+ html: |-
904
+ <p>Just some <del>-</del> text</p>
905
+ <hr />
906
+ <p>Some more text.</p>
907
+ ---
908
+ name: horizontal rule using underscores
909
+ in: |-
910
+ Just some ___ text
911
+
912
+ ___
913
+
914
+ Some more text.
915
+ html: |-
916
+ <p>Just some <em>_</em> text</p>
917
+ <hr />
918
+ <p>Some more text.</p>
data/test/html.yml CHANGED
@@ -300,6 +300,12 @@ html: '<p><a href="http://foo.com/bar?something=1~2~3">http://foo.com/bar?someth
300
300
  ---
301
301
  name: empty block
302
302
  in: |-
303
- <embed src="test.swf"></embed>
303
+ <div class="test"></div>
304
304
  html: |-
305
- <embed src="test.swf"></embed>
305
+ <div class="test"></div>
306
+ ---
307
+ name: objects in paragraphs are not modified
308
+ in: |-
309
+ <p><object width="340" height="280"><param name="movie" value="http://www.youtube.com/v/iUbK1cBHm6E"></param><param name="wmode" value="opaque"></param><param name="allowScriptAccess" value="sameDomain"></param><embed src="http://www.youtube.com/v/iUbK1cBHm6E" type="application/x-shockwave-flash" width="340" height="280" wmode="opaque" allowScriptAccess="sameDomain"></embed></object></p>
310
+ html: |-
311
+ <p><object width="340" height="280"><param name="movie" value="http://www.youtube.com/v/iUbK1cBHm6E"></param><param name="wmode" value="opaque"></param><param name="allowScriptAccess" value="sameDomain"></param><embed src="http://www.youtube.com/v/iUbK1cBHm6E" type="application/x-shockwave-flash" width="340" height="280" wmode="opaque" allowScriptAccess="sameDomain"></embed></object></p>
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.0
4
+ version: 4.1.1
5
5
  platform: x86-mswin32-60
6
6
  authors:
7
7
  - Jason Garber
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-10 00:00:00 -05:00
12
+ date: 2008-11-19 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,7 +22,7 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: "0"
24
24
  version:
25
- description: RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/
25
+ description: RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/
26
26
  email: redcloth-upwards@rubyforge.org
27
27
  executables:
28
28
  - redcloth
@@ -71,7 +71,6 @@ files:
71
71
  - Manifest
72
72
  - Rakefile
73
73
  - README
74
- - RedCloth.gemspec
75
74
  - setup.rb
76
75
  - test/basic.yml
77
76
  - test/code.yml
@@ -97,6 +96,7 @@ files:
97
96
  - test/textism.yml
98
97
  - test/threshold.yml
99
98
  - test/validate_fixtures.rb
99
+ - RedCloth.gemspec
100
100
  - lib/redcloth_scan.so
101
101
  has_rdoc: true
102
102
  homepage: http://redcloth.org
@@ -111,6 +111,7 @@ rdoc_options:
111
111
  require_paths:
112
112
  - lib
113
113
  - ext
114
+ - lib/case_sensitive_require
114
115
  required_ruby_version: !ruby/object:Gem::Requirement
115
116
  requirements:
116
117
  - - ">="
@@ -126,10 +127,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
127
  requirements: []
127
128
 
128
129
  rubyforge_project: redcloth
129
- rubygems_version: 1.2.0
130
+ rubygems_version: 1.3.1
130
131
  signing_key:
131
132
  specification_version: 2
132
- summary: RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/
133
+ summary: RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/
133
134
  test_files:
134
135
  - test/test_custom_tags.rb
135
136
  - test/test_erb.rb