rdiscount 1.5.8 → 1.5.8.1
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/Rakefile +6 -6
- data/ext/config.h +11 -0
- data/ext/dumptree.c +0 -0
- data/ext/extconf.rb +2 -0
- data/lib/rdiscount.rb +1 -1
- data/rdiscount.gemspec +2 -2
- metadata +13 -5
data/Rakefile
CHANGED
@@ -10,18 +10,18 @@ task :default => :test
|
|
10
10
|
DLEXT = Config::CONFIG['DLEXT']
|
11
11
|
RUBYDIGEST = Digest::MD5.hexdigest(`#{RUBY} --version`)
|
12
12
|
|
13
|
-
file 'ext/Makefile' => FileList['ext/*.{c,h,rb}'] do
|
14
|
-
chdir('ext') { ruby 'extconf.rb' }
|
15
|
-
end
|
16
|
-
CLEAN.include 'ext/Makefile', 'ext/mkmf.log'
|
17
|
-
|
18
13
|
file "ext/ruby-#{RUBYDIGEST}" do |f|
|
19
14
|
rm_f FileList["ext/ruby-*"]
|
20
15
|
touch f.name
|
21
16
|
end
|
22
17
|
CLEAN.include "ext/ruby-*"
|
23
18
|
|
24
|
-
file
|
19
|
+
file 'ext/Makefile' => FileList['ext/*.{c,h,rb}', "ext/ruby-#{RUBYDIGEST}"] do
|
20
|
+
chdir('ext') { ruby 'extconf.rb' }
|
21
|
+
end
|
22
|
+
CLEAN.include 'ext/Makefile', 'ext/mkmf.log'
|
23
|
+
|
24
|
+
file "ext/rdiscount.#{DLEXT}" => FileList["ext/Makefile"] do |f|
|
25
25
|
sh 'cd ext && make clean && make'
|
26
26
|
end
|
27
27
|
CLEAN.include 'ext/*.{o,bundle,so,dll}'
|
data/ext/config.h
CHANGED
@@ -4,6 +4,17 @@
|
|
4
4
|
#undef USE_AMALLOC
|
5
5
|
|
6
6
|
#define TABSTOP 4
|
7
|
+
|
8
|
+
#if HAVE_RANDOM
|
7
9
|
#define COINTOSS() (random()&1)
|
10
|
+
#elif HAVE_RAND
|
11
|
+
#define COINTOSS() (rand()&1)
|
12
|
+
#endif
|
13
|
+
|
14
|
+
#if HAVE_SRANDOM
|
8
15
|
#define INITRNG(x) srandom((unsigned int)x)
|
16
|
+
#elif HAVE_SRAND
|
17
|
+
#define INITRNG(x) srand((unsigned int)x)
|
18
|
+
#endif
|
19
|
+
|
9
20
|
#define RELAXED_EMPHASIS 1
|
data/ext/dumptree.c
CHANGED
File without changes
|
data/ext/extconf.rb
CHANGED
data/lib/rdiscount.rb
CHANGED
data/rdiscount.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'rdiscount'
|
3
|
-
s.version = '1.5.8'
|
3
|
+
s.version = '1.5.8.1'
|
4
4
|
s.summary = "Fast Implementation of Gruber's Markdown in C"
|
5
|
-
s.date = '2010-
|
5
|
+
s.date = '2010-03-08'
|
6
6
|
s.email = 'r@tomayko.com'
|
7
7
|
s.homepage = 'http://github.com/rtomayko/rdiscount'
|
8
8
|
s.has_rdoc = true
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rdiscount
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 5
|
8
|
+
- 8
|
9
|
+
- 1
|
10
|
+
version: 1.5.8.1
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Ryan Tomayko
|
@@ -11,7 +17,7 @@ autorequire:
|
|
11
17
|
bindir: bin
|
12
18
|
cert_chain: []
|
13
19
|
|
14
|
-
date: 2010-
|
20
|
+
date: 2010-03-08 00:00:00 -08:00
|
15
21
|
default_executable:
|
16
22
|
dependencies: []
|
17
23
|
|
@@ -65,18 +71,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
65
71
|
requirements:
|
66
72
|
- - ">="
|
67
73
|
- !ruby/object:Gem::Version
|
74
|
+
segments:
|
75
|
+
- 0
|
68
76
|
version: "0"
|
69
|
-
version:
|
70
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
78
|
requirements:
|
72
79
|
- - ">="
|
73
80
|
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 0
|
74
83
|
version: "0"
|
75
|
-
version:
|
76
84
|
requirements: []
|
77
85
|
|
78
86
|
rubyforge_project: wink
|
79
|
-
rubygems_version: 1.3.
|
87
|
+
rubygems_version: 1.3.6
|
80
88
|
signing_key:
|
81
89
|
specification_version: 3
|
82
90
|
summary: Fast Implementation of Gruber's Markdown in C
|