rdiscount 2.2.0.1 → 2.2.0.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 1c480b4844b3b13cbc655ed1ce44db9a7115a7bc
4
- data.tar.gz: 517a7bed26d59ec1cbe770df4d24a72e288a5902
2
+ SHA256:
3
+ metadata.gz: 51677d6198a4b3fa64990fb931e5b68651e0abfdfa8c1afdb16713fa52c66d6b
4
+ data.tar.gz: a11a9a266cd0a749614ef2fb4ee02ddc6718f12b81902a2b0281688fb4acad6e
5
5
  SHA512:
6
- metadata.gz: 28170e1cd868a7046c03207e432ee0fda482e0f8b9be0ce25ede44a2716af0204e402d9e2cc8d877d5075193c5a7521ac4eb6de6fe6f1a867ee01152ee2cb97f
7
- data.tar.gz: bfd089d7ffe89cb5cb48213320cc271e3d6b39198db96a0ffb229b540bf513332327211604f8fa588b89c5fb883f40bcec5f5bc909366439008c65fa02b33598
6
+ metadata.gz: 4f108c1762e520eb80b5b73585f01a4e8bd0317ecbcc6f62ac0ca80eeb4cce87a88c4861b2e0d762956e5d765b048e6e8e4621132511e33c811249888790876b
7
+ data.tar.gz: 68af4be8ec06761fb3d34a9c66bdd6105436d1249bc23653cc3781510ba0fb9ed4e50da6d8aa09ec0194abaa83311d5a620ec46a311c5ce4e4d933e7b6a37779
@@ -39,6 +39,28 @@ static AccessorFlagPair ACCESSOR_2_FLAG[] = {
39
39
 
40
40
  static VALUE rb_cRDiscount;
41
41
 
42
+ int rb_rdiscount__get_flags(VALUE ruby_obj)
43
+ {
44
+ AccessorFlagPair *entry;
45
+
46
+ /* compile flags */
47
+ int flags = MKD_TABSTOP | MKD_NOHEADER | MKD_DLEXTRA | MKD_FENCEDCODE | MKD_GITHUBTAGS;
48
+
49
+ /* The "smart" accessor turns OFF the MKD_NOPANTS flag. */
50
+ if ( rb_funcall(ruby_obj, rb_intern("smart"), 0) != Qtrue ) {
51
+ flags = flags | MKD_NOPANTS;
52
+ }
53
+
54
+ /* Handle standard flags declared in ACCESSOR_2_FLAG */
55
+ for ( entry = ACCESSOR_2_FLAG; entry->accessor_name; entry++ ) {
56
+ if ( rb_funcall(ruby_obj, rb_intern(entry->accessor_name), 0) == Qtrue ) {
57
+ flags = flags | entry->flag;
58
+ }
59
+ }
60
+
61
+ return flags;
62
+ }
63
+
42
64
  static VALUE
43
65
  rb_rdiscount_to_html(int argc, VALUE *argv, VALUE self)
44
66
  {
@@ -117,28 +139,6 @@ rb_rdiscount_toc_content(int argc, VALUE *argv, VALUE self)
117
139
  return buf;
118
140
  }
119
141
 
120
- int rb_rdiscount__get_flags(VALUE ruby_obj)
121
- {
122
- AccessorFlagPair *entry;
123
-
124
- /* compile flags */
125
- int flags = MKD_TABSTOP | MKD_NOHEADER | MKD_DLEXTRA | MKD_FENCEDCODE | MKD_GITHUBTAGS;
126
-
127
- /* The "smart" accessor turns OFF the MKD_NOPANTS flag. */
128
- if ( rb_funcall(ruby_obj, rb_intern("smart"), 0) != Qtrue ) {
129
- flags = flags | MKD_NOPANTS;
130
- }
131
-
132
- /* Handle standard flags declared in ACCESSOR_2_FLAG */
133
- for ( entry = ACCESSOR_2_FLAG; entry->accessor_name; entry++ ) {
134
- if ( rb_funcall(ruby_obj, rb_intern(entry->accessor_name), 0) == Qtrue ) {
135
- flags = flags | entry->flag;
136
- }
137
- }
138
-
139
- return flags;
140
- }
141
-
142
142
 
143
143
  void Init_rdiscount()
144
144
  {
@@ -24,7 +24,7 @@
24
24
  # end
25
25
  #
26
26
  class RDiscount
27
- VERSION = '2.2.0.1'
27
+ VERSION = '2.2.0.2'
28
28
 
29
29
  # Original Markdown formatted text.
30
30
  attr_reader :text
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rdiscount'
3
- s.version = '2.2.0.1'
3
+ s.version = '2.2.0.2'
4
4
  s.summary = "Fast Implementation of Gruber's Markdown in C"
5
- s.date = '2016-05-07'
5
+ s.date = '2020-08-09'
6
6
  s.email = 'david@dafoster.net'
7
7
  s.homepage = 'http://dafoster.net/projects/rdiscount/'
8
8
  s.authors = ["Ryan Tomayko", "David Loren Parsons", "Andrew White", "David Foster"]
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdiscount
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0.1
4
+ version: 2.2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Tomayko
8
8
  - David Loren Parsons
9
9
  - Andrew White
10
10
  - David Foster
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-05-07 00:00:00.000000000 Z
14
+ date: 2020-08-09 00:00:00.000000000 Z
15
15
  dependencies: []
16
- description:
16
+ description:
17
17
  email: david@dafoster.net
18
18
  executables:
19
19
  - rdiscount
@@ -74,7 +74,7 @@ homepage: http://dafoster.net/projects/rdiscount/
74
74
  licenses:
75
75
  - BSD-3-Clause
76
76
  metadata: {}
77
- post_install_message:
77
+ post_install_message:
78
78
  rdoc_options: []
79
79
  require_paths:
80
80
  - lib
@@ -89,9 +89,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  requirements: []
92
- rubyforge_project: wink
93
- rubygems_version: 2.5.1
94
- signing_key:
92
+ rubygems_version: 3.0.8
93
+ signing_key:
95
94
  specification_version: 4
96
95
  summary: Fast Implementation of Gruber's Markdown in C
97
96
  test_files: