bluecloth 2.0.7-x86-mswin32 → 2.0.11pre158-x86-mswin32
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.tar.gz.sig +0 -0
- data/.gemtest +0 -0
- data/History.md +4 -0
- data/LICENSE +1 -1
- data/Manifest.txt +103 -0
- data/README.md +103 -0
- data/Rakefile +95 -301
- data/ext/VERSION +1 -1
- data/ext/bluecloth.c +69 -23
- data/ext/bluecloth.h +13 -2
- data/ext/config.h +13 -2
- data/ext/css.c +14 -5
- data/ext/cstring.h +4 -2
- data/ext/docheader.c +13 -7
- data/ext/emmatch.c +188 -0
- data/ext/extconf.rb +7 -9
- data/ext/generate.c +333 -293
- data/ext/html5.c +24 -0
- data/ext/markdown.c +326 -185
- data/ext/markdown.h +52 -29
- data/ext/mkdio.c +82 -41
- data/ext/mkdio.h +44 -23
- data/ext/resource.c +4 -2
- data/ext/setup.c +47 -0
- data/ext/tags.c +123 -0
- data/ext/tags.h +19 -0
- data/lib/1.8/bluecloth_ext.so +0 -0
- data/lib/1.9/bluecloth_ext.so +0 -0
- data/lib/bluecloth.rb +77 -42
- data/spec/bluecloth/101_changes_spec.rb +18 -21
- data/spec/bluecloth/TEMPLATE +36 -0
- data/spec/bluecloth/autolinks_spec.rb +4 -7
- data/spec/bluecloth/blockquotes_spec.rb +20 -23
- data/spec/bluecloth/code_spans_spec.rb +2 -5
- data/spec/bluecloth/emphasis_spec.rb +2 -5
- data/spec/bluecloth/entities_spec.rb +2 -5
- data/spec/bluecloth/hrules_spec.rb +2 -5
- data/spec/bluecloth/images_spec.rb +2 -5
- data/spec/bluecloth/inline_html_spec.rb +26 -66
- data/spec/bluecloth/links_spec.rb +1 -5
- data/spec/bluecloth/lists_spec.rb +2 -5
- data/spec/bluecloth/paragraphs_spec.rb +2 -5
- data/spec/bluecloth/titles_spec.rb +2 -5
- data/spec/bluecloth_spec.rb +36 -22
- data/spec/bugfix_spec.rb +90 -10
- data/spec/contributions_spec.rb +2 -3
- data/spec/discount_spec.rb +50 -10
- data/spec/lib/helpers.rb +18 -117
- data/spec/lib/matchers.rb +7 -18
- data/spec/markdowntest_spec.rb +3 -39
- metadata +257 -143
- metadata.gz.sig +0 -0
- data/ChangeLog +0 -387
- data/README +0 -81
- data/Rakefile.local +0 -41
- data/rake/191_compat.rb +0 -26
- data/rake/dependencies.rb +0 -76
- data/rake/helpers.rb +0 -435
- data/rake/hg.rb +0 -273
- data/rake/manual.rb +0 -782
- data/rake/packaging.rb +0 -123
- data/rake/publishing.rb +0 -274
- data/rake/rdoc.rb +0 -30
- data/rake/style.rb +0 -62
- data/rake/svn.rb +0 -668
- data/rake/testing.rb +0 -187
- data/rake/verifytask.rb +0 -64
data/spec/lib/helpers.rb
CHANGED
@@ -1,137 +1,38 @@
|
|
1
1
|
#!/usr/bin/ruby
|
2
2
|
# encoding: utf-8
|
3
3
|
|
4
|
-
require '
|
4
|
+
require 'rspec'
|
5
5
|
require 'bluecloth'
|
6
6
|
|
7
|
+
require 'spec/lib/constants'
|
8
|
+
require 'spec/lib/matchers'
|
7
9
|
|
8
10
|
module BlueCloth::SpecHelpers
|
11
|
+
include BlueCloth::Matchers
|
9
12
|
|
10
13
|
###############
|
11
14
|
module_function
|
12
15
|
###############
|
13
16
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
# Override the badly-formatted output of the RSpec HTML formatter
|
18
|
-
require 'spec/runner/formatter/html_formatter'
|
19
|
-
|
20
|
-
class Spec::Runner::Formatter::HtmlFormatter
|
21
|
-
def example_failed( example, counter, failure )
|
22
|
-
failure_style = failure.pending_fixed? ? 'pending_fixed' : 'failed'
|
23
|
-
|
24
|
-
unless @header_red
|
25
|
-
@output.puts " <script type=\"text/javascript\">makeRed('rspec-header');</script>"
|
26
|
-
@header_red = true
|
27
|
-
end
|
28
|
-
|
29
|
-
unless @example_group_red
|
30
|
-
css_class = 'example_group_%d' % [current_example_group_number||0]
|
31
|
-
@output.puts " <script type=\"text/javascript\">makeRed('#{css_class}');</script>"
|
32
|
-
@example_group_red = true
|
33
|
-
end
|
34
|
-
|
35
|
-
move_progress()
|
36
|
-
|
37
|
-
@output.puts " <dd class=\"spec #{failure_style}\">",
|
38
|
-
" <span class=\"failed_spec_name\">#{h(example.description)}</span>",
|
39
|
-
" <div class=\"failure\" id=\"failure_#{counter}\">"
|
40
|
-
if failure.exception
|
41
|
-
backtrace = format_backtrace( failure.exception.backtrace )
|
42
|
-
message = failure.exception.message
|
43
|
-
|
44
|
-
@output.puts " <div class=\"message\"><code>#{h message}</code></div>",
|
45
|
-
" <div class=\"backtrace\"><pre>#{backtrace}</pre></div>"
|
46
|
-
end
|
47
|
-
|
48
|
-
if extra = extra_failure_content( failure )
|
49
|
-
@output.puts( extra )
|
50
|
-
end
|
51
|
-
|
52
|
-
@output.puts " </div>",
|
53
|
-
" </dd>"
|
54
|
-
@output.flush
|
17
|
+
### Make an easily-comparable version vector out of +ver+ and return it.
|
18
|
+
def vvec( ver )
|
19
|
+
return ver.split('.').collect {|char| char.to_i }.pack('N*')
|
55
20
|
end
|
56
21
|
|
22
|
+
end # module BlueCloth::SpecHelpers
|
57
23
|
|
58
|
-
alias_method :default_global_styles, :global_styles
|
59
|
-
|
60
|
-
def global_styles
|
61
|
-
css = default_global_styles()
|
62
|
-
css << %Q{
|
63
|
-
/* Stuff added by #{__FILE__} */
|
64
|
-
|
65
|
-
/* Overrides */
|
66
|
-
#rspec-header {
|
67
|
-
-webkit-box-shadow: #333 0 2px 5px;
|
68
|
-
margin-bottom: 1em;
|
69
|
-
}
|
70
24
|
|
71
|
-
|
72
|
-
|
73
|
-
|
25
|
+
### Mock with Rspec
|
26
|
+
Rspec.configure do |c|
|
27
|
+
c.mock_with :rspec
|
74
28
|
|
75
|
-
|
76
|
-
|
77
|
-
background: #eee;
|
78
|
-
padding: 0 2em;
|
79
|
-
margin: 0.2em 1em;
|
80
|
-
border-bottom: 1px dotted #999;
|
81
|
-
border-top: 1px dotted #999;
|
82
|
-
text-indent: -1em;
|
83
|
-
}
|
29
|
+
c.include( BlueCloth::SpecHelpers )
|
30
|
+
c.include( BlueCloth::Matchers )
|
84
31
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
dd.log-message .log-time:after {
|
90
|
-
content: ": ";
|
91
|
-
}
|
92
|
-
dd.log-message .log-level {
|
93
|
-
font-variant: small-caps;
|
94
|
-
border: 1px solid #ccc;
|
95
|
-
padding: 1px 2px;
|
96
|
-
}
|
97
|
-
dd.log-message .log-name {
|
98
|
-
font-size: 1.2em;
|
99
|
-
color: #1e51b2;
|
100
|
-
}
|
101
|
-
dd.log-message .log-name:before { content: "«"; }
|
102
|
-
dd.log-message .log-name:after { content: "»"; }
|
103
|
-
|
104
|
-
dd.log-message .log-message-text {
|
105
|
-
padding-left: 4px;
|
106
|
-
font-family: Monaco, "Andale Mono", "Vera Sans Mono", mono;
|
107
|
-
}
|
108
|
-
|
109
|
-
|
110
|
-
/* Distinguish levels */
|
111
|
-
dd.log-message.debug { color: #666; }
|
112
|
-
dd.log-message.info {}
|
113
|
-
|
114
|
-
dd.log-message.warn,
|
115
|
-
dd.log-message.error {
|
116
|
-
background: #ff9;
|
117
|
-
}
|
118
|
-
dd.log-message.error .log-level,
|
119
|
-
dd.log-message.error .log-message-text {
|
120
|
-
color: #900;
|
121
|
-
}
|
122
|
-
dd.log-message.fatal {
|
123
|
-
background: #900;
|
124
|
-
color: white;
|
125
|
-
font-weight: bold;
|
126
|
-
border: 0;
|
127
|
-
}
|
128
|
-
dd.log-message.fatal .log-name {
|
129
|
-
color: white;
|
130
|
-
}
|
131
|
-
}
|
132
|
-
|
133
|
-
return css
|
134
|
-
end
|
32
|
+
c.filter_run_excluding( :ruby_19_only => true ) if
|
33
|
+
BlueCloth::SpecHelpers.vvec( RUBY_VERSION ) < BlueCloth::SpecHelpers.vvec('1.9.0')
|
34
|
+
c.filter_run_excluding( :pedantic => true ) unless
|
35
|
+
ENV['MAINTAINER_MODE']
|
135
36
|
end
|
136
37
|
|
137
|
-
|
38
|
+
# vim: set nosta noet ts=4 sw=4:
|
data/spec/lib/matchers.rb
CHANGED
@@ -1,13 +1,15 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
+
require 'rubygems'
|
3
4
|
require 'bluecloth'
|
5
|
+
|
6
|
+
require 'tidy'
|
4
7
|
require 'diff/lcs'
|
5
8
|
require 'diff/lcs/callbacks'
|
6
9
|
require 'spec/lib/constants'
|
7
|
-
require 'rbconfig'
|
8
10
|
|
9
11
|
|
10
|
-
###
|
12
|
+
### Expectation matcher classes/functions
|
11
13
|
module BlueCloth::Matchers
|
12
14
|
|
13
15
|
### Matcher for comparing output of a BlueCloth-generated HTML fragment against a known-good
|
@@ -134,24 +136,11 @@ module BlueCloth::Matchers
|
|
134
136
|
class TidyTransformMatcher < TransformMatcher
|
135
137
|
|
136
138
|
TIDY_OPTIONS = {}
|
137
|
-
@tidy = nil
|
138
|
-
|
139
|
-
### Fetch the class-global Tidy object, creating it if necessary
|
140
|
-
def self::tidy_object
|
141
|
-
unless @tidy
|
142
|
-
require 'tidy'
|
143
|
-
soext = Config::CONFIG['LIBRUBY_ALIASES'].sub( /.*\./, '' )
|
144
|
-
Tidy.path = "libtidy.#{soext}"
|
145
|
-
@tidy = Tidy.new( TIDY_OPTIONS )
|
146
|
-
end
|
147
|
-
|
148
|
-
return @tidy
|
149
|
-
end
|
150
|
-
|
151
139
|
|
152
140
|
### Set the matcher's expected output to a tidied version of the input +html+.
|
153
141
|
def initialize( html )
|
154
|
-
@
|
142
|
+
@tidy = Tidy.open( TIDY_OPTIONS )
|
143
|
+
@html = @tidy.clean( html )
|
155
144
|
end
|
156
145
|
|
157
146
|
|
@@ -159,7 +148,7 @@ module BlueCloth::Matchers
|
|
159
148
|
### expected HTML after normalizing them both with 'tidy'.
|
160
149
|
def matches?( bluecloth )
|
161
150
|
@bluecloth = bluecloth
|
162
|
-
@output_html =
|
151
|
+
@output_html = @tidy.clean( bluecloth.to_html )
|
163
152
|
return @output_html == @html
|
164
153
|
end
|
165
154
|
|
data/spec/markdowntest_spec.rb
CHANGED
@@ -7,19 +7,16 @@ BEGIN {
|
|
7
7
|
libdir = basedir + 'lib'
|
8
8
|
extdir = basedir + 'ext'
|
9
9
|
|
10
|
+
$LOAD_PATH.unshift( basedir ) unless $LOAD_PATH.include?( basedir )
|
10
11
|
$LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
|
11
12
|
$LOAD_PATH.unshift( extdir ) unless $LOAD_PATH.include?( extdir )
|
12
13
|
}
|
13
14
|
|
14
|
-
require '
|
15
|
+
require 'rspec'
|
15
16
|
require 'bluecloth'
|
17
|
+
require 'tidy'
|
16
18
|
|
17
19
|
require 'spec/lib/helpers'
|
18
|
-
require 'spec/lib/constants'
|
19
|
-
require 'spec/lib/matchers'
|
20
|
-
|
21
|
-
require 'rbconfig'
|
22
|
-
require 'dl'
|
23
20
|
|
24
21
|
|
25
22
|
#####################################################################
|
@@ -27,39 +24,6 @@ require 'dl'
|
|
27
24
|
#####################################################################
|
28
25
|
|
29
26
|
describe BlueCloth, "-- MarkdownTest 1.0.3: " do
|
30
|
-
include BlueCloth::TestConstants,
|
31
|
-
BlueCloth::Matchers
|
32
|
-
|
33
|
-
before( :all ) do
|
34
|
-
soext = Config::CONFIG['LIBRUBY_ALIASES'].sub( /.*\./, '' )
|
35
|
-
@dlname = "libtidy.#{soext}"
|
36
|
-
|
37
|
-
begin
|
38
|
-
DL.dlopen( @dlname )
|
39
|
-
rescue RuntimeError => err
|
40
|
-
@have_libtidy = false
|
41
|
-
@tidy_error = err.message
|
42
|
-
rescue DL::DLError => err
|
43
|
-
@have_libtidy = false
|
44
|
-
@tidy_error = err.message
|
45
|
-
else
|
46
|
-
@have_libtidy = true
|
47
|
-
@tidy_error = nil
|
48
|
-
end
|
49
|
-
|
50
|
-
begin
|
51
|
-
require 'tidy'
|
52
|
-
rescue LoadError, NameError => err
|
53
|
-
@have_libtidy = false
|
54
|
-
@tidy_error = err.message
|
55
|
-
end
|
56
|
-
|
57
|
-
end
|
58
|
-
|
59
|
-
before( :each ) do
|
60
|
-
pending( "These tests require the tidy library: #@tidy_error" ) unless @have_libtidy
|
61
|
-
end
|
62
|
-
|
63
27
|
|
64
28
|
markdowntest_dir = Pathname.new( __FILE__ ).dirname + 'data/markdowntest'
|
65
29
|
pattern = markdowntest_dir + '*.text'
|
metadata
CHANGED
@@ -1,23 +1,165 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bluecloth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
hash: 1923832205
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 2
|
8
|
+
- 0
|
9
|
+
- 11
|
10
|
+
- pre
|
11
|
+
- 158
|
12
|
+
version: 2.0.11pre158
|
5
13
|
platform: x86-mswin32
|
6
14
|
authors:
|
7
15
|
- Michael Granger
|
8
16
|
autorequire:
|
9
17
|
bindir: bin
|
10
|
-
cert_chain:
|
18
|
+
cert_chain:
|
19
|
+
- |
|
20
|
+
-----BEGIN CERTIFICATE-----
|
21
|
+
MIIDLDCCAhSgAwIBAgIBADANBgkqhkiG9w0BAQUFADA8MQwwCgYDVQQDDANnZWQx
|
22
|
+
FzAVBgoJkiaJk/IsZAEZFgdfYWVyaWVfMRMwEQYKCZImiZPyLGQBGRYDb3JnMB4X
|
23
|
+
DTEwMDkxNjE0NDg1MVoXDTExMDkxNjE0NDg1MVowPDEMMAoGA1UEAwwDZ2VkMRcw
|
24
|
+
FQYKCZImiZPyLGQBGRYHX2FlcmllXzETMBEGCgmSJomT8ixkARkWA29yZzCCASIw
|
25
|
+
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALy//BFxC1f/cPSnwtJBWoFiFrir
|
26
|
+
h7RicI+joq/ocVXQqI4TDWPyF/8tqkvt+rD99X9qs2YeR8CU/YiIpLWrQOYST70J
|
27
|
+
vDn7Uvhb2muFVqq6+vobeTkILBEO6pionWDG8jSbo3qKm1RjKJDwg9p4wNKhPuu8
|
28
|
+
KGue/BFb67KflqyApPmPeb3Vdd9clspzqeFqp7cUBMEpFS6LWxy4Gk+qvFFJBJLB
|
29
|
+
BUHE/LZVJMVzfpC5Uq+QmY7B+FH/QqNndn3tOHgsPadLTNimuB1sCuL1a4z3Pepd
|
30
|
+
TeLBEFmEao5Dk3K/Q8o8vlbIB/jBDTUx6Djbgxw77909x6gI9doU4LD5XMcCAwEA
|
31
|
+
AaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAwHQYDVR0OBBYEFJeoGkOr9l4B
|
32
|
+
+saMkW/ZXT4UeSvVMA0GCSqGSIb3DQEBBQUAA4IBAQBG2KObvYI2eHyyBUJSJ3jN
|
33
|
+
vEnU3d60znAXbrSd2qb3r1lY1EPDD3bcy0MggCfGdg3Xu54z21oqyIdk8uGtWBPL
|
34
|
+
HIa9EgfFGSUEgvcIvaYqiN4jTUtidfEFw+Ltjs8AP9gWgSIYS6Gr38V0WGFFNzIH
|
35
|
+
aOD2wmu9oo/RffW4hS/8GuvfMzcw7CQ355wFR4KB/nyze+EsZ1Y5DerCAagMVuDQ
|
36
|
+
U0BLmWDFzPGGWlPeQCrYHCr+AcJz+NRnaHCKLZdSKj/RHuTOt+gblRex8FAh8NeA
|
37
|
+
cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
|
38
|
+
-----END CERTIFICATE-----
|
11
39
|
|
12
|
-
date:
|
40
|
+
date: 2011-02-10 00:00:00 -08:00
|
13
41
|
default_executable:
|
14
|
-
dependencies:
|
15
|
-
|
42
|
+
dependencies:
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: hoe-mercurial
|
45
|
+
prerelease: false
|
46
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
47
|
+
none: false
|
48
|
+
requirements:
|
49
|
+
- - ~>
|
50
|
+
- !ruby/object:Gem::Version
|
51
|
+
hash: 29
|
52
|
+
segments:
|
53
|
+
- 1
|
54
|
+
- 2
|
55
|
+
- 1
|
56
|
+
version: 1.2.1
|
57
|
+
type: :development
|
58
|
+
version_requirements: *id001
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: hoe-yard
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
hash: 31
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
- 1
|
71
|
+
- 2
|
72
|
+
version: 0.1.2
|
73
|
+
type: :development
|
74
|
+
version_requirements: *id002
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: tidy-ext
|
77
|
+
prerelease: false
|
78
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 9
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
- 1
|
87
|
+
version: "0.1"
|
88
|
+
type: :development
|
89
|
+
version_requirements: *id003
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rspec
|
92
|
+
prerelease: false
|
93
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
95
|
+
requirements:
|
96
|
+
- - ~>
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
hash: 11
|
99
|
+
segments:
|
100
|
+
- 2
|
101
|
+
- 4
|
102
|
+
version: "2.4"
|
103
|
+
type: :development
|
104
|
+
version_requirements: *id004
|
105
|
+
- !ruby/object:Gem::Dependency
|
106
|
+
name: rake-compiler
|
107
|
+
prerelease: false
|
108
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ~>
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
hash: 5
|
114
|
+
segments:
|
115
|
+
- 0
|
116
|
+
- 7
|
117
|
+
version: "0.7"
|
118
|
+
type: :development
|
119
|
+
version_requirements: *id005
|
120
|
+
- !ruby/object:Gem::Dependency
|
121
|
+
name: hoe
|
122
|
+
prerelease: false
|
123
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
124
|
+
none: false
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
hash: 41
|
129
|
+
segments:
|
130
|
+
- 2
|
131
|
+
- 9
|
132
|
+
- 1
|
133
|
+
version: 2.9.1
|
134
|
+
type: :development
|
135
|
+
version_requirements: *id006
|
16
136
|
description: |-
|
17
|
-
BlueCloth is a Ruby implementation of [Markdown][
|
18
|
-
tool for web writers. To quote from the project page:
|
19
|
-
write using an easy-to-read, easy-to-write plain text
|
20
|
-
structurally valid XHTML (or HTML).
|
137
|
+
BlueCloth is a Ruby implementation of John Gruber's [Markdown][markdown], a
|
138
|
+
text-to-HTML conversion tool for web writers. To quote from the project page:
|
139
|
+
Markdown allows you to write using an easy-to-read, easy-to-write plain text
|
140
|
+
format, then convert it to structurally valid XHTML (or HTML).
|
141
|
+
|
142
|
+
It borrows a naming convention and several helpings of interface from
|
143
|
+
[Redcloth][redcloth], Why the Lucky Stiff's processor for a similar
|
144
|
+
text-to-HTML conversion syntax called [Textile][textile].
|
145
|
+
|
146
|
+
BlueCloth 2 is a complete rewrite using David Parsons' [Discount][discount]
|
147
|
+
library, a C implementation of Markdown. I rewrote it using the extension for
|
148
|
+
speed and accuracy; the original BlueCloth was a straight port from the Perl
|
149
|
+
version that I wrote in a few days for my own use just to avoid having to
|
150
|
+
shell out to Markdown.pl, and it was quite buggy and slow. I apologize to all
|
151
|
+
the good people that sent me patches for it that were never released.
|
152
|
+
|
153
|
+
Note that the new gem is called 'bluecloth' and the old one 'BlueCloth'. If
|
154
|
+
you have both installed, you can ensure you're loading the new one with the
|
155
|
+
'gem' directive:
|
156
|
+
|
157
|
+
# Load the 2.0 version
|
158
|
+
gem 'bluecloth', '>= 2.0.0'
|
159
|
+
|
160
|
+
# Load the 1.0 version
|
161
|
+
gem 'BlueCloth'
|
162
|
+
require 'bluecloth'
|
21
163
|
email:
|
22
164
|
- ged@FaerieMUD.org
|
23
165
|
executables:
|
@@ -25,16 +167,44 @@ executables:
|
|
25
167
|
extensions: []
|
26
168
|
|
27
169
|
extra_rdoc_files:
|
28
|
-
-
|
29
|
-
-
|
170
|
+
- Manifest.txt
|
171
|
+
- History.md
|
172
|
+
files:
|
173
|
+
- .gemtest
|
174
|
+
- History.md
|
175
|
+
- Manifest.txt
|
30
176
|
- LICENSE
|
31
177
|
- LICENSE.discount
|
32
|
-
|
178
|
+
- README.md
|
33
179
|
- Rakefile
|
34
|
-
-
|
35
|
-
-
|
36
|
-
-
|
180
|
+
- bin/bluecloth
|
181
|
+
- ext/Csio.c
|
182
|
+
- ext/VERSION
|
183
|
+
- ext/amalloc.h
|
184
|
+
- ext/bluecloth.c
|
185
|
+
- ext/bluecloth.h
|
186
|
+
- ext/config.h
|
187
|
+
- ext/css.c
|
188
|
+
- ext/cstring.h
|
189
|
+
- ext/docheader.c
|
190
|
+
- ext/emmatch.c
|
191
|
+
- ext/extconf.rb
|
192
|
+
- ext/generate.c
|
193
|
+
- ext/html5.c
|
194
|
+
- ext/markdown.c
|
195
|
+
- ext/markdown.h
|
196
|
+
- ext/mkdio.c
|
197
|
+
- ext/mkdio.h
|
198
|
+
- ext/resource.c
|
199
|
+
- ext/setup.c
|
200
|
+
- ext/tags.c
|
201
|
+
- ext/tags.h
|
202
|
+
- ext/version.c
|
203
|
+
- ext/xml.c
|
204
|
+
- ext/xmlpage.c
|
205
|
+
- lib/bluecloth.rb
|
37
206
|
- spec/bluecloth/101_changes_spec.rb
|
207
|
+
- spec/bluecloth/TEMPLATE
|
38
208
|
- spec/bluecloth/autolinks_spec.rb
|
39
209
|
- spec/bluecloth/blockquotes_spec.rb
|
40
210
|
- spec/bluecloth/code_spans_spec.rb
|
@@ -50,155 +220,99 @@ files:
|
|
50
220
|
- spec/bluecloth_spec.rb
|
51
221
|
- spec/bugfix_spec.rb
|
52
222
|
- spec/contributions_spec.rb
|
223
|
+
- spec/data/antsugar.txt
|
224
|
+
- spec/data/markdowntest/Amps and angle encoding.html
|
225
|
+
- spec/data/markdowntest/Amps and angle encoding.text
|
226
|
+
- spec/data/markdowntest/Auto links.html
|
227
|
+
- spec/data/markdowntest/Auto links.text
|
228
|
+
- spec/data/markdowntest/Backslash escapes.html
|
229
|
+
- spec/data/markdowntest/Backslash escapes.text
|
230
|
+
- spec/data/markdowntest/Blockquotes with code blocks.html
|
231
|
+
- spec/data/markdowntest/Blockquotes with code blocks.text
|
232
|
+
- spec/data/markdowntest/Code Blocks.html
|
233
|
+
- spec/data/markdowntest/Code Blocks.text
|
234
|
+
- spec/data/markdowntest/Code Spans.html
|
235
|
+
- spec/data/markdowntest/Code Spans.text
|
236
|
+
- spec/data/markdowntest/Hard-wrapped paragraphs with list-like lines.html
|
237
|
+
- spec/data/markdowntest/Hard-wrapped paragraphs with list-like lines.text
|
238
|
+
- spec/data/markdowntest/Horizontal rules.html
|
239
|
+
- spec/data/markdowntest/Horizontal rules.text
|
240
|
+
- spec/data/markdowntest/Inline HTML (Advanced).html
|
241
|
+
- spec/data/markdowntest/Inline HTML (Advanced).text
|
242
|
+
- spec/data/markdowntest/Inline HTML (Simple).html
|
243
|
+
- spec/data/markdowntest/Inline HTML (Simple).text
|
244
|
+
- spec/data/markdowntest/Inline HTML comments.html
|
245
|
+
- spec/data/markdowntest/Inline HTML comments.text
|
246
|
+
- spec/data/markdowntest/Links, inline style.html
|
247
|
+
- spec/data/markdowntest/Links, inline style.text
|
248
|
+
- spec/data/markdowntest/Links, reference style.html
|
249
|
+
- spec/data/markdowntest/Links, reference style.text
|
250
|
+
- spec/data/markdowntest/Links, shortcut references.html
|
251
|
+
- spec/data/markdowntest/Links, shortcut references.text
|
252
|
+
- spec/data/markdowntest/Literal quotes in titles.html
|
253
|
+
- spec/data/markdowntest/Literal quotes in titles.text
|
254
|
+
- spec/data/markdowntest/Markdown Documentation - Basics.html
|
255
|
+
- spec/data/markdowntest/Markdown Documentation - Basics.text
|
256
|
+
- spec/data/markdowntest/Markdown Documentation - Syntax.html
|
257
|
+
- spec/data/markdowntest/Markdown Documentation - Syntax.text
|
258
|
+
- spec/data/markdowntest/Nested blockquotes.html
|
259
|
+
- spec/data/markdowntest/Nested blockquotes.text
|
260
|
+
- spec/data/markdowntest/Ordered and unordered lists.html
|
261
|
+
- spec/data/markdowntest/Ordered and unordered lists.text
|
262
|
+
- spec/data/markdowntest/Strong and em together.html
|
263
|
+
- spec/data/markdowntest/Strong and em together.text
|
264
|
+
- spec/data/markdowntest/Tabs.html
|
265
|
+
- spec/data/markdowntest/Tabs.text
|
266
|
+
- spec/data/markdowntest/Tidyness.html
|
267
|
+
- spec/data/markdowntest/Tidyness.text
|
268
|
+
- spec/data/ml-announce.txt
|
269
|
+
- spec/data/re-overflow.txt
|
270
|
+
- spec/data/re-overflow2.txt
|
53
271
|
- spec/discount_spec.rb
|
54
|
-
- spec/markdowntest_spec.rb
|
55
272
|
- spec/lib/constants.rb
|
56
273
|
- spec/lib/helpers.rb
|
57
274
|
- spec/lib/matchers.rb
|
58
|
-
-
|
59
|
-
- lib/bluecloth.rb
|
60
|
-
- ext/bluecloth.c
|
61
|
-
- ext/Csio.c
|
62
|
-
- ext/css.c
|
63
|
-
- ext/docheader.c
|
64
|
-
- ext/generate.c
|
65
|
-
- ext/markdown.c
|
66
|
-
- ext/mkdio.c
|
67
|
-
- ext/resource.c
|
68
|
-
- ext/version.c
|
69
|
-
- ext/xml.c
|
70
|
-
- ext/xmlpage.c
|
71
|
-
- ext/amalloc.h
|
72
|
-
- ext/bluecloth.h
|
73
|
-
- ext/config.h
|
74
|
-
- ext/cstring.h
|
75
|
-
- ext/markdown.h
|
76
|
-
- ext/mkdio.h
|
77
|
-
- ext/extconf.rb
|
78
|
-
- rake/191_compat.rb
|
79
|
-
- rake/dependencies.rb
|
80
|
-
- rake/helpers.rb
|
81
|
-
- rake/hg.rb
|
82
|
-
- rake/manual.rb
|
83
|
-
- rake/packaging.rb
|
84
|
-
- rake/publishing.rb
|
85
|
-
- rake/rdoc.rb
|
86
|
-
- rake/style.rb
|
87
|
-
- rake/svn.rb
|
88
|
-
- rake/testing.rb
|
89
|
-
- rake/verifytask.rb
|
90
|
-
- ./LICENSE.discount
|
91
|
-
- ./spec/data/antsugar.txt
|
92
|
-
- ./spec/data/ml-announce.txt
|
93
|
-
- ./spec/data/re-overflow.txt
|
94
|
-
- ./spec/data/re-overflow2.txt
|
95
|
-
- ./spec/data/markdowntest/Amps and angle encoding.text
|
96
|
-
- ./spec/data/markdowntest/Auto links.text
|
97
|
-
- ./spec/data/markdowntest/Backslash escapes.text
|
98
|
-
- ./spec/data/markdowntest/Blockquotes with code blocks.text
|
99
|
-
- ./spec/data/markdowntest/Code Blocks.text
|
100
|
-
- ./spec/data/markdowntest/Code Spans.text
|
101
|
-
- ./spec/data/markdowntest/Hard-wrapped paragraphs with list-like lines.text
|
102
|
-
- ./spec/data/markdowntest/Horizontal rules.text
|
103
|
-
- ./spec/data/markdowntest/Inline HTML (Advanced).text
|
104
|
-
- ./spec/data/markdowntest/Inline HTML (Simple).text
|
105
|
-
- ./spec/data/markdowntest/Inline HTML comments.text
|
106
|
-
- ./spec/data/markdowntest/Links, inline style.text
|
107
|
-
- ./spec/data/markdowntest/Links, reference style.text
|
108
|
-
- ./spec/data/markdowntest/Links, shortcut references.text
|
109
|
-
- ./spec/data/markdowntest/Literal quotes in titles.text
|
110
|
-
- ./spec/data/markdowntest/Markdown Documentation - Basics.text
|
111
|
-
- ./spec/data/markdowntest/Markdown Documentation - Syntax.text
|
112
|
-
- ./spec/data/markdowntest/Nested blockquotes.text
|
113
|
-
- ./spec/data/markdowntest/Ordered and unordered lists.text
|
114
|
-
- ./spec/data/markdowntest/Strong and em together.text
|
115
|
-
- ./spec/data/markdowntest/Tabs.text
|
116
|
-
- ./spec/data/markdowntest/Tidyness.text
|
117
|
-
- ./spec/data/markdowntest/Amps and angle encoding.html
|
118
|
-
- ./spec/data/markdowntest/Auto links.html
|
119
|
-
- ./spec/data/markdowntest/Backslash escapes.html
|
120
|
-
- ./spec/data/markdowntest/Blockquotes with code blocks.html
|
121
|
-
- ./spec/data/markdowntest/Code Blocks.html
|
122
|
-
- ./spec/data/markdowntest/Code Spans.html
|
123
|
-
- ./spec/data/markdowntest/Hard-wrapped paragraphs with list-like lines.html
|
124
|
-
- ./spec/data/markdowntest/Horizontal rules.html
|
125
|
-
- ./spec/data/markdowntest/Inline HTML (Advanced).html
|
126
|
-
- ./spec/data/markdowntest/Inline HTML (Simple).html
|
127
|
-
- ./spec/data/markdowntest/Inline HTML comments.html
|
128
|
-
- ./spec/data/markdowntest/Links, inline style.html
|
129
|
-
- ./spec/data/markdowntest/Links, reference style.html
|
130
|
-
- ./spec/data/markdowntest/Links, shortcut references.html
|
131
|
-
- ./spec/data/markdowntest/Literal quotes in titles.html
|
132
|
-
- ./spec/data/markdowntest/Markdown Documentation - Basics.html
|
133
|
-
- ./spec/data/markdowntest/Markdown Documentation - Syntax.html
|
134
|
-
- ./spec/data/markdowntest/Nested blockquotes.html
|
135
|
-
- ./spec/data/markdowntest/Ordered and unordered lists.html
|
136
|
-
- ./spec/data/markdowntest/Strong and em together.html
|
137
|
-
- ./spec/data/markdowntest/Tabs.html
|
138
|
-
- ./spec/data/markdowntest/Tidyness.html
|
139
|
-
- ./ext/VERSION
|
140
|
-
- Rakefile.local
|
141
|
-
- LICENSE.discount
|
275
|
+
- spec/markdowntest_spec.rb
|
142
276
|
- lib/1.8/bluecloth_ext.so
|
143
277
|
- lib/1.9/bluecloth_ext.so
|
144
278
|
has_rdoc: true
|
145
|
-
homepage: http://deveiate.org/projects/BlueCloth
|
146
|
-
licenses:
|
147
|
-
|
279
|
+
homepage: http://deveiate.org/projects/BlueCloth
|
280
|
+
licenses:
|
281
|
+
- BSD
|
148
282
|
post_install_message:
|
149
283
|
rdoc_options:
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
- .
|
155
|
-
- -m
|
156
|
-
- README
|
157
|
-
- -t
|
158
|
-
- bluecloth
|
159
|
-
- -W
|
160
|
-
- http://deveiate.org/projects/BlueCloth/browser/
|
284
|
+
- --protected
|
285
|
+
- --verbose
|
286
|
+
- --title
|
287
|
+
- Bluecloth Documentation
|
161
288
|
require_paths:
|
162
289
|
- lib
|
163
|
-
- ext
|
164
290
|
required_ruby_version: !ruby/object:Gem::Requirement
|
291
|
+
none: false
|
165
292
|
requirements:
|
166
293
|
- - ">="
|
167
294
|
- !ruby/object:Gem::Version
|
168
|
-
|
169
|
-
|
295
|
+
hash: 57
|
296
|
+
segments:
|
297
|
+
- 1
|
298
|
+
- 8
|
299
|
+
- 7
|
300
|
+
version: 1.8.7
|
170
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
|
+
none: false
|
171
303
|
requirements:
|
172
304
|
- - ">="
|
173
305
|
- !ruby/object:Gem::Version
|
306
|
+
hash: 3
|
307
|
+
segments:
|
308
|
+
- 0
|
174
309
|
version: "0"
|
175
|
-
version:
|
176
310
|
requirements: []
|
177
311
|
|
178
|
-
rubyforge_project:
|
179
|
-
rubygems_version: 1.
|
312
|
+
rubyforge_project: bluecloth
|
313
|
+
rubygems_version: 1.5.0
|
180
314
|
signing_key:
|
181
315
|
specification_version: 3
|
182
|
-
summary: BlueCloth is a Ruby implementation of Markdown
|
183
|
-
test_files:
|
184
|
-
|
185
|
-
- spec/bluecloth/autolinks_spec.rb
|
186
|
-
- spec/bluecloth/blockquotes_spec.rb
|
187
|
-
- spec/bluecloth/code_spans_spec.rb
|
188
|
-
- spec/bluecloth/emphasis_spec.rb
|
189
|
-
- spec/bluecloth/entities_spec.rb
|
190
|
-
- spec/bluecloth/hrules_spec.rb
|
191
|
-
- spec/bluecloth/images_spec.rb
|
192
|
-
- spec/bluecloth/inline_html_spec.rb
|
193
|
-
- spec/bluecloth/links_spec.rb
|
194
|
-
- spec/bluecloth/lists_spec.rb
|
195
|
-
- spec/bluecloth/paragraphs_spec.rb
|
196
|
-
- spec/bluecloth/titles_spec.rb
|
197
|
-
- spec/bluecloth_spec.rb
|
198
|
-
- spec/bugfix_spec.rb
|
199
|
-
- spec/contributions_spec.rb
|
200
|
-
- spec/discount_spec.rb
|
201
|
-
- spec/markdowntest_spec.rb
|
202
|
-
- spec/lib/constants.rb
|
203
|
-
- spec/lib/helpers.rb
|
204
|
-
- spec/lib/matchers.rb
|
316
|
+
summary: BlueCloth is a Ruby implementation of John Gruber's [Markdown][markdown], a text-to-HTML conversion tool for web writers
|
317
|
+
test_files: []
|
318
|
+
|