rdiscount 2.0.7.1 → 2.0.7.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/ext/config.h +2 -0
  2. data/ext/extconf.rb +15 -3
  3. data/rdiscount.gemspec +4 -2
  4. metadata +41 -23
data/ext/config.h CHANGED
@@ -20,4 +20,6 @@
20
20
  #define INITRNG(x) srand((unsigned int)x)
21
21
  #endif
22
22
 
23
+ #include "ruby-config.h"
24
+
23
25
  #endif/* __MARKDOWN_D */
data/ext/extconf.rb CHANGED
@@ -17,9 +17,21 @@ WORD = sized_int(2, ["unsigned int", "unsigned short"])
17
17
  BYTE = "unsigned char"
18
18
  VERSION = IO.read('VERSION').strip
19
19
 
20
- $defs.push("-DDWORD='#{DWORD}'")
21
- $defs.push("-DWORD='#{WORD}'")
22
- $defs.push("-DBYTE='#{BYTE}'")
20
+ open(File.join(File.dirname(__FILE__), "ruby-config.h"), "wb") do |f|
21
+ f.write <<-EOF
22
+ // These data types may be already defined if building on Windows (using MinGW)
23
+ #ifndef DWORD
24
+ #define DWORD #{DWORD}
25
+ #endif
26
+ #ifndef WORD
27
+ #define WORD #{WORD}
28
+ #endif
29
+ #ifndef BYTE
30
+ #define BYTE #{BYTE}
31
+ #endif
32
+ EOF
33
+ end
34
+
23
35
  $defs.push("-DVERSION=\\\"#{VERSION}\\\"")
24
36
 
25
37
  create_makefile('rdiscount')
data/rdiscount.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rdiscount'
3
- s.version = '2.0.7.1'
3
+ s.version = '2.0.7.2'
4
4
  s.summary = "Fast Implementation of Gruber's Markdown in C"
5
- s.date = '2013-02-26'
5
+ s.date = '2013-04-06'
6
6
  s.email = 'rtomayko@gmail.com'
7
7
  s.homepage = 'http://github.com/rtomayko/rdiscount'
8
8
  s.authors = ["Ryan Tomayko", "David Loren Parsons", "Andrew White", "David Foster"]
@@ -60,4 +60,6 @@ Gem::Specification.new do |s|
60
60
  s.executables = ["rdiscount"]
61
61
  s.require_paths = ["lib"]
62
62
  s.rubyforge_project = 'wink'
63
+ # Ruby 1.9.2 has a known bug in mkmf. Ruby 1.9.3 or later is fine.
64
+ s.required_ruby_version = '!= 1.9.2'
63
65
  end
metadata CHANGED
@@ -1,10 +1,15 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rdiscount
3
- version: !ruby/object:Gem::Version
4
- version: 2.0.7.1
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 0
8
+ - 7
9
+ - 2
10
+ version: 2.0.7.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Ryan Tomayko
9
14
  - David Loren Parsons
10
15
  - Andrew White
@@ -12,17 +17,20 @@ authors:
12
17
  autorequire:
13
18
  bindir: bin
14
19
  cert_chain: []
15
- date: 2013-02-26 00:00:00.000000000 Z
20
+
21
+ date: 2013-04-06 00:00:00 -07:00
22
+ default_executable:
16
23
  dependencies: []
24
+
17
25
  description:
18
26
  email: rtomayko@gmail.com
19
- executables:
27
+ executables:
20
28
  - rdiscount
21
- extensions:
29
+ extensions:
22
30
  - ext/extconf.rb
23
- extra_rdoc_files:
31
+ extra_rdoc_files:
24
32
  - COPYING
25
- files:
33
+ files:
26
34
  - BUILDING
27
35
  - COPYING
28
36
  - README.markdown
@@ -66,30 +74,40 @@ files:
66
74
  - test/benchmark.txt
67
75
  - test/markdown_test.rb
68
76
  - test/rdiscount_test.rb
77
+ has_rdoc: true
69
78
  homepage: http://github.com/rtomayko/rdiscount
70
79
  licenses: []
80
+
71
81
  post_install_message:
72
82
  rdoc_options: []
73
- require_paths:
83
+
84
+ require_paths:
74
85
  - lib
75
- required_ruby_version: !ruby/object:Gem::Requirement
86
+ required_ruby_version: !ruby/object:Gem::Requirement
76
87
  none: false
77
- requirements:
78
- - - ! '>='
79
- - !ruby/object:Gem::Version
80
- version: '0'
81
- required_rubygems_version: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "!="
90
+ - !ruby/object:Gem::Version
91
+ segments:
92
+ - 1
93
+ - 9
94
+ - 2
95
+ version: 1.9.2
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
97
  none: false
83
- requirements:
84
- - - ! '>='
85
- - !ruby/object:Gem::Version
86
- version: '0'
98
+ requirements:
99
+ - - ">="
100
+ - !ruby/object:Gem::Version
101
+ segments:
102
+ - 0
103
+ version: "0"
87
104
  requirements: []
105
+
88
106
  rubyforge_project: wink
89
- rubygems_version: 1.8.24
107
+ rubygems_version: 1.3.7.1
90
108
  signing_key:
91
109
  specification_version: 3
92
110
  summary: Fast Implementation of Gruber's Markdown in C
93
- test_files:
111
+ test_files:
94
112
  - test/markdown_test.rb
95
113
  - test/rdiscount_test.rb