org-ruby 0.6.3 → 0.6.4

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.
Files changed (117) hide show
  1. data/History.txt +6 -0
  2. data/bin/org-ruby +11 -5
  3. data/lib/org-ruby.rb +21 -23
  4. data/lib/org-ruby/headline.rb +0 -2
  5. data/lib/org-ruby/html_output_buffer.rb +60 -19
  6. data/lib/org-ruby/line.rb +9 -9
  7. data/lib/org-ruby/output_buffer.rb +9 -9
  8. data/lib/org-ruby/parser.rb +4 -1
  9. data/lib/org-ruby/regexp_helper.rb +3 -3
  10. metadata +66 -153
  11. data/.bnsignore +0 -18
  12. data/.gitignore +0 -2
  13. data/Gemfile +0 -8
  14. data/Gemfile.lock +0 -36
  15. data/Rakefile +0 -26
  16. data/TAGS +0 -133
  17. data/announcement.txt +0 -19
  18. data/org-ruby.gemspec +0 -37
  19. data/spec/data/freeform-example.org +0 -113
  20. data/spec/data/freeform.org +0 -111
  21. data/spec/data/hyp-planning.org +0 -335
  22. data/spec/data/remember.org +0 -53
  23. data/spec/headline_spec.rb +0 -65
  24. data/spec/html_examples/advanced-code.html +0 -81
  25. data/spec/html_examples/advanced-code.org +0 -106
  26. data/spec/html_examples/advanced-lists.html +0 -31
  27. data/spec/html_examples/advanced-lists.org +0 -31
  28. data/spec/html_examples/block_code.html +0 -28
  29. data/spec/html_examples/block_code.org +0 -35
  30. data/spec/html_examples/blockcomment.html +0 -3
  31. data/spec/html_examples/blockcomment.org +0 -15
  32. data/spec/html_examples/blockquote.html +0 -7
  33. data/spec/html_examples/blockquote.org +0 -13
  34. data/spec/html_examples/center.html +0 -6
  35. data/spec/html_examples/center.org +0 -7
  36. data/spec/html_examples/code-comment.html +0 -18
  37. data/spec/html_examples/code-comment.org +0 -22
  38. data/spec/html_examples/comment-trees.html +0 -4
  39. data/spec/html_examples/comment-trees.org +0 -13
  40. data/spec/html_examples/custom-seq-todo.html +0 -15
  41. data/spec/html_examples/custom-seq-todo.org +0 -24
  42. data/spec/html_examples/custom-todo.html +0 -15
  43. data/spec/html_examples/custom-todo.org +0 -24
  44. data/spec/html_examples/custom-typ-todo.html +0 -15
  45. data/spec/html_examples/custom-typ-todo.org +0 -24
  46. data/spec/html_examples/deflist.html +0 -6
  47. data/spec/html_examples/deflist.org +0 -6
  48. data/spec/html_examples/entities.html +0 -4
  49. data/spec/html_examples/entities.org +0 -11
  50. data/spec/html_examples/escape-pre.html +0 -6
  51. data/spec/html_examples/escape-pre.org +0 -6
  52. data/spec/html_examples/export-exclude-only.html +0 -13
  53. data/spec/html_examples/export-exclude-only.org +0 -81
  54. data/spec/html_examples/export-keywords.html +0 -4
  55. data/spec/html_examples/export-keywords.org +0 -18
  56. data/spec/html_examples/export-tags.html +0 -8
  57. data/spec/html_examples/export-tags.org +0 -82
  58. data/spec/html_examples/export-title.html +0 -2
  59. data/spec/html_examples/export-title.org +0 -4
  60. data/spec/html_examples/footnotes.html +0 -10
  61. data/spec/html_examples/footnotes.org +0 -7
  62. data/spec/html_examples/horizontal_rule.html +0 -4
  63. data/spec/html_examples/horizontal_rule.org +0 -5
  64. data/spec/html_examples/html-literal.html +0 -2
  65. data/spec/html_examples/html-literal.org +0 -6
  66. data/spec/html_examples/inline-formatting.html +0 -25
  67. data/spec/html_examples/inline-formatting.org +0 -43
  68. data/spec/html_examples/inline-images.html +0 -10
  69. data/spec/html_examples/inline-images.org +0 -15
  70. data/spec/html_examples/link-features.html +0 -20
  71. data/spec/html_examples/link-features.org +0 -35
  72. data/spec/html_examples/lists.html +0 -23
  73. data/spec/html_examples/lists.org +0 -47
  74. data/spec/html_examples/metadata-comment.html +0 -27
  75. data/spec/html_examples/metadata-comment.org +0 -30
  76. data/spec/html_examples/only-list.html +0 -5
  77. data/spec/html_examples/only-list.org +0 -3
  78. data/spec/html_examples/only-table.html +0 -6
  79. data/spec/html_examples/only-table.org +0 -5
  80. data/spec/html_examples/skip-header.html +0 -3
  81. data/spec/html_examples/skip-header.org +0 -28
  82. data/spec/html_examples/skip-table.html +0 -4
  83. data/spec/html_examples/skip-table.org +0 -19
  84. data/spec/html_examples/subsupscript-nil.html +0 -3
  85. data/spec/html_examples/subsupscript-nil.org +0 -6
  86. data/spec/html_examples/subsupscript.html +0 -3
  87. data/spec/html_examples/subsupscript.org +0 -5
  88. data/spec/html_examples/tables.html +0 -35
  89. data/spec/html_examples/tables.org +0 -50
  90. data/spec/html_examples/text.html +0 -2
  91. data/spec/html_examples/text.org +0 -16
  92. data/spec/line_spec.rb +0 -162
  93. data/spec/output_buffer_spec.rb +0 -19
  94. data/spec/parser_spec.rb +0 -158
  95. data/spec/regexp_helper_spec.rb +0 -57
  96. data/spec/spec_helper.rb +0 -20
  97. data/spec/textile_examples/block_code.org +0 -35
  98. data/spec/textile_examples/block_code.textile +0 -29
  99. data/spec/textile_examples/blockquote.org +0 -13
  100. data/spec/textile_examples/blockquote.textile +0 -11
  101. data/spec/textile_examples/center.org +0 -7
  102. data/spec/textile_examples/center.textile +0 -6
  103. data/spec/textile_examples/footnotes.org +0 -7
  104. data/spec/textile_examples/footnotes.textile +0 -8
  105. data/spec/textile_examples/keywords.org +0 -13
  106. data/spec/textile_examples/keywords.textile +0 -11
  107. data/spec/textile_examples/links.org +0 -11
  108. data/spec/textile_examples/links.textile +0 -10
  109. data/spec/textile_examples/lists.org +0 -36
  110. data/spec/textile_examples/lists.textile +0 -20
  111. data/spec/textile_examples/single-space-plain-list.org +0 -13
  112. data/spec/textile_examples/single-space-plain-list.textile +0 -10
  113. data/spec/textile_examples/tables.org +0 -50
  114. data/spec/textile_examples/tables.textile +0 -40
  115. data/spec/textile_output_buffer_spec.rb +0 -21
  116. data/tasks/test_case.rake +0 -49
  117. data/util/gen-special-replace.el +0 -37
@@ -1,37 +0,0 @@
1
- ;; This code creates ruby code to replace special symbols with the corresponding utf8/html code
2
-
3
- (require 'org-entities)
4
-
5
- (defvar gen-use-entities-user t)
6
- (defvar gen-file-name "replace-entities.rb")
7
-
8
- (defun generate-replace-inbuffer (what)
9
- (let ((ll (if gen-use-entities-user
10
- (append org-entities-user org-entities)
11
- org-entities))
12
- (to (if (string= what "html") 3
13
- 6))) ; use utf8 for textile
14
- (insert " def Orgmode.special_symbols_to_" what "(str)\n")
15
- (dolist (entity ll)
16
- (when (listp entity)
17
- (let ((symb (nth to entity)))
18
- (when (or (string= symb "\"") (string= symb "\\"))
19
- (setq symb (concat "\\" symb)))
20
- (insert " str.gsub!(/\\\\" (car entity) "((\\{\\})|(\\s|$))/, \"" symb "\\\\3\")\n"))))
21
- (insert " end\n")))
22
-
23
- (defun generate-replace (file-name what)
24
- (when (file-exists-p file-name)
25
- (let ((buf (find-buffer-visiting file-name)))
26
- (when buf
27
- (kill-buffer buf)))
28
- (delete-file file-name))
29
- (find-file file-name)
30
- (insert "# Autogenerated by util/gen-special-replace.el\n\nmodule Orgmode\n")
31
- (generate-replace-inbuffer what)
32
- (insert "end # module Orgmode\n")
33
- (save-buffer)
34
- (kill-buffer))
35
-
36
- (generate-replace "../lib/org-ruby/html_symbol_replace.rb" "html")
37
- (generate-replace "../lib/org-ruby/textile_symbol_replace.rb" "textile")