BBRedCloth 0.8.5 → 0.8.6

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.
data/BBRedCloth.gemspec CHANGED
@@ -1,27 +1,26 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
 
3
3
  Gem::Specification.new do |s|
4
- s.name = %q{BBRedCloth}
5
- s.version = "0.8.5"
4
+ s.name = "BBRedCloth"
5
+ s.version = "0.8.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = [%q{Ryan Alyea}]
9
- s.date = %q{2011-09-02}
10
- s.description = %q{BBRedCloth-0.8.5 - Textile parser for Ruby. Includes BBCode additions.
11
- http://redcloth.org/}
12
- s.email = %q{ryan@fangamer.com}
13
- s.executables = [%q{redcloth}]
14
- s.extensions = [%q{ext/redcloth_scan/extconf.rb}]
15
- s.extra_rdoc_files = [%q{CHANGELOG}, %q{lib/case_sensitive_require/RedCloth.rb}, %q{lib/redcloth/erb_extension.rb}, %q{lib/redcloth/formatters/base.rb}, %q{lib/redcloth/formatters/html.rb}, %q{lib/redcloth/formatters/latex.rb}, %q{lib/redcloth/textile_doc.rb}, %q{lib/redcloth/version.rb}, %q{lib/redcloth.rb}, %q{README.textile}]
16
- s.files = [%q{bin/redcloth}, %q{CHANGELOG}, %q{COPYING}, %q{ext/mingw-rbconfig.rb}, %q{ext/redcloth_scan/extconf.rb}, %q{ext/redcloth_scan/redcloth.h}, %q{ext/redcloth_scan/redcloth_attributes.c.rl}, %q{ext/redcloth_scan/redcloth_attributes.java.rl}, %q{ext/redcloth_scan/redcloth_attributes.rl}, %q{ext/redcloth_scan/redcloth_bbcode.c.rl}, %q{ext/redcloth_scan/redcloth_bbcode.rl}, %q{ext/redcloth_scan/redcloth_bbcode_inline.rl}, %q{ext/redcloth_scan/redcloth_bbcode_inline.c.rl}, %q{ext/redcloth_scan/redcloth_common.c.rl}, %q{ext/redcloth_scan/redcloth_common.java.rl}, %q{ext/redcloth_scan/redcloth_common.rl}, %q{ext/redcloth_scan/redcloth_inline.c.rl}, %q{ext/redcloth_scan/redcloth_inline.java.rl}, %q{ext/redcloth_scan/redcloth_inline.rl}, %q{ext/redcloth_scan/redcloth_scan.c.rl}, %q{ext/redcloth_scan/redcloth_scan.java.rl}, %q{ext/redcloth_scan/redcloth_scan.rl}, %q{extras/ragel_profiler.rb}, %q{lib/case_sensitive_require/RedCloth.rb}, %q{lib/redcloth/erb_extension.rb}, %q{lib/redcloth/formatters/base.rb}, %q{lib/redcloth/formatters/html.rb}, %q{lib/redcloth/formatters/latex.rb}, %q{lib/redcloth/formatters/latex_entities.yml}, %q{lib/redcloth/textile_doc.rb}, %q{lib/redcloth/version.rb}, %q{lib/redcloth.rb}, %q{Manifest}, %q{Rakefile}, %q{README.textile}, %q{setup.rb}, %q{test/basic.yml}, %q{test/code.yml}, %q{test/definitions.yml}, %q{test/extra_whitespace.yml}, %q{test/filter_html.yml}, %q{test/filter_pba.yml}, %q{test/helper.rb}, %q{test/html.yml}, %q{test/images.yml}, %q{test/instiki.yml}, %q{test/links.yml}, %q{test/lists.yml}, %q{test/poignant.yml}, %q{test/sanitize_html.yml}, %q{test/table.yml}, %q{test/test_custom_tags.rb}, %q{test/test_erb.rb}, %q{test/test_extensions.rb}, %q{test/test_formatters.rb}, %q{test/test_parser.rb}, %q{test/test_restrictions.rb}, %q{test/textism.yml}, %q{test/threshold.yml}, %q{test/validate_fixtures.rb}, %q{BBRedCloth.gemspec}, %q{ext/redcloth_scan/redcloth_attributes.c}, %q{ext/redcloth_scan/redcloth_inline.c}, %q{ext/redcloth_scan/redcloth_scan.c}, %q{ext/redcloth_scan/redcloth_bbcode.c}, %q{ext/redcloth_scan/redcloth_bbcode_inline.c}]
17
- s.homepage = %q{http://redcloth.org}
18
- s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{BBRedCloth}, %q{--main}, %q{README.textile}]
19
- s.require_paths = [%q{lib}, %q{ext}, %q{lib/case_sensitive_require}]
8
+ s.authors = ["Ryan Alyea"]
9
+ s.date = "2012-01-01"
10
+ s.description = "BBRedCloth-0.8.6 - Textile parser for Ruby. Includes BBCode additions.\nhttp://redcloth.org/"
11
+ s.email = "ryan@fangamer.com"
12
+ s.executables = ["redcloth"]
13
+ s.extensions = ["ext/redcloth_scan/extconf.rb"]
14
+ 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.textile"]
15
+ 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_bbcode.c.rl", "ext/redcloth_scan/redcloth_bbcode.rl", "ext/redcloth_scan/redcloth_bbcode_inline.rl", "ext/redcloth_scan/redcloth_bbcode_inline.c.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.textile", "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", "BBRedCloth.gemspec", "ext/redcloth_scan/redcloth_attributes.c", "ext/redcloth_scan/redcloth_inline.c", "ext/redcloth_scan/redcloth_scan.c", "ext/redcloth_scan/redcloth_bbcode.c", "ext/redcloth_scan/redcloth_bbcode_inline.c"]
16
+ s.homepage = "http://redcloth.org"
17
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "BBRedCloth", "--main", "README.textile"]
18
+ s.require_paths = ["lib", "ext", "lib/case_sensitive_require"]
20
19
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
21
- s.rubyforge_project = %q{bbredcloth}
22
- s.rubygems_version = %q{1.8.7}
23
- s.summary = %q{BBRedCloth-0.8.5 - Textile parser for Ruby. Includes BBCode additions. http://redcloth.org/}
24
- s.test_files = [%q{test/test_custom_tags.rb}, %q{test/test_erb.rb}, %q{test/test_extensions.rb}, %q{test/test_formatters.rb}, %q{test/test_parser.rb}, %q{test/test_restrictions.rb}]
20
+ s.rubyforge_project = "bbredcloth"
21
+ s.rubygems_version = "1.8.10"
22
+ s.summary = "BBRedCloth-0.8.6 - Textile parser for Ruby. Includes BBCode additions. http://redcloth.org/"
23
+ 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"]
25
24
 
26
25
  if s.respond_to? :specification_version then
27
26
  s.specification_version = 3
@@ -10711,7 +10711,7 @@ redcloth_html_esc(int argc, VALUE* argv, VALUE self) //(self, str, level)
10711
10711
 
10712
10712
  char *ts = RSTRING_PTR(str), *te = RSTRING_PTR(str) + RSTRING_LEN(str);
10713
10713
  char *t = ts, *t2 = ts, *ch = NULL;
10714
- if (te <= ts) return;
10714
+ if (te <= ts) return STR_NEW2("");
10715
10715
 
10716
10716
  while (t2 < te) {
10717
10717
  ch = NULL;
@@ -10770,7 +10770,7 @@ redcloth_latex_esc(VALUE self, VALUE str)
10770
10770
 
10771
10771
  char *ts = RSTRING_PTR(str), *te = RSTRING_PTR(str) + RSTRING_LEN(str);
10772
10772
  char *t = ts, *t2 = ts, *ch = NULL;
10773
- if (te <= ts) return;
10773
+ if (te <= ts) return STR_NEW2("");
10774
10774
 
10775
10775
  while (t2 < te) {
10776
10776
  ch = NULL;
@@ -99,7 +99,7 @@ redcloth_html_esc(int argc, VALUE* argv, VALUE self) //(self, str, level)
99
99
 
100
100
  char *ts = RSTRING_PTR(str), *te = RSTRING_PTR(str) + RSTRING_LEN(str);
101
101
  char *t = ts, *t2 = ts, *ch = NULL;
102
- if (te <= ts) return;
102
+ if (te <= ts) return STR_NEW2("");
103
103
 
104
104
  while (t2 < te) {
105
105
  ch = NULL;
@@ -158,7 +158,7 @@ redcloth_latex_esc(VALUE self, VALUE str)
158
158
 
159
159
  char *ts = RSTRING_PTR(str), *te = RSTRING_PTR(str) + RSTRING_LEN(str);
160
160
  char *t = ts, *t2 = ts, *ch = NULL;
161
- if (te <= ts) return;
161
+ if (te <= ts) return STR_NEW2("");
162
162
 
163
163
  while (t2 < te) {
164
164
  ch = NULL;
@@ -2,7 +2,7 @@ module RedCloth
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 8
5
- TINY = 5
5
+ TINY = 6
6
6
  RELEASE_CANDIDATE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY].join('.')
data/test/helper.rb CHANGED
@@ -1,7 +1,11 @@
1
+ require 'yaml'
2
+ if RUBY_VERSION >= "1.9.3"
3
+ YAML::ENGINE.yamler = 'syck'
4
+ end
5
+
1
6
  require 'test/unit'
2
7
  $:.unshift File.dirname(__FILE__) + "/../lib"
3
8
  require 'redcloth'
4
- require 'yaml'
5
9
 
6
10
  module Test
7
11
  module Unit
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require File.join('.',File.dirname(__FILE__), 'helper')
3
+ require File.expand_path('../helper', __FILE__)
4
4
 
5
5
  class TestCustomTags < Test::Unit::TestCase
6
6
 
data/test/test_erb.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require File.join('.',File.dirname(__FILE__), 'helper')
3
+ require File.expand_path('../helper', __FILE__)
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 File.join('.',File.dirname(__FILE__), 'helper')
3
+ require File.expand_path('../helper', __FILE__)
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 File.join('.',File.dirname(__FILE__), 'helper')
3
+ require File.expand_path('../helper', __FILE__)
4
4
 
5
5
  class TestFormatters < Test::Unit::TestCase
6
6
 
data/test/test_parser.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require File.join('.',File.dirname(__FILE__), 'helper')
3
+ require File.expand_path('../helper', __FILE__)
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 File.join('.',File.dirname(__FILE__), 'helper')
3
+ require File.expand_path('../helper', __FILE__)
4
4
 
5
5
  class TestRestrictions < Test::Unit::TestCase
6
6
 
metadata CHANGED
@@ -1,27 +1,25 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: BBRedCloth
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.8.6
4
5
  prerelease:
5
- version: 0.8.5
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Ryan Alyea
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-09-02 00:00:00 Z
12
+ date: 2012-01-01 00:00:00.000000000 Z
14
13
  dependencies: []
14
+ description: ! 'BBRedCloth-0.8.6 - Textile parser for Ruby. Includes BBCode additions.
15
15
 
16
- description: |-
17
- BBRedCloth-0.8.5 - Textile parser for Ruby. Includes BBCode additions.
18
- http://redcloth.org/
16
+ http://redcloth.org/'
19
17
  email: ryan@fangamer.com
20
- executables:
18
+ executables:
21
19
  - redcloth
22
- extensions:
20
+ extensions:
23
21
  - ext/redcloth_scan/extconf.rb
24
- extra_rdoc_files:
22
+ extra_rdoc_files:
25
23
  - CHANGELOG
26
24
  - lib/case_sensitive_require/RedCloth.rb
27
25
  - lib/redcloth/erb_extension.rb
@@ -32,7 +30,7 @@ extra_rdoc_files:
32
30
  - lib/redcloth/version.rb
33
31
  - lib/redcloth.rb
34
32
  - README.textile
35
- files:
33
+ files:
36
34
  - bin/redcloth
37
35
  - CHANGELOG
38
36
  - COPYING
@@ -101,39 +99,37 @@ files:
101
99
  - ext/redcloth_scan/redcloth_bbcode_inline.c
102
100
  homepage: http://redcloth.org
103
101
  licenses: []
104
-
105
102
  post_install_message:
106
- rdoc_options:
103
+ rdoc_options:
107
104
  - --line-numbers
108
105
  - --inline-source
109
106
  - --title
110
107
  - BBRedCloth
111
108
  - --main
112
109
  - README.textile
113
- require_paths:
110
+ require_paths:
114
111
  - lib
115
112
  - ext
116
113
  - lib/case_sensitive_require
117
- required_ruby_version: !ruby/object:Gem::Requirement
114
+ required_ruby_version: !ruby/object:Gem::Requirement
118
115
  none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
116
+ requirements:
117
+ - - ! '>='
118
+ - !ruby/object:Gem::Version
122
119
  version: 1.8.4
123
- required_rubygems_version: !ruby/object:Gem::Requirement
120
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
121
  none: false
125
- requirements:
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- version: "1.2"
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '1.2'
129
126
  requirements: []
130
-
131
127
  rubyforge_project: bbredcloth
132
- rubygems_version: 1.8.7
128
+ rubygems_version: 1.8.10
133
129
  signing_key:
134
130
  specification_version: 3
135
- summary: BBRedCloth-0.8.5 - Textile parser for Ruby. Includes BBCode additions. http://redcloth.org/
136
- test_files:
131
+ summary: BBRedCloth-0.8.6 - Textile parser for Ruby. Includes BBCode additions. http://redcloth.org/
132
+ test_files:
137
133
  - test/test_custom_tags.rb
138
134
  - test/test_erb.rb
139
135
  - test/test_extensions.rb