rdiscount 2.0.7.2 → 2.0.7.3

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/BUILDING CHANGED
@@ -17,7 +17,7 @@ grabbing the discount submodule into the root of the project and then running
17
17
  the rake gather task to copy discount source files into the ext/ directory:
18
18
 
19
19
  $ git submodule update --init
20
- Submodule 'discount' (git://github.com/rtomayko/discount.git) registered for path 'discount'
20
+ Submodule 'discount' (git://github.com/davidfstr/discount.git) registered for path 'discount'
21
21
  Cloning into discount...
22
22
  $ cd discount
23
23
  $ ./configure.sh # to generate mkdio.h from mkdio.h.in
@@ -1,14 +1,15 @@
1
1
  Discount Markdown Processor for Ruby
2
2
  ====================================
3
+ [![Build Status](https://travis-ci.org/davidfstr/rdiscount.png)](https://travis-ci.org/davidfstr/rdiscount)
3
4
 
4
5
  Discount is an implementation of John Gruber's Markdown markup language in C. It
5
6
  implements all of the language described in [the markdown syntax document][1] and
6
7
  passes the [Markdown 1.0 test suite][2].
7
8
 
8
- CODE: `git clone git://github.com/rtomayko/rdiscount.git`
9
- HOME: <http://github.com/rtomayko/rdiscount>
10
- DOCS: <http://rdoc.info/projects/rtomayko/rdiscount>
11
- BUGS: <http://github.com/rtomayko/rdiscount/issues>
9
+ CODE: `git clone git://github.com/davidfstr/rdiscount.git`
10
+ HOME: <http://dafoster.net/projects/rdiscount/>
11
+ DOCS: <http://rdoc.info/github/davidfstr/rdiscount/RDiscount>
12
+ BUGS: <http://github.com/davidfstr/rdiscount/issues>
12
13
 
13
14
  Discount was developed by [David Loren Parsons][3]. The Ruby extension
14
15
  is maintained by [David Foster][4].
@@ -27,14 +28,14 @@ New releases of RDiscount are published to [RubyGems][]:
27
28
 
28
29
  The RDiscount sources are available via Git:
29
30
 
30
- $ git clone git://github.com/rtomayko/rdiscount.git
31
+ $ git clone git://github.com/davidfstr/rdiscount.git
31
32
  $ cd rdiscount
32
33
  $ rake --tasks
33
34
 
34
35
  See the file [BUILDING][] for hacking instructions.
35
36
 
36
37
  [RubyGems]: https://rubygems.org/gems/rdiscount
37
- [BUILDING]: https://github.com/rtomayko/rdiscount/blob/master/BUILDING
38
+ [BUILDING]: https://github.com/davidfstr/rdiscount/blob/master/BUILDING
38
39
 
39
40
  USAGE
40
41
  -----
@@ -26,7 +26,7 @@ rb_rdiscount_to_html(int argc, VALUE *argv, VALUE self)
26
26
  * functions since they expect 8-bit codepoints (and UTF-8 has codepoints
27
27
  * of at least 21 bits).
28
28
  */
29
- char *old_locale = setlocale(LC_CTYPE, NULL);
29
+ char *old_locale = strdup(setlocale(LC_CTYPE, NULL));
30
30
  setlocale(LC_CTYPE, "C"); // ASCII (and passthru characters > 127)
31
31
 
32
32
  MMIOT *doc = mkd_string(RSTRING_PTR(text), RSTRING_LEN(text), flags);
@@ -42,6 +42,7 @@ rb_rdiscount_to_html(int argc, VALUE *argv, VALUE self)
42
42
  mkd_cleanup(doc);
43
43
 
44
44
  setlocale(LC_CTYPE, old_locale);
45
+ free(old_locale);
45
46
 
46
47
  /* force the input encoding */
47
48
  if ( rb_respond_to(text, rb_intern("encoding")) ) {
@@ -1,10 +1,10 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rdiscount'
3
- s.version = '2.0.7.2'
3
+ s.version = '2.0.7.3'
4
4
  s.summary = "Fast Implementation of Gruber's Markdown in C"
5
- s.date = '2013-04-06'
6
- s.email = 'rtomayko@gmail.com'
7
- s.homepage = 'http://github.com/rtomayko/rdiscount'
5
+ s.date = '2013-05-07'
6
+ s.email = 'davidfstr@gmail.com'
7
+ s.homepage = 'http://dafoster.net/projects/rdiscount/'
8
8
  s.authors = ["Ryan Tomayko", "David Loren Parsons", "Andrew White", "David Foster"]
9
9
  # = MANIFEST =
10
10
  s.files = %w[
@@ -123,7 +123,7 @@ class MarkdownTest < Test::Unit::TestCase
123
123
  markdown.to_html.gsub("\n", "")
124
124
  end
125
125
 
126
- # http://github.com/rtomayko/rdiscount/issues/#issue/13
126
+ # http://github.com/davidfstr/rdiscount/issues/#issue/13
127
127
  def test_headings_with_trailing_space
128
128
  text = "The Ant-Sugar Tales \n" +
129
129
  "=================== \n\n" +
@@ -90,8 +90,8 @@ EOS
90
90
  end
91
91
 
92
92
  def test_that_autolink_flag_works
93
- rd = RDiscount.new("http://github.com/rtomayko/rdiscount", :autolink)
94
- assert_equal "<p><a href=\"http://github.com/rtomayko/rdiscount\">http://github.com/rtomayko/rdiscount</a></p>\n", rd.to_html
93
+ rd = RDiscount.new("http://github.com/davidfstr/rdiscount", :autolink)
94
+ assert_equal "<p><a href=\"http://github.com/davidfstr/rdiscount\">http://github.com/davidfstr/rdiscount</a></p>\n", rd.to_html
95
95
  end
96
96
 
97
97
  def test_that_safelink_flag_works
@@ -105,6 +105,12 @@ EOS
105
105
  end
106
106
 
107
107
  def test_that_tags_can_have_dashes_and_underscores
108
+ if RDiscount::VERSION.start_with? "2.0.7"
109
+ # Skip test for 2.0.7.x series due to upstream behavioral change in
110
+ # Discount 2.0.7. This test can be fixed in Discount 2.1.5 using the
111
+ # WITH_GITHUB_TAGS compile-time flag.
112
+ return
113
+ end
108
114
  rd = RDiscount.new("foo <asdf-qwerty>bar</asdf-qwerty> and <a_b>baz</a_b>")
109
115
  assert_equal "<p>foo <asdf-qwerty>bar</asdf-qwerty> and <a_b>baz</a_b></p>\n", rd.to_html
110
116
  end
metadata CHANGED
@@ -1,15 +1,10 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: rdiscount
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
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.7.3
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Ryan Tomayko
14
9
  - David Loren Parsons
15
10
  - Andrew White
@@ -17,20 +12,17 @@ authors:
17
12
  autorequire:
18
13
  bindir: bin
19
14
  cert_chain: []
20
-
21
- date: 2013-04-06 00:00:00 -07:00
22
- default_executable:
15
+ date: 2013-05-07 00:00:00.000000000 Z
23
16
  dependencies: []
24
-
25
17
  description:
26
- email: rtomayko@gmail.com
27
- executables:
18
+ email: davidfstr@gmail.com
19
+ executables:
28
20
  - rdiscount
29
- extensions:
21
+ extensions:
30
22
  - ext/extconf.rb
31
- extra_rdoc_files:
23
+ extra_rdoc_files:
32
24
  - COPYING
33
- files:
25
+ files:
34
26
  - BUILDING
35
27
  - COPYING
36
28
  - README.markdown
@@ -74,40 +66,31 @@ files:
74
66
  - test/benchmark.txt
75
67
  - test/markdown_test.rb
76
68
  - test/rdiscount_test.rb
77
- has_rdoc: true
78
- homepage: http://github.com/rtomayko/rdiscount
69
+ homepage: http://dafoster.net/projects/rdiscount/
79
70
  licenses: []
80
-
81
71
  post_install_message:
82
72
  rdoc_options: []
83
-
84
- require_paths:
73
+ require_paths:
85
74
  - lib
86
- required_ruby_version: !ruby/object:Gem::Requirement
75
+ required_ruby_version: !ruby/object:Gem::Requirement
87
76
  none: false
88
- requirements:
89
- - - "!="
90
- - !ruby/object:Gem::Version
91
- segments:
92
- - 1
93
- - 9
94
- - 2
77
+ requirements:
78
+ - - ! '!='
79
+ - !ruby/object:Gem::Version
95
80
  version: 1.9.2
96
- required_rubygems_version: !ruby/object:Gem::Requirement
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
82
  none: false
98
- requirements:
99
- - - ">="
100
- - !ruby/object:Gem::Version
101
- segments:
102
- - 0
103
- version: "0"
83
+ requirements:
84
+ - - ! '>='
85
+ - !ruby/object:Gem::Version
86
+ version: '0'
104
87
  requirements: []
105
-
106
88
  rubyforge_project: wink
107
- rubygems_version: 1.3.7.1
89
+ rubygems_version: 1.8.24
108
90
  signing_key:
109
91
  specification_version: 3
110
92
  summary: Fast Implementation of Gruber's Markdown in C
111
- test_files:
93
+ test_files:
112
94
  - test/markdown_test.rb
113
95
  - test/rdiscount_test.rb
96
+ has_rdoc: