RedCloth 4.2.9 → 4.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG +40 -3
- data/Gemfile +3 -3
- data/README.rdoc +29 -36
- data/Rakefile +1 -2
- data/ext/redcloth_scan/extconf.rb +0 -1
- data/ext/redcloth_scan/redcloth_inline.c +4 -4
- data/ext/redcloth_scan/redcloth_scan.c +77 -77
- data/lib/redcloth/formatters/base.rb +1 -1
- data/lib/redcloth/formatters/html.rb +15 -7
- data/lib/redcloth/formatters/latex.rb +6 -4
- data/lib/redcloth/version.rb +7 -7
- data/lib/redcloth.rb +5 -0
- data/redcloth.gemspec +22 -28
- data/spec/custom_tags_spec.rb +7 -7
- data/spec/erb_spec.rb +1 -1
- data/spec/extension_spec.rb +1 -1
- data/spec/fixtures/threshold.yml +1 -1
- data/spec/formatters/html_spec.rb +2 -2
- data/spec/formatters/latex_spec.rb +2 -2
- data/spec/parser_spec.rb +8 -7
- data/spec/security/CVE-2012-6684_spec.rb +33 -0
- data/spec/security/CVE-2023-31606_spec.rb +49 -0
- data/spec/spec_helper.rb +4 -4
- data/tasks/compile.rake +7 -16
- data/tasks/ragel_extension_task.rb +1 -12
- data/tasks/release.rake +11 -11
- data/tasks/rvm.rake +5 -3
- metadata +101 -151
- data/lib/redcloth_scan.jar +0 -0
- data/tasks/gems.rake +0 -37
metadata
CHANGED
@@ -1,140 +1,100 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: RedCloth
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 4
|
8
|
-
- 2
|
9
|
-
- 9
|
10
|
-
version: 4.2.9
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 4.3.4
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Jason Garber
|
14
|
-
-
|
8
|
+
- Joshua Siler
|
15
9
|
- Ola Bini
|
16
|
-
autorequire:
|
10
|
+
autorequire:
|
17
11
|
bindir: bin
|
18
12
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2024-03-13 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
23
16
|
name: bundler
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
hash: 3
|
31
|
-
segments:
|
32
|
-
- 1
|
33
|
-
- 0
|
34
|
-
- 10
|
35
|
-
version: 1.0.10
|
36
|
-
type: :development
|
37
|
-
version_requirements: *id001
|
38
|
-
- !ruby/object:Gem::Dependency
|
39
|
-
name: rake
|
40
|
-
prerelease: false
|
41
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
-
none: false
|
43
|
-
requirements:
|
44
|
-
- - ~>
|
45
|
-
- !ruby/object:Gem::Version
|
46
|
-
hash: 49
|
47
|
-
segments:
|
48
|
-
- 0
|
49
|
-
- 8
|
50
|
-
- 7
|
51
|
-
version: 0.8.7
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
|
+
requirements:
|
19
|
+
- - ">"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: 1.3.4
|
52
22
|
type: :development
|
53
|
-
version_requirements: *id002
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: rspec
|
56
23
|
prerelease: false
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
requirements:
|
26
|
+
- - ">"
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
version: 1.3.4
|
29
|
+
- !ruby/object:Gem::Dependency
|
30
|
+
name: rake
|
31
|
+
requirement: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - "~>"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '13'
|
67
36
|
type: :development
|
68
|
-
version_requirements: *id003
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: diff-lcs
|
71
37
|
prerelease: false
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '13'
|
43
|
+
- !ruby/object:Gem::Dependency
|
44
|
+
name: rspec
|
45
|
+
requirement: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '3.12'
|
83
50
|
type: :development
|
84
|
-
version_requirements: *id004
|
85
|
-
- !ruby/object:Gem::Dependency
|
86
|
-
name: rvm
|
87
51
|
prerelease: false
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
52
|
+
version_requirements: !ruby/object:Gem::Requirement
|
53
|
+
requirements:
|
54
|
+
- - "~>"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3.12'
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: diff-lcs
|
59
|
+
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - "~>"
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '1.5'
|
99
64
|
type: :development
|
100
|
-
version_requirements: *id005
|
101
|
-
- !ruby/object:Gem::Dependency
|
102
|
-
name: rake-compiler
|
103
65
|
prerelease: false
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
hash: 1
|
110
|
-
segments:
|
111
|
-
- 0
|
112
|
-
- 7
|
113
|
-
- 1
|
114
|
-
version: 0.7.1
|
115
|
-
type: :development
|
116
|
-
version_requirements: *id006
|
66
|
+
version_requirements: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '1.5'
|
117
71
|
description: Textile parser for Ruby.
|
118
|
-
email:
|
119
|
-
executables:
|
72
|
+
email:
|
73
|
+
executables:
|
120
74
|
- redcloth
|
121
|
-
extensions:
|
75
|
+
extensions:
|
122
76
|
- ext/redcloth_scan/extconf.rb
|
123
|
-
extra_rdoc_files:
|
77
|
+
extra_rdoc_files:
|
124
78
|
- README.rdoc
|
125
79
|
- COPYING
|
126
80
|
- CHANGELOG
|
127
|
-
files:
|
128
|
-
- .gemtest
|
129
|
-
- .rspec
|
81
|
+
files:
|
82
|
+
- ".gemtest"
|
83
|
+
- ".rspec"
|
130
84
|
- CHANGELOG
|
131
85
|
- COPYING
|
132
86
|
- Gemfile
|
133
87
|
- README.rdoc
|
134
88
|
- Rakefile
|
135
|
-
- doc/textile_reference.html
|
136
89
|
- bin/redcloth
|
90
|
+
- doc/textile_reference.html
|
91
|
+
- ext/redcloth_scan/extconf.rb
|
92
|
+
- ext/redcloth_scan/redcloth.h
|
93
|
+
- ext/redcloth_scan/redcloth_attributes.c
|
94
|
+
- ext/redcloth_scan/redcloth_inline.c
|
95
|
+
- ext/redcloth_scan/redcloth_scan.c
|
137
96
|
- lib/case_sensitive_require/RedCloth.rb
|
97
|
+
- lib/redcloth.rb
|
138
98
|
- lib/redcloth/erb_extension.rb
|
139
99
|
- lib/redcloth/formatters/base.rb
|
140
100
|
- lib/redcloth/formatters/html.rb
|
@@ -142,8 +102,6 @@ files:
|
|
142
102
|
- lib/redcloth/formatters/latex_entities.yml
|
143
103
|
- lib/redcloth/textile_doc.rb
|
144
104
|
- lib/redcloth/version.rb
|
145
|
-
- lib/redcloth.rb
|
146
|
-
- lib/redcloth_scan.jar
|
147
105
|
- lib/tasks/pureruby.rake
|
148
106
|
- redcloth.gemspec
|
149
107
|
- spec/benchmark_spec.rb
|
@@ -177,60 +135,50 @@ files:
|
|
177
135
|
- spec/formatters/sanitized_html_spec.rb
|
178
136
|
- spec/formatters/style_filtered_html_spec.rb
|
179
137
|
- spec/parser_spec.rb
|
138
|
+
- spec/security/CVE-2012-6684_spec.rb
|
139
|
+
- spec/security/CVE-2023-31606_spec.rb
|
180
140
|
- spec/spec_helper.rb
|
181
141
|
- tasks/compile.rake
|
182
|
-
- tasks/gems.rake
|
183
142
|
- tasks/ragel_extension_task.rb
|
184
143
|
- tasks/release.rake
|
185
144
|
- tasks/rspec.rake
|
186
145
|
- tasks/rvm.rake
|
187
|
-
|
188
|
-
|
189
|
-
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
- --
|
198
|
-
- --
|
199
|
-
- --
|
200
|
-
- --title
|
146
|
+
homepage: https://github.com/jgarber/redcloth
|
147
|
+
licenses:
|
148
|
+
- MIT
|
149
|
+
metadata:
|
150
|
+
bug_tracker_uri: https://github.com/jgarber/redcloth/issues
|
151
|
+
changelog_uri: https://github.com/jgarber/redcloth/blob/master/CHANGELOG
|
152
|
+
source_code_uri: https://github.com/jgarber/redcloth
|
153
|
+
post_install_message:
|
154
|
+
rdoc_options:
|
155
|
+
- "--charset=UTF-8"
|
156
|
+
- "--line-numbers"
|
157
|
+
- "--inline-source"
|
158
|
+
- "--title"
|
201
159
|
- RedCloth
|
202
|
-
- --main
|
160
|
+
- "--main"
|
203
161
|
- README.rdoc
|
204
|
-
require_paths:
|
162
|
+
require_paths:
|
205
163
|
- lib
|
206
164
|
- lib/case_sensitive_require
|
207
165
|
- ext
|
208
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
209
|
-
|
210
|
-
requirements:
|
166
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
211
168
|
- - ">="
|
212
|
-
- !ruby/object:Gem::Version
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
version: "0"
|
217
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
218
|
-
none: false
|
219
|
-
requirements:
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '2.4'
|
171
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
172
|
+
requirements:
|
220
173
|
- - ">="
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
|
223
|
-
segments:
|
224
|
-
- 0
|
225
|
-
version: "0"
|
174
|
+
- !ruby/object:Gem::Version
|
175
|
+
version: '0'
|
226
176
|
requirements: []
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
summary: RedCloth-4.2.9
|
233
|
-
test_files:
|
177
|
+
rubygems_version: 3.5.6
|
178
|
+
signing_key:
|
179
|
+
specification_version: 4
|
180
|
+
summary: RedCloth-4.3.4
|
181
|
+
test_files:
|
234
182
|
- spec/benchmark_spec.rb
|
235
183
|
- spec/custom_tags_spec.rb
|
236
184
|
- spec/erb_spec.rb
|
@@ -262,4 +210,6 @@ test_files:
|
|
262
210
|
- spec/formatters/sanitized_html_spec.rb
|
263
211
|
- spec/formatters/style_filtered_html_spec.rb
|
264
212
|
- spec/parser_spec.rb
|
213
|
+
- spec/security/CVE-2012-6684_spec.rb
|
214
|
+
- spec/security/CVE-2023-31606_spec.rb
|
265
215
|
- spec/spec_helper.rb
|
data/lib/redcloth_scan.jar
DELETED
Binary file
|
data/tasks/gems.rake
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
Rake::Task['build'].prerequisites.unshift('compile')
|
2
|
-
|
3
|
-
namespace :build do
|
4
|
-
desc "Generate Windows binary gems"
|
5
|
-
task :win do
|
6
|
-
unless File.directory?(File.expand_path('~/.rake-compiler'))
|
7
|
-
STDERR.puts <<-EOM
|
8
|
-
|
9
|
-
You must install Windows rubies to ~/.rake-compiler with:
|
10
|
-
|
11
|
-
rake-compiler cross-ruby VERSION=1.8.6-p398
|
12
|
-
# (Later 1.9.1 patch levels don't compile on mingw)
|
13
|
-
rake-compiler cross-ruby VERSION=1.9.1-p243
|
14
|
-
EOM
|
15
|
-
exit(1)
|
16
|
-
end
|
17
|
-
# rvm and mingw ruby versions have to match to avoid errors
|
18
|
-
sh "rvm ruby-1.8.6-p398@redcloth rake cross compile RUBY_CC_VERSION=1.8.6"
|
19
|
-
sh "rvm ruby-1.9.1-p243@redcloth rake cross compile RUBY_CC_VERSION=1.9.1"
|
20
|
-
# This will copy the .so files to the proper place
|
21
|
-
sh "rake cross native gem RUBY_CC_VERSION=1.8.6:1.9.1"
|
22
|
-
end
|
23
|
-
|
24
|
-
desc 'Generate JRuby binary gem'
|
25
|
-
task :jruby do
|
26
|
-
sh "rvm jruby@redcloth rake java gem"
|
27
|
-
end
|
28
|
-
|
29
|
-
desc "Build ruby, windows, and jruby gems into the pkg directory"
|
30
|
-
task :all => [
|
31
|
-
:clobber,
|
32
|
-
"rvm:spec",
|
33
|
-
:jruby,
|
34
|
-
:win,
|
35
|
-
:build
|
36
|
-
]
|
37
|
-
end
|