RedCloth 4.1.0-universal-java → 4.1.1-universal-java

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
@@ -20,6 +15,11 @@ e = Echoe.new('RedCloth', RedCloth::VERSION.to_s) do |p|
20
15
  p.ruby_version = '>=1.8.4'
21
16
  p.extension_pattern = nil
22
17
 
18
+ if Platform.gcc?
19
+ p.platform = 'x86-mswin32-60'
20
+ elsif Platform.java?
21
+ p.platform = 'universal-java'
22
+ end
23
23
 
24
24
  if RUBY_PLATFORM =~ /mingw|mswin|java/
25
25
  p.need_tar_gz = false
@@ -33,13 +33,13 @@ e = Echoe.new('RedCloth', RedCloth::VERSION.to_s) do |p|
33
33
  case RUBY_PLATFORM
34
34
  when /mingw/
35
35
  self.files += ['lib/redcloth_scan.so']
36
- self.platform = 'x86-mswin32-60'
37
36
  when /java/
38
37
  self.files += ['lib/redcloth_scan.jar']
39
- self.platform = 'universal-java'
40
38
  else
41
39
  self.files += %w[attributes inline scan].map {|f| "ext/redcloth_scan/redcloth_#{f}.c"}
42
40
  end
41
+
42
+ self.require_paths << "lib/case_sensitive_require"
43
43
  end
44
44
 
45
45
  end
data/RedCloth.gemspec CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # Gem::Specification for Redcloth-4.1.0
2
+ # Gem::Specification for Redcloth-4.1.1
3
3
  # Originally generated by Echoe
4
4
 
5
5
  --- !ruby/object:Gem::Specification
@@ -9,9 +9,9 @@ homepage: http://redcloth.org
9
9
  executables:
10
10
  - redcloth
11
11
  version: !ruby/object:Gem::Version
12
- version: 4.1.0
12
+ version: 4.1.1
13
13
  post_install_message:
14
- date: 2008-11-03 05:00:00 +00:00
14
+ date: 2008-11-19 05:00:00 +00:00
15
15
  files:
16
16
  - bin/redcloth
17
17
  - CHANGELOG
@@ -44,7 +44,6 @@ files:
44
44
  - Manifest
45
45
  - Rakefile
46
46
  - README
47
- - RedCloth.gemspec
48
47
  - setup.rb
49
48
  - test/basic.yml
50
49
  - test/code.yml
@@ -70,6 +69,7 @@ files:
70
69
  - test/textism.yml
71
70
  - test/threshold.yml
72
71
  - test/validate_fixtures.rb
72
+ - RedCloth.gemspec
73
73
  - lib/redcloth_scan.jar
74
74
  rubygems_version: 1.2.0
75
75
  rdoc_options:
@@ -83,7 +83,7 @@ rdoc_options:
83
83
  name: RedCloth
84
84
  has_rdoc: true
85
85
  platform: universal-java
86
- summary: RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/
86
+ summary: RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/
87
87
  default_executable:
88
88
  bindir: bin
89
89
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -101,6 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
101
  require_paths:
102
102
  - lib
103
103
  - ext
104
+ - lib/case_sensitive_require
104
105
  specification_version: 2
105
106
  test_files:
106
107
  - test/test_custom_tags.rb
@@ -120,7 +121,7 @@ dependencies:
120
121
  - - '>='
121
122
  - !ruby/object:Gem::Version
122
123
  version: "0"
123
- description: RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/
124
+ description: RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/
124
125
  email: redcloth-upwards@rubyforge.org
125
126
  authors:
126
127
  - Jason Garber
@@ -194,6 +194,9 @@ redcloth_latex_esc(VALUE self, VALUE str)
194
194
  return new_str;
195
195
  }
196
196
 
197
+ /*
198
+ * Transforms a Textile document with +formatter+
199
+ */
197
200
  static VALUE
198
201
  redcloth_to(self, formatter)
199
202
  VALUE self, formatter;
@@ -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('.')
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
@@ -5,9 +5,9 @@ homepage: http://redcloth.org
5
5
  executables:
6
6
  - redcloth
7
7
  version: !ruby/object:Gem::Version
8
- version: 4.1.0
8
+ version: 4.1.1
9
9
  post_install_message:
10
- date: 2008-11-03 05:00:00 +00:00
10
+ date: 2008-11-19 05:00:00 +00:00
11
11
  files:
12
12
  - bin/redcloth
13
13
  - CHANGELOG
@@ -40,7 +40,6 @@ files:
40
40
  - Manifest
41
41
  - Rakefile
42
42
  - README
43
- - RedCloth.gemspec
44
43
  - setup.rb
45
44
  - test/basic.yml
46
45
  - test/code.yml
@@ -66,6 +65,7 @@ files:
66
65
  - test/textism.yml
67
66
  - test/threshold.yml
68
67
  - test/validate_fixtures.rb
68
+ - RedCloth.gemspec
69
69
  - lib/redcloth_scan.jar
70
70
  rubygems_version: 1.2.0
71
71
  rdoc_options:
@@ -81,7 +81,7 @@ cert_chain: []
81
81
  name: RedCloth
82
82
  has_rdoc: true
83
83
  platform: universal-java
84
- summary: RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/
84
+ summary: RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/
85
85
  default_executable:
86
86
  bindir: bin
87
87
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -99,6 +99,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
99
99
  require_paths:
100
100
  - lib
101
101
  - ext
102
+ - lib/case_sensitive_require
102
103
  specification_version: 2
103
104
  test_files:
104
105
  - test/test_custom_tags.rb
@@ -118,7 +119,7 @@ dependencies:
118
119
  - - '>='
119
120
  - !ruby/object:Gem::Version
120
121
  version: "0"
121
- description: RedCloth-4.1.0 - Textile parser for Ruby. http://redcloth.org/
122
+ description: RedCloth-4.1.1 - Textile parser for Ruby. http://redcloth.org/
122
123
  email: redcloth-upwards@rubyforge.org
123
124
  authors:
124
125
  - Jason Garber