RedCloth 4.2.3-x86-mswin32-60 → 4.2.4.pre2-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/.gitignore +25 -0
- data/.rspec +1 -0
- data/.rvmrc +1 -0
- data/CHANGELOG +6 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +33 -0
- data/README +18 -9
- data/Rakefile +7 -254
- data/doc/textile_reference.html +631 -0
- data/lib/redcloth.rb +8 -7
- data/lib/redcloth/formatters/latex_entities.yml +8 -8
- data/lib/redcloth/version.rb +6 -5
- data/redcloth.gemspec +48 -0
- data/spec/benchmark_spec.rb +15 -0
- data/spec/fixtures/code.yml +6 -6
- data/spec/fixtures/table.yml +2 -2
- data/spec/fixtures/textism.yml +3 -3
- data/spec/fixtures/threshold.yml +3 -3
- data/spec/spec_helper.rb +26 -32
- data/tasks/compile.rake +47 -0
- data/tasks/gems.rake +38 -0
- data/tasks/ragel_extension_task.rb +127 -0
- data/tasks/release.rake +15 -0
- data/tasks/rspec.rake +11 -0
- data/tasks/rvm.rake +43 -0
- data/test/ragel_profiler.rb +73 -0
- data/test/validate_fixtures.rb +74 -0
- metadata +129 -47
- data/RedCloth.gemspec +0 -35
- data/ext/redcloth_scan/extconf.rb +0 -9
- data/lib/redcloth_scan.so +0 -0
- data/spec/differs/inline.rb +0 -48
- data/spec/spec.opts +0 -3
data/RedCloth.gemspec
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
|
3
|
-
Gem::Specification.new do |s|
|
4
|
-
s.name = %q{RedCloth}
|
5
|
-
s.version = "4.2.3"
|
6
|
-
s.platform = %q{x86-mswin32-60}
|
7
|
-
|
8
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
9
|
-
s.authors = ["Jason Garber"]
|
10
|
-
s.date = %q{2010-03-01}
|
11
|
-
s.default_executable = %q{redcloth}
|
12
|
-
s.description = %q{RedCloth-4.2.3 - Textile parser for Ruby.
|
13
|
-
http://redcloth.org/}
|
14
|
-
s.email = %q{redcloth-upwards@rubyforge.org}
|
15
|
-
s.executables = ["redcloth"]
|
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"]
|
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"]
|
18
|
-
s.homepage = %q{http://redcloth.org}
|
19
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "RedCloth", "--main", "README"]
|
20
|
-
s.require_paths = ["lib", "ext", "lib/case_sensitive_require"]
|
21
|
-
s.required_ruby_version = Gem::Requirement.new(">= 1.8.4")
|
22
|
-
s.rubyforge_project = %q{redcloth}
|
23
|
-
s.rubygems_version = %q{1.3.6}
|
24
|
-
s.summary = %q{RedCloth-4.2.3 - Textile parser for Ruby. http://redcloth.org/}
|
25
|
-
|
26
|
-
if s.respond_to? :specification_version then
|
27
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
28
|
-
s.specification_version = 3
|
29
|
-
|
30
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
31
|
-
else
|
32
|
-
end
|
33
|
-
else
|
34
|
-
end
|
35
|
-
end
|
data/lib/redcloth_scan.so
DELETED
Binary file
|
data/spec/differs/inline.rb
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
require "spec/runner/differs/load-diff-lcs"
|
2
|
-
require 'pp'
|
3
|
-
|
4
|
-
module RedClothDiffers
|
5
|
-
unless defined?(Inline)
|
6
|
-
class Inline
|
7
|
-
def initialize(options)
|
8
|
-
@options = options
|
9
|
-
end
|
10
|
-
|
11
|
-
DIFF_ASCII_COLORS = {
|
12
|
-
"=" => "\e[0m",
|
13
|
-
"+" => "\e[42m",
|
14
|
-
"-" => "\e[41m",
|
15
|
-
"!" => "\e[43m"
|
16
|
-
}
|
17
|
-
|
18
|
-
def diff_as_string(data_new, data_old)
|
19
|
-
output = "\e[0m"
|
20
|
-
last_action = nil
|
21
|
-
sdiff = Diff::LCS.sdiff(data_old, data_new)
|
22
|
-
sdiff.each do |change|
|
23
|
-
unless change.action == last_action
|
24
|
-
output << DIFF_ASCII_COLORS[change.action]
|
25
|
-
last_action = change.action
|
26
|
-
end
|
27
|
-
output << case change.action
|
28
|
-
when "+"
|
29
|
-
change.new_element
|
30
|
-
when "-"
|
31
|
-
change.old_element
|
32
|
-
when "="
|
33
|
-
change.old_element
|
34
|
-
when "!"
|
35
|
-
change.old_element
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
output
|
40
|
-
end
|
41
|
-
|
42
|
-
def diff_as_object(target,expected)
|
43
|
-
diff_as_string(PP.pp(target,""), PP.pp(expected,""))
|
44
|
-
end
|
45
|
-
end
|
46
|
-
|
47
|
-
end
|
48
|
-
end
|
data/spec/spec.opts
DELETED