RedCloth 4.2.3 → 4.2.4.pre1

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,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
-
7
- s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
- s.authors = ["Jason Garber"]
9
- s.date = %q{2010-03-01}
10
- s.default_executable = %q{redcloth}
11
- s.description = %q{RedCloth-4.2.3 - Textile parser for Ruby.
12
- http://redcloth.org/}
13
- s.email = %q{redcloth-upwards@rubyforge.org}
14
- s.executables = ["redcloth"]
15
- s.extensions = ["ext/redcloth_scan/extconf.rb"]
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", "ext/redcloth_scan/redcloth_attributes.c", "ext/redcloth_scan/redcloth_inline.c", "ext/redcloth_scan/redcloth_scan.c"]
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
@@ -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
@@ -1,3 +0,0 @@
1
- --color
2
- --require=spec/differs/inline.rb
3
- --diff=RedClothDiffers::Inline