rmultimarkdown 4.5.2.2 → 4.5.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,7 +14,7 @@
14
14
 
15
15
  #define TABSTOP 4
16
16
 
17
- #define MMD_VERSION "4.5.2"
17
+ #define MMD_VERSION "4.5.3"
18
18
 
19
19
  #define MMD_COPYRIGHT \
20
20
  "Copyright (c) 2013-2014 Fletcher T. Penney.\n\n" \
@@ -304,7 +304,14 @@ int note_number_for_label(char *text, scratch_pad *scratch) {
304
304
  if (n != NULL) {
305
305
  /* move to used queue */
306
306
  move_note_to_used(n, scratch);
307
+ #ifdef DEBUG_ON
308
+ fprintf(stderr, "note has not already been used for: %s\n",text);
309
+ #endif
307
310
  }
311
+ } else {
312
+ #ifdef DEBUG_ON
313
+ fprintf(stderr, "note has already been used for: %s\n",text);
314
+ #endif
308
315
  }
309
316
 
310
317
  /* Check label version */
@@ -317,7 +324,15 @@ int note_number_for_label(char *text, scratch_pad *scratch) {
317
324
  if (n != NULL) {
318
325
  /* move to used queue */
319
326
  move_note_to_used(n, scratch);
327
+ #ifdef DEBUG_ON
328
+ fprintf(stderr, "note has not already been used for: %s\n",label);
329
+ #endif
320
330
  }
331
+ } else {
332
+ #ifdef DEBUG_ON
333
+ fprintf(stderr, "note has already been used for: %s\n",label);
334
+ #endif
335
+
321
336
  }
322
337
 
323
338
  /* CAN recursively drill down to start counter at 0 and ++ */
@@ -325,8 +340,12 @@ int note_number_for_label(char *text, scratch_pad *scratch) {
325
340
 
326
341
  free(label);
327
342
  free(clean);
328
- if (n != NULL)
343
+ if (n != NULL) {
344
+ #ifdef DEBUG_ON
345
+ fprintf(stderr, "note number is: %d\n",count_node_from_end(n));
346
+ #endif
329
347
  return count_node_from_end(n);
348
+ }
330
349
  else
331
350
  return 0;
332
351
  }
@@ -371,8 +390,14 @@ int count_node_from_end(node *n) {
371
390
  if (n->next == NULL) {
372
391
  if (n->key == KEY_COUNTER)
373
392
  return 0;
393
+ #ifdef DEBUG_ON
394
+ fprintf(stderr, "note %d: '%s'\n",1,n->str);
395
+ #endif
374
396
  return 1; /* reserve 0 for not found */
375
397
  }
398
+ #ifdef DEBUG_ON
399
+ fprintf(stderr, "note %d: '%s'\n",count_node_from_end(n->next) +1,n->str);
400
+ #endif
376
401
  return (count_node_from_end(n->next) + 1);
377
402
  }
378
403
 
@@ -1,6 +1,6 @@
1
1
  class MultiMarkdown
2
2
 
3
3
  # The ruby 'multimarkdown' gem version
4
- VERSION = "4.5.2.2"
4
+ VERSION = "4.5.3.1"
5
5
 
6
6
  end
Binary file
metadata CHANGED
@@ -1,30 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rmultimarkdown
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.2.2
5
- prerelease:
4
+ version: 4.5.3.1
6
5
  platform: ruby
7
6
  authors:
8
7
  - Till Schulte-Coerne
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2014-06-02 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  description: A MultiMarkdown 4 binding for Ruby
@@ -90,33 +87,26 @@ files:
90
87
  - MultiMarkdown-4/writer.h
91
88
  homepage: http://github.com/tillsc/multi_markdown
92
89
  licenses: []
90
+ metadata: {}
93
91
  post_install_message:
94
92
  rdoc_options: []
95
93
  require_paths:
96
94
  - lib
97
95
  required_ruby_version: !ruby/object:Gem::Requirement
98
- none: false
99
96
  requirements:
100
- - - ! '>='
97
+ - - '>='
101
98
  - !ruby/object:Gem::Version
102
99
  version: '0'
103
- segments:
104
- - 0
105
- hash: 219010029404225192
106
100
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
101
  requirements:
109
- - - ! '>='
102
+ - - '>='
110
103
  - !ruby/object:Gem::Version
111
104
  version: '0'
112
- segments:
113
- - 0
114
- hash: 219010029404225192
115
105
  requirements: []
116
106
  rubyforge_project:
117
- rubygems_version: 1.8.23
107
+ rubygems_version: 2.0.3
118
108
  signing_key:
119
- specification_version: 3
109
+ specification_version: 4
120
110
  summary: A MultiMarkdown 4 binding for Ruby
121
111
  test_files:
122
112
  - test/multi_markdown_test.rb