rdiscount 2.1.7 → 2.1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/BUILDING +9 -5
- data/Rakefile +3 -1
- data/ext/extconf.rb +8 -0
- data/rdiscount.gemspec +3 -2
- data/test/rdiscount_test.rb +23 -1
- metadata +9 -11
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ce73e86e0c677aec5b90f677554315d1f41360fb
|
4
|
+
data.tar.gz: 43f35ed25f2f76ed84658b14906ce6992da09adc
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 66d53cd220bb328d307080b70c1ff1396621f7aeec66bc4322700f0b13c6ece1939661d0b3c1a3d8eac326253eadb713453677b6435e2561c0f6b78c3b76c308
|
7
|
+
data.tar.gz: 8d96c19be797605273e153b05fa71d6ba9e9867f6312e4372239dde6f4bda6f7f2f6e8d81a6404fbe717f395ecaf0321cb6aeb1b5be20dbfc33b8930e3b6e699
|
data/BUILDING
CHANGED
@@ -76,10 +76,14 @@ Worked? Swell! The hard part is past.
|
|
76
76
|
|
77
77
|
Check the Discount release notes to determine whether it has gained any new
|
78
78
|
features that should be exposed through the RDiscount Ruby interface
|
79
|
-
(lib/rdiscount.rb), such as new MKD_* flags
|
80
|
-
Ruby interface.
|
79
|
+
(lib/rdiscount.rb), such as new MKD_* flags or configure flags.
|
80
|
+
If so, update the Ruby interface.
|
81
81
|
|
82
|
-
|
82
|
+
If the ./configure.sh line needs to be changed to support new features,
|
83
|
+
you will need to port some #defines from discount/config.h to ext/config.h
|
84
|
+
manually to get RDiscount's embedded Discount to use the same configure flags.
|
85
|
+
|
86
|
+
For new Discount extensions via new MKD_* flags, you will need to update:
|
83
87
|
|
84
88
|
* lib/rdiscount.rb with new accessors and
|
85
89
|
* the rb_rdiscount__get_flags function in ext/rdiscount.c with new
|
@@ -88,8 +92,8 @@ For new Discount extensions, you will need to update:
|
|
88
92
|
You should also look for RDiscount-specific bugs & feature requests in the
|
89
93
|
GitHub tracker and fix a few.
|
90
94
|
|
91
|
-
If any bugs were fixed or features added
|
92
|
-
|
95
|
+
If any bugs were fixed or features added be sure to also add new tests!
|
96
|
+
And don't forget to rerun the preexisting tests.
|
93
97
|
|
94
98
|
Update the CHANGELOG.
|
95
99
|
|
data/Rakefile
CHANGED
@@ -63,7 +63,9 @@ task 'test:conformance' => [:build] do |t|
|
|
63
63
|
test_version = ENV['MARKDOWN_TEST_VER'] || '1.0.3'
|
64
64
|
lib_dir = "#{pwd}/lib"
|
65
65
|
chdir("test/MarkdownTest_#{test_version}") do
|
66
|
-
|
66
|
+
result = `RUBYLIB=#{lib_dir} ./MarkdownTest.pl --script='#{script}' --tidy`
|
67
|
+
print result
|
68
|
+
fail unless result.include? "; 0 failed."
|
67
69
|
end
|
68
70
|
end
|
69
71
|
|
data/ext/extconf.rb
CHANGED
@@ -34,4 +34,12 @@ end
|
|
34
34
|
|
35
35
|
$defs.push("-DVERSION=\\\"#{VERSION}\\\"")
|
36
36
|
|
37
|
+
# Post XCode 5.1 the command line tools on OS X treat unrecognised
|
38
|
+
# command line options as errors and it's been seen that
|
39
|
+
# -multiply_definedsuppress can trickle from ruby build settings.
|
40
|
+
# Issue 115
|
41
|
+
if /darwin|mac os/.match RbConfig::CONFIG['host_os']
|
42
|
+
$DLDFLAGS.gsub!("-multiply_definedsuppress", "")
|
43
|
+
end
|
44
|
+
|
37
45
|
create_makefile('rdiscount')
|
data/rdiscount.gemspec
CHANGED
@@ -1,11 +1,12 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'rdiscount'
|
3
|
-
s.version = '2.1.7'
|
3
|
+
s.version = '2.1.7.1'
|
4
4
|
s.summary = "Fast Implementation of Gruber's Markdown in C"
|
5
|
-
s.date = '
|
5
|
+
s.date = '2014-04-12'
|
6
6
|
s.email = 'davidfstr@gmail.com'
|
7
7
|
s.homepage = 'http://dafoster.net/projects/rdiscount/'
|
8
8
|
s.authors = ["Ryan Tomayko", "David Loren Parsons", "Andrew White", "David Foster"]
|
9
|
+
s.license = "BSD"
|
9
10
|
# = MANIFEST =
|
10
11
|
s.files = %w[
|
11
12
|
BUILDING
|
data/test/rdiscount_test.rb
CHANGED
@@ -204,6 +204,17 @@ EOS
|
|
204
204
|
assert_equal "<pre><code>line 1\n\nline 2\n</code></pre>\n", rd.to_html
|
205
205
|
end
|
206
206
|
|
207
|
+
def test_that_gfm_code_blocks_work_with_language
|
208
|
+
rd = RDiscount.new(<<EOS)
|
209
|
+
```ruby
|
210
|
+
line 1
|
211
|
+
|
212
|
+
line 2
|
213
|
+
```
|
214
|
+
EOS
|
215
|
+
assert_equal "<pre><code class=\"ruby\">line 1\n\nline 2\n</code></pre>\n", rd.to_html
|
216
|
+
end
|
217
|
+
|
207
218
|
def test_that_pandoc_code_blocks_work
|
208
219
|
rd = RDiscount.new(<<EOS)
|
209
220
|
~~~
|
@@ -230,7 +241,7 @@ EOS
|
|
230
241
|
EOS
|
231
242
|
end
|
232
243
|
|
233
|
-
def
|
244
|
+
def test_that_extra_definition_lists_work
|
234
245
|
rd = RDiscount.new(<<EOS)
|
235
246
|
tag1
|
236
247
|
: data
|
@@ -242,4 +253,15 @@ EOS
|
|
242
253
|
</dl>
|
243
254
|
EOS
|
244
255
|
end
|
256
|
+
|
257
|
+
def test_that_emphasis_beside_international_characters_detected
|
258
|
+
rd = RDiscount.new(%(*foo ä bar*))
|
259
|
+
assert_equal %(<p><em>foo ä bar</em></p>\n), rd.to_html
|
260
|
+
|
261
|
+
rd = RDiscount.new(%(*ä foobar*))
|
262
|
+
assert_equal %(<p><em>ä foobar</em></p>\n), rd.to_html
|
263
|
+
|
264
|
+
rd = RDiscount.new(%(*foobar ä*))
|
265
|
+
assert_equal %(<p><em>foobar ä</em></p>\n), rd.to_html
|
266
|
+
end
|
245
267
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdiscount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.7
|
5
|
-
prerelease:
|
4
|
+
version: 2.1.7.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ryan Tomayko
|
@@ -12,7 +11,7 @@ authors:
|
|
12
11
|
autorequire:
|
13
12
|
bindir: bin
|
14
13
|
cert_chain: []
|
15
|
-
date:
|
14
|
+
date: 2014-04-12 00:00:00.000000000 Z
|
16
15
|
dependencies: []
|
17
16
|
description:
|
18
17
|
email: davidfstr@gmail.com
|
@@ -72,30 +71,29 @@ files:
|
|
72
71
|
- test/markdown_test.rb
|
73
72
|
- test/rdiscount_test.rb
|
74
73
|
homepage: http://dafoster.net/projects/rdiscount/
|
75
|
-
licenses:
|
74
|
+
licenses:
|
75
|
+
- BSD
|
76
|
+
metadata: {}
|
76
77
|
post_install_message:
|
77
78
|
rdoc_options: []
|
78
79
|
require_paths:
|
79
80
|
- lib
|
80
81
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
82
|
requirements:
|
83
|
-
- -
|
83
|
+
- - '!='
|
84
84
|
- !ruby/object:Gem::Version
|
85
85
|
version: 1.9.2
|
86
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
-
none: false
|
88
87
|
requirements:
|
89
|
-
- -
|
88
|
+
- - '>='
|
90
89
|
- !ruby/object:Gem::Version
|
91
90
|
version: '0'
|
92
91
|
requirements: []
|
93
92
|
rubyforge_project: wink
|
94
|
-
rubygems_version:
|
93
|
+
rubygems_version: 2.2.2
|
95
94
|
signing_key:
|
96
|
-
specification_version:
|
95
|
+
specification_version: 4
|
97
96
|
summary: Fast Implementation of Gruber's Markdown in C
|
98
97
|
test_files:
|
99
98
|
- test/markdown_test.rb
|
100
99
|
- test/rdiscount_test.rb
|
101
|
-
has_rdoc:
|