RedCloth 4.1.1-x86-mswin32-60 → 4.1.9-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.

@@ -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
@@ -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 TestErb < Test::Unit::TestCase
6
6
 
@@ -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 TestExtensions < Test::Unit::TestCase
6
6
 
@@ -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 TestFormatters < Test::Unit::TestCase
6
6
 
@@ -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 TestParser < Test::Unit::TestCase
6
6
 
@@ -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 TestRestrictions < Test::Unit::TestCase
6
6
 
@@ -89,7 +89,7 @@ latex: "\\emph{a phrase}\n\n"
89
89
  ---
90
90
  in: __a phrase__
91
91
  html: <p><i>a phrase</i></p>
92
- latex: "\\emph{a phrase}\n\n"
92
+ latex: "\\textit{a phrase}\n\n"
93
93
  ---
94
94
  in: '*a phrase*'
95
95
  html: <p><strong>a phrase</strong></p>
@@ -373,9 +373,7 @@ html: |-
373
373
 
374
374
  <code>print "Hello, World";
375
375
  }
376
- ?&gt;</code>
377
-
378
- </pre>
376
+ ?&gt;</code></pre>
379
377
  <p>Following paragraph.</p>
380
378
  ---
381
379
  name: extended block attributes
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require 'helper'
3
+ require File.join(File.dirname(__FILE__), 'helper')
4
+
4
5
  require 'erb'
5
6
  require 'w3c_validators'
6
7
 
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.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: 2008-11-19 00:00:00 -05:00
12
+ date: 2009-02-20 00:00:00 -05:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: echoe
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.1 - Textile parser for Ruby. http://redcloth.org/
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