redcarpet 1.17.0 → 1.17.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of redcarpet might be problematic. Click here for more details.

@@ -0,0 +1,39 @@
1
+ /*
2
+ * Copyright (c) 2011, Vicent Marti
3
+ *
4
+ * Permission to use, copy, modify, and distribute this software for any
5
+ * purpose with or without fee is hereby granted, provided that the above
6
+ * copyright notice and this permission notice appear in all copies.
7
+ *
8
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
+ */
16
+
17
+ #ifndef UPSKIRT_AUTOLINK_H
18
+ #define UPSKIRT_AUTOLINK_H_H
19
+
20
+ #include "buffer.h"
21
+
22
+ typedef enum {
23
+ AUTOLINK_URLS = (1 << 0),
24
+ AUTOLINK_EMAILS = (1 << 1),
25
+ AUTOLINK_ALL = AUTOLINK_URLS|AUTOLINK_EMAILS
26
+ } autolink_mode;
27
+
28
+ extern size_t
29
+ ups_autolink__www(size_t *rewind_p, struct buf *link, char *data, size_t offset, size_t size);
30
+
31
+ extern size_t
32
+ ups_autolink__email(size_t *rewind_p, struct buf *link, char *data, size_t offset, size_t size);
33
+
34
+ extern size_t
35
+ ups_autolink__url(size_t *rewind_p, struct buf *link, char *data, size_t offset, size_t size);
36
+
37
+ #endif
38
+
39
+ /* vim: set filetype=c: */
data/lib/redcarpet.rb CHANGED
@@ -26,7 +26,7 @@
26
26
  # end
27
27
  #
28
28
  class Redcarpet
29
- VERSION = '1.17.0'
29
+ VERSION = '1.17.1'
30
30
 
31
31
  # Original Markdown formatted text.
32
32
  attr_reader :text
data/redcarpet.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'redcarpet'
3
- s.version = '1.17.0'
3
+ s.version = '1.17.1'
4
4
  s.summary = "Ruby bindings for libupskirt"
5
5
  s.description = 'A fast and safe Markdown to (X)HTML parser'
6
6
  s.date = '2011-06-09'
@@ -16,6 +16,7 @@ Gem::Specification.new do |s|
16
16
  ext/redcarpet/array.c
17
17
  ext/redcarpet/array.h
18
18
  ext/redcarpet/autolink.c
19
+ ext/redcarpet/autolink.h
19
20
  ext/redcarpet/buffer.c
20
21
  ext/redcarpet/buffer.h
21
22
  ext/redcarpet/extconf.rb
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redcarpet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 83
4
+ hash: 81
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 17
9
- - 0
10
- version: 1.17.0
9
+ - 1
10
+ version: 1.17.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Natacha Port\xC3\xA9"
@@ -36,6 +36,7 @@ files:
36
36
  - ext/redcarpet/array.c
37
37
  - ext/redcarpet/array.h
38
38
  - ext/redcarpet/autolink.c
39
+ - ext/redcarpet/autolink.h
39
40
  - ext/redcarpet/buffer.c
40
41
  - ext/redcarpet/buffer.h
41
42
  - ext/redcarpet/extconf.rb