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.
- data/History.txt +6 -0
- data/bin/org-ruby +11 -5
- data/lib/org-ruby.rb +21 -23
- data/lib/org-ruby/headline.rb +0 -2
- data/lib/org-ruby/html_output_buffer.rb +60 -19
- data/lib/org-ruby/line.rb +9 -9
- data/lib/org-ruby/output_buffer.rb +9 -9
- data/lib/org-ruby/parser.rb +4 -1
- data/lib/org-ruby/regexp_helper.rb +3 -3
- metadata +66 -153
- data/.bnsignore +0 -18
- data/.gitignore +0 -2
- data/Gemfile +0 -8
- data/Gemfile.lock +0 -36
- data/Rakefile +0 -26
- data/TAGS +0 -133
- data/announcement.txt +0 -19
- data/org-ruby.gemspec +0 -37
- data/spec/data/freeform-example.org +0 -113
- data/spec/data/freeform.org +0 -111
- data/spec/data/hyp-planning.org +0 -335
- data/spec/data/remember.org +0 -53
- data/spec/headline_spec.rb +0 -65
- data/spec/html_examples/advanced-code.html +0 -81
- data/spec/html_examples/advanced-code.org +0 -106
- data/spec/html_examples/advanced-lists.html +0 -31
- data/spec/html_examples/advanced-lists.org +0 -31
- data/spec/html_examples/block_code.html +0 -28
- data/spec/html_examples/block_code.org +0 -35
- data/spec/html_examples/blockcomment.html +0 -3
- data/spec/html_examples/blockcomment.org +0 -15
- data/spec/html_examples/blockquote.html +0 -7
- data/spec/html_examples/blockquote.org +0 -13
- data/spec/html_examples/center.html +0 -6
- data/spec/html_examples/center.org +0 -7
- data/spec/html_examples/code-comment.html +0 -18
- data/spec/html_examples/code-comment.org +0 -22
- data/spec/html_examples/comment-trees.html +0 -4
- data/spec/html_examples/comment-trees.org +0 -13
- data/spec/html_examples/custom-seq-todo.html +0 -15
- data/spec/html_examples/custom-seq-todo.org +0 -24
- data/spec/html_examples/custom-todo.html +0 -15
- data/spec/html_examples/custom-todo.org +0 -24
- data/spec/html_examples/custom-typ-todo.html +0 -15
- data/spec/html_examples/custom-typ-todo.org +0 -24
- data/spec/html_examples/deflist.html +0 -6
- data/spec/html_examples/deflist.org +0 -6
- data/spec/html_examples/entities.html +0 -4
- data/spec/html_examples/entities.org +0 -11
- data/spec/html_examples/escape-pre.html +0 -6
- data/spec/html_examples/escape-pre.org +0 -6
- data/spec/html_examples/export-exclude-only.html +0 -13
- data/spec/html_examples/export-exclude-only.org +0 -81
- data/spec/html_examples/export-keywords.html +0 -4
- data/spec/html_examples/export-keywords.org +0 -18
- data/spec/html_examples/export-tags.html +0 -8
- data/spec/html_examples/export-tags.org +0 -82
- data/spec/html_examples/export-title.html +0 -2
- data/spec/html_examples/export-title.org +0 -4
- data/spec/html_examples/footnotes.html +0 -10
- data/spec/html_examples/footnotes.org +0 -7
- data/spec/html_examples/horizontal_rule.html +0 -4
- data/spec/html_examples/horizontal_rule.org +0 -5
- data/spec/html_examples/html-literal.html +0 -2
- data/spec/html_examples/html-literal.org +0 -6
- data/spec/html_examples/inline-formatting.html +0 -25
- data/spec/html_examples/inline-formatting.org +0 -43
- data/spec/html_examples/inline-images.html +0 -10
- data/spec/html_examples/inline-images.org +0 -15
- data/spec/html_examples/link-features.html +0 -20
- data/spec/html_examples/link-features.org +0 -35
- data/spec/html_examples/lists.html +0 -23
- data/spec/html_examples/lists.org +0 -47
- data/spec/html_examples/metadata-comment.html +0 -27
- data/spec/html_examples/metadata-comment.org +0 -30
- data/spec/html_examples/only-list.html +0 -5
- data/spec/html_examples/only-list.org +0 -3
- data/spec/html_examples/only-table.html +0 -6
- data/spec/html_examples/only-table.org +0 -5
- data/spec/html_examples/skip-header.html +0 -3
- data/spec/html_examples/skip-header.org +0 -28
- data/spec/html_examples/skip-table.html +0 -4
- data/spec/html_examples/skip-table.org +0 -19
- data/spec/html_examples/subsupscript-nil.html +0 -3
- data/spec/html_examples/subsupscript-nil.org +0 -6
- data/spec/html_examples/subsupscript.html +0 -3
- data/spec/html_examples/subsupscript.org +0 -5
- data/spec/html_examples/tables.html +0 -35
- data/spec/html_examples/tables.org +0 -50
- data/spec/html_examples/text.html +0 -2
- data/spec/html_examples/text.org +0 -16
- data/spec/line_spec.rb +0 -162
- data/spec/output_buffer_spec.rb +0 -19
- data/spec/parser_spec.rb +0 -158
- data/spec/regexp_helper_spec.rb +0 -57
- data/spec/spec_helper.rb +0 -20
- data/spec/textile_examples/block_code.org +0 -35
- data/spec/textile_examples/block_code.textile +0 -29
- data/spec/textile_examples/blockquote.org +0 -13
- data/spec/textile_examples/blockquote.textile +0 -11
- data/spec/textile_examples/center.org +0 -7
- data/spec/textile_examples/center.textile +0 -6
- data/spec/textile_examples/footnotes.org +0 -7
- data/spec/textile_examples/footnotes.textile +0 -8
- data/spec/textile_examples/keywords.org +0 -13
- data/spec/textile_examples/keywords.textile +0 -11
- data/spec/textile_examples/links.org +0 -11
- data/spec/textile_examples/links.textile +0 -10
- data/spec/textile_examples/lists.org +0 -36
- data/spec/textile_examples/lists.textile +0 -20
- data/spec/textile_examples/single-space-plain-list.org +0 -13
- data/spec/textile_examples/single-space-plain-list.textile +0 -10
- data/spec/textile_examples/tables.org +0 -50
- data/spec/textile_examples/tables.textile +0 -40
- data/spec/textile_output_buffer_spec.rb +0 -21
- data/tasks/test_case.rake +0 -49
- data/util/gen-special-replace.el +0 -37
data/.bnsignore
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# The list of files that should be ignored by Mr Bones.
|
|
2
|
-
# Lines that start with '#' are comments.
|
|
3
|
-
#
|
|
4
|
-
# A .gitignore file can be used instead by setting it as the ignore
|
|
5
|
-
# file in your Rakefile:
|
|
6
|
-
#
|
|
7
|
-
# Bones {
|
|
8
|
-
# ignore_file '.gitignore'
|
|
9
|
-
# }
|
|
10
|
-
#
|
|
11
|
-
# For a project with a C extension, the following would be a good set of
|
|
12
|
-
# exclude patterns (uncomment them if you want to use them):
|
|
13
|
-
# *.[oa]
|
|
14
|
-
# *~
|
|
15
|
-
announcement.txt
|
|
16
|
-
coverage
|
|
17
|
-
doc
|
|
18
|
-
pkg
|
data/.gitignore
DELETED
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
org-ruby (0.6.3)
|
|
5
|
-
rubypants (>= 0.2.0)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: http://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
bones (3.8.0)
|
|
11
|
-
little-plugger (~> 1.1.3)
|
|
12
|
-
loquacious (~> 1.9.1)
|
|
13
|
-
rake (>= 0.8.7)
|
|
14
|
-
diff-lcs (1.1.3)
|
|
15
|
-
little-plugger (1.1.3)
|
|
16
|
-
loquacious (1.9.1)
|
|
17
|
-
rake (0.9.2.2)
|
|
18
|
-
rspec (2.10.0)
|
|
19
|
-
rspec-core (~> 2.10.0)
|
|
20
|
-
rspec-expectations (~> 2.10.0)
|
|
21
|
-
rspec-mocks (~> 2.10.0)
|
|
22
|
-
rspec-core (2.10.1)
|
|
23
|
-
rspec-expectations (2.10.0)
|
|
24
|
-
diff-lcs (~> 1.1.3)
|
|
25
|
-
rspec-mocks (2.10.1)
|
|
26
|
-
rubypants (0.2.0)
|
|
27
|
-
tilt (1.3.3)
|
|
28
|
-
|
|
29
|
-
PLATFORMS
|
|
30
|
-
ruby
|
|
31
|
-
|
|
32
|
-
DEPENDENCIES
|
|
33
|
-
bones (>= 3.8.0)
|
|
34
|
-
org-ruby!
|
|
35
|
-
rspec
|
|
36
|
-
tilt
|
data/Rakefile
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
require 'bones'
|
|
2
|
-
ensure_in_path 'lib'
|
|
3
|
-
require 'org-ruby'
|
|
4
|
-
|
|
5
|
-
require 'rspec/core'
|
|
6
|
-
require 'rspec/core/rake_task'
|
|
7
|
-
|
|
8
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
9
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
task :default => 'spec'
|
|
13
|
-
task 'gem:release' => 'spec'
|
|
14
|
-
|
|
15
|
-
Bones {
|
|
16
|
-
readme_file 'README.rdoc'
|
|
17
|
-
name 'org-ruby'
|
|
18
|
-
authors 'Brian Dewey'
|
|
19
|
-
email 'bdewey@gmail.com'
|
|
20
|
-
url 'http://github.com/bdewey/org-ruby'
|
|
21
|
-
version OrgRuby::VERSION
|
|
22
|
-
depend_on 'rubypants'
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
# EOF
|
data/TAGS
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
./bin/org-ruby,0
|
|
3
|
-
|
|
4
|
-
./lib/org-ruby/headline.rb,619
|
|
5
|
-
module Orgmode::Orgmode3,45
|
|
6
|
-
class Headline::Orgmode::Headline6,109
|
|
7
|
-
attr_reader :level::Orgmode::Headline#level9,178
|
|
8
|
-
attr_reader :headline_text::Orgmode::Headline#headline_text13,325
|
|
9
|
-
attr_reader :body_lines::Orgmode::Headline#body_lines16,418
|
|
10
|
-
attr_reader :tags::Orgmode::Headline#tags19,481
|
|
11
|
-
attr_reader :keyword::Orgmode::Headline#keyword22,567
|
|
12
|
-
def initialize::Orgmode::Headline#Orgmode::Headline.new35,896
|
|
13
|
-
def self.headline?::Orgmode::Headline.headline?58,1687
|
|
14
|
-
def to_textile::Orgmode::Headline#to_textile63,1818
|
|
15
|
-
def to_html::Orgmode::Headline#to_html69,1939
|
|
16
|
-
|
|
17
|
-
./lib/org-ruby/html_output_buffer.rb,591
|
|
18
|
-
module Orgmode::Orgmode3,54
|
|
19
|
-
class HtmlOutputBuffer::Orgmode::HtmlOutputBuffer5,72
|
|
20
|
-
def initialize::Orgmode::HtmlOutputBuffer#Orgmode::HtmlOutputBuffer.new22,417
|
|
21
|
-
def push_mode::Orgmode::HtmlOutputBuffer#push_mode31,619
|
|
22
|
-
def pop_mode::Orgmode::HtmlOutputBuffer#pop_mode42,918
|
|
23
|
-
def flush!::Orgmode::HtmlOutputBuffer#flush!51,1133
|
|
24
|
-
def escape_buffer!::Orgmode::HtmlOutputBuffer#escape_buffer!78,2163
|
|
25
|
-
def output_indentation::Orgmode::HtmlOutputBuffer#output_indentation84,2299
|
|
26
|
-
def inline_formatting::Orgmode::HtmlOutputBuffer#inline_formatting100,2827
|
|
27
|
-
|
|
28
|
-
./lib/org-ruby/line.rb,1527
|
|
29
|
-
module Orgmode::Orgmode1,0
|
|
30
|
-
class Line::Orgmode::Line4,67
|
|
31
|
-
attr_reader :line::Orgmode::Line#line7,114
|
|
32
|
-
attr_reader :indent::Orgmode::Line#indent12,300
|
|
33
|
-
attr_accessor :assigned_paragraph_type::Orgmode::Line#assigned_paragraph_type19,664
|
|
34
|
-
def initialize::Orgmode::Line#Orgmode::Line.new21,708
|
|
35
|
-
def to_s::Orgmode::Line#to_s29,885
|
|
36
|
-
def comment?::Orgmode::Line#comment?34,966
|
|
37
|
-
def metadata?::Orgmode::Line#metadata?39,1083
|
|
38
|
-
def nonprinting?::Orgmode::Line#nonprinting?43,1175
|
|
39
|
-
def blank?::Orgmode::Line#blank?47,1227
|
|
40
|
-
def plain_list?::Orgmode::Line#plain_list?51,1279
|
|
41
|
-
def unordered_list?::Orgmode::Line#unordered_list?57,1394
|
|
42
|
-
def strip_unordered_list_tag::Orgmode::Line#strip_unordered_list_tag61,1471
|
|
43
|
-
def ordered_list?::Orgmode::Line#ordered_list?67,1588
|
|
44
|
-
def strip_ordered_list_tag::Orgmode::Line#strip_ordered_list_tag71,1661
|
|
45
|
-
def plain_text?::Orgmode::Line#plain_text?75,1729
|
|
46
|
-
def table_row?::Orgmode::Line#table_row?79,1812
|
|
47
|
-
def table_separator?::Orgmode::Line#table_separator?85,1959
|
|
48
|
-
def table?::Orgmode::Line#table?93,2195
|
|
49
|
-
def begin_block?::Orgmode::Line#begin_block?99,2308
|
|
50
|
-
def end_block?::Orgmode::Line#end_block?103,2380
|
|
51
|
-
def block_type::Orgmode::Line#block_type107,2450
|
|
52
|
-
def paragraph_type::Orgmode::Line#paragraph_type112,2572
|
|
53
|
-
def self.to_textile::Orgmode::Line.to_textile124,2956
|
|
54
|
-
def self.to_html::Orgmode::Line.to_html130,3106
|
|
55
|
-
def self.translate::Orgmode::Line.translate137,3320
|
|
56
|
-
|
|
57
|
-
./lib/org-ruby/output_buffer.rb,1282
|
|
58
|
-
module Orgmode::Orgmode3,18
|
|
59
|
-
class OutputBuffer::Orgmode::OutputBuffer9,297
|
|
60
|
-
attr_reader :buffer::Orgmode::OutputBuffer#buffer12,381
|
|
61
|
-
attr_reader :output::Orgmode::OutputBuffer#output15,446
|
|
62
|
-
attr_accessor :output_type::Orgmode::OutputBuffer#output_type18,532
|
|
63
|
-
def initialize::Orgmode::OutputBuffer#Orgmode::OutputBuffer.new22,686
|
|
64
|
-
def current_mode::Orgmode::OutputBuffer#current_mode40,1138
|
|
65
|
-
def current_mode_list?::Orgmode::OutputBuffer#current_mode_list?44,1197
|
|
66
|
-
def push_mode::Orgmode::OutputBuffer#push_mode48,1286
|
|
67
|
-
def pop_mode::Orgmode::OutputBuffer#pop_mode53,1421
|
|
68
|
-
def prepare::Orgmode::OutputBuffer#prepare61,1729
|
|
69
|
-
def enter_table?::Orgmode::OutputBuffer#enter_table?73,2129
|
|
70
|
-
def exit_table?::Orgmode::OutputBuffer#exit_table?79,2314
|
|
71
|
-
def <<::Orgmode::OutputBuffer#<<85,2480
|
|
72
|
-
def list_indent_level::Orgmode::OutputBuffer#list_indent_level90,2585
|
|
73
|
-
def preserve_whitespace?::Orgmode::OutputBuffer#preserve_whitespace?95,2729
|
|
74
|
-
def continue_current_list?::Orgmode::OutputBuffer#continue_current_list?106,2991
|
|
75
|
-
def maintain_list_indent_stack::Orgmode::OutputBuffer#maintain_list_indent_stack109,3037
|
|
76
|
-
def should_accumulate_output?::Orgmode::OutputBuffer#should_accumulate_output?145,4184
|
|
77
|
-
|
|
78
|
-
./lib/org-ruby/parser.rb,473
|
|
79
|
-
module Orgmode::Orgmode4,40
|
|
80
|
-
class Parser::Orgmode::Parser10,125
|
|
81
|
-
attr_reader :lines::Orgmode::Parser#lines13,186
|
|
82
|
-
attr_reader :headlines::Orgmode::Parser#headlines16,253
|
|
83
|
-
attr_reader :header_lines::Orgmode::Parser#header_lines19,333
|
|
84
|
-
def initialize::Orgmode::Parser#Orgmode::Parser.new23,505
|
|
85
|
-
def self.load::Orgmode::Parser.load73,2075
|
|
86
|
-
def to_textile::Orgmode::Parser#to_textile79,2241
|
|
87
|
-
def to_html::Orgmode::Parser#to_html89,2477
|
|
88
|
-
|
|
89
|
-
./lib/org-ruby/regexp_helper.rb,1014
|
|
90
|
-
module Orgmode::Orgmode3,18
|
|
91
|
-
class RegexpHelper::Orgmode::RegexpHelper17,456
|
|
92
|
-
attr_reader :pre_emphasis::Orgmode::RegexpHelper#pre_emphasis42,1785
|
|
93
|
-
attr_reader :post_emphasis::Orgmode::RegexpHelper#post_emphasis43,1817
|
|
94
|
-
attr_reader :border_forbidden::Orgmode::RegexpHelper#border_forbidden44,1850
|
|
95
|
-
attr_reader :body_regexp::Orgmode::RegexpHelper#body_regexp45,1886
|
|
96
|
-
attr_reader :markers::Orgmode::RegexpHelper#markers46,1917
|
|
97
|
-
attr_reader :org_emphasis_regexp::Orgmode::RegexpHelper#org_emphasis_regexp48,1945
|
|
98
|
-
def initialize::Orgmode::RegexpHelper#Orgmode::RegexpHelper.new50,1999
|
|
99
|
-
def match_all::Orgmode::RegexpHelper#match_all65,2476
|
|
100
|
-
def rewrite_emphasis::Orgmode::RegexpHelper#rewrite_emphasis92,3413
|
|
101
|
-
def rewrite_links::Orgmode::RegexpHelper#rewrite_links124,4523
|
|
102
|
-
def build_org_emphasis_regexp::Orgmode::RegexpHelper#build_org_emphasis_regexp135,4759
|
|
103
|
-
def build_org_link_regexp::Orgmode::RegexpHelper#build_org_link_regexp145,5326
|
|
104
|
-
|
|
105
|
-
./lib/org-ruby/textile_output_buffer.rb,454
|
|
106
|
-
module Orgmode::Orgmode3,20
|
|
107
|
-
class TextileOutputBuffer::Orgmode::TextileOutputBuffer5,38
|
|
108
|
-
def initialize::Orgmode::TextileOutputBuffer#Orgmode::TextileOutputBuffer.new7,84
|
|
109
|
-
def push_mode::Orgmode::TextileOutputBuffer#push_mode12,169
|
|
110
|
-
def pop_mode::Orgmode::TextileOutputBuffer#pop_mode17,262
|
|
111
|
-
def inline_formatting::Orgmode::TextileOutputBuffer#inline_formatting34,585
|
|
112
|
-
def flush!::Orgmode::TextileOutputBuffer#flush!48,973
|
|
113
|
-
|
|
114
|
-
./lib/org-ruby.rb,243
|
|
115
|
-
module OrgRuby::OrgRuby3,27
|
|
116
|
-
def self.version::OrgRuby.version13,277
|
|
117
|
-
def self.libpath::OrgRuby.libpath21,476
|
|
118
|
-
def self.path::OrgRuby.path29,721
|
|
119
|
-
def self.require_all_libs_relative_to::OrgRuby.require_all_libs_relative_to38,1108
|
|
120
|
-
|
|
121
|
-
./spec/headline_spec.rb,0
|
|
122
|
-
|
|
123
|
-
./spec/line_spec.rb,0
|
|
124
|
-
|
|
125
|
-
./spec/parser_spec.rb,0
|
|
126
|
-
|
|
127
|
-
./spec/regexp_helper_spec.rb,0
|
|
128
|
-
|
|
129
|
-
./spec/spec_helper.rb,0
|
|
130
|
-
|
|
131
|
-
./spec/textile_output_buffer_spec.rb,0
|
|
132
|
-
|
|
133
|
-
./test/test_orgmode_parser.rb,0
|
data/announcement.txt
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
org-ruby version 0.6.2
|
|
2
|
-
by Brian Dewey
|
|
3
|
-
http://github.com/bdewey/org-ruby
|
|
4
|
-
|
|
5
|
-
== DESCRIPTION
|
|
6
|
-
|
|
7
|
-
This gem contains Ruby routines for parsing org-mode files.The most
|
|
8
|
-
significant thing this library does today is convert org-mode files to
|
|
9
|
-
HTML or textile. Currently, you cannot do much to customize the
|
|
10
|
-
conversion. The supplied textile conversion is optimized for
|
|
11
|
-
extracting "content" from the orgfile as opposed to "metadata."
|
|
12
|
-
|
|
13
|
-
== CHANGES
|
|
14
|
-
* Added encoding directive to support Ruby 1.9.2
|
|
15
|
-
* Headlines with the COMMENT keyword, and the PROPERTIES drawer are not exported
|
|
16
|
-
* Angle links in org-mode are embedded in anchor tags on html output
|
|
17
|
-
* #+BEGIN/END_SRC lang code blocks are embedded in code tags with class that specifies the coding language
|
|
18
|
-
* Fixed bug in code blocks when a colon was at the beginning
|
|
19
|
-
* More than five dashes create an horizontal rule in html output (thanks Neil-Smithline!)
|
data/org-ruby.gemspec
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
|
|
3
|
-
Gem::Specification.new do |s|
|
|
4
|
-
s.name = "org-ruby"
|
|
5
|
-
s.version = "0.6.3"
|
|
6
|
-
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
|
-
s.authors = ["Brian Dewey"]
|
|
9
|
-
s.date = "2012-05-22"
|
|
10
|
-
s.description = "This gem contains Ruby routines for parsing org-mode files.The most\nsignificant thing this library does today is convert org-mode files to\nHTML or textile. Currently, you cannot do much to customize the\nconversion. The supplied textile conversion is optimized for\nextracting \"content\" from the orgfile as opposed to \"metadata.\" "
|
|
11
|
-
s.email = "bdewey@gmail.com"
|
|
12
|
-
s.executables = ["org-ruby"]
|
|
13
|
-
s.extra_rdoc_files = ["History.txt", "README.rdoc", "announcement.txt", "bin/org-ruby"]
|
|
14
|
-
s.files = [".bnsignore", ".gitignore", "Gemfile", "Gemfile.lock", "History.txt", "README.rdoc", "Rakefile", "TAGS", "announcement.txt", "bin/org-ruby", "lib/org-ruby.rb", "lib/org-ruby/headline.rb", "lib/org-ruby/html_output_buffer.rb", "lib/org-ruby/html_symbol_replace.rb", "lib/org-ruby/line.rb", "lib/org-ruby/output_buffer.rb", "lib/org-ruby/parser.rb", "lib/org-ruby/regexp_helper.rb", "lib/org-ruby/textile_output_buffer.rb", "lib/org-ruby/textile_symbol_replace.rb", "lib/org-ruby/tilt.rb", "org-ruby.gemspec", "spec/data/freeform-example.org", "spec/data/freeform.org", "spec/data/hyp-planning.org", "spec/data/remember.org", "spec/headline_spec.rb", "spec/html_examples/advanced-code.html", "spec/html_examples/advanced-code.org", "spec/html_examples/advanced-lists.html", "spec/html_examples/advanced-lists.org", "spec/html_examples/block_code.html", "spec/html_examples/block_code.org", "spec/html_examples/blockcomment.html", "spec/html_examples/blockcomment.org", "spec/html_examples/blockquote.html", "spec/html_examples/blockquote.org", "spec/html_examples/center.html", "spec/html_examples/center.org", "spec/html_examples/code-comment.html", "spec/html_examples/code-comment.org", "spec/html_examples/comment-trees.html", "spec/html_examples/comment-trees.org", "spec/html_examples/custom-seq-todo.html", "spec/html_examples/custom-seq-todo.org", "spec/html_examples/custom-todo.html", "spec/html_examples/custom-todo.org", "spec/html_examples/custom-typ-todo.html", "spec/html_examples/custom-typ-todo.org", "spec/html_examples/deflist.html", "spec/html_examples/deflist.org", "spec/html_examples/entities.html", "spec/html_examples/entities.org", "spec/html_examples/escape-pre.html", "spec/html_examples/escape-pre.org", "spec/html_examples/export-exclude-only.html", "spec/html_examples/export-exclude-only.org", "spec/html_examples/export-keywords.html", "spec/html_examples/export-keywords.org", "spec/html_examples/export-tags.html", "spec/html_examples/export-tags.org", "spec/html_examples/export-title.html", "spec/html_examples/export-title.org", "spec/html_examples/footnotes.html", "spec/html_examples/footnotes.org", "spec/html_examples/horizontal_rule.html", "spec/html_examples/horizontal_rule.org", "spec/html_examples/html-literal.html", "spec/html_examples/html-literal.org", "spec/html_examples/inline-formatting.html", "spec/html_examples/inline-formatting.org", "spec/html_examples/inline-images.html", "spec/html_examples/inline-images.org", "spec/html_examples/link-features.html", "spec/html_examples/link-features.org", "spec/html_examples/lists.html", "spec/html_examples/lists.org", "spec/html_examples/metadata-comment.html", "spec/html_examples/metadata-comment.org", "spec/html_examples/only-list.html", "spec/html_examples/only-list.org", "spec/html_examples/only-table.html", "spec/html_examples/only-table.org", "spec/html_examples/skip-header.html", "spec/html_examples/skip-header.org", "spec/html_examples/skip-table.html", "spec/html_examples/skip-table.org", "spec/html_examples/subsupscript-nil.html", "spec/html_examples/subsupscript-nil.org", "spec/html_examples/subsupscript.html", "spec/html_examples/subsupscript.org", "spec/html_examples/tables.html", "spec/html_examples/tables.org", "spec/html_examples/text.html", "spec/html_examples/text.org", "spec/line_spec.rb", "spec/output_buffer_spec.rb", "spec/parser_spec.rb", "spec/regexp_helper_spec.rb", "spec/spec_helper.rb", "spec/textile_examples/block_code.org", "spec/textile_examples/block_code.textile", "spec/textile_examples/blockquote.org", "spec/textile_examples/blockquote.textile", "spec/textile_examples/center.org", "spec/textile_examples/center.textile", "spec/textile_examples/footnotes.org", "spec/textile_examples/footnotes.textile", "spec/textile_examples/keywords.org", "spec/textile_examples/keywords.textile", "spec/textile_examples/links.org", "spec/textile_examples/links.textile", "spec/textile_examples/lists.org", "spec/textile_examples/lists.textile", "spec/textile_examples/single-space-plain-list.org", "spec/textile_examples/single-space-plain-list.textile", "spec/textile_examples/tables.org", "spec/textile_examples/tables.textile", "spec/textile_output_buffer_spec.rb", "tasks/test_case.rake", "test/test_orgmode_parser.rb", "util/gen-special-replace.el"]
|
|
15
|
-
s.homepage = "http://github.com/bdewey/org-ruby"
|
|
16
|
-
s.rdoc_options = ["--main", "README.rdoc"]
|
|
17
|
-
s.require_paths = ["lib"]
|
|
18
|
-
s.rubyforge_project = "org-ruby"
|
|
19
|
-
s.rubygems_version = "1.8.10"
|
|
20
|
-
s.summary = "This gem contains Ruby routines for parsing org-mode files."
|
|
21
|
-
s.test_files = ["test/test_orgmode_parser.rb"]
|
|
22
|
-
|
|
23
|
-
if s.respond_to? :specification_version then
|
|
24
|
-
s.specification_version = 3
|
|
25
|
-
|
|
26
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
27
|
-
s.add_runtime_dependency(%q<rubypants>, [">= 0.2.0"])
|
|
28
|
-
s.add_development_dependency(%q<bones>, [">= 3.8.0"])
|
|
29
|
-
else
|
|
30
|
-
s.add_dependency(%q<rubypants>, [">= 0.2.0"])
|
|
31
|
-
s.add_dependency(%q<bones>, [">= 3.8.0"])
|
|
32
|
-
end
|
|
33
|
-
else
|
|
34
|
-
s.add_dependency(%q<rubypants>, [">= 0.2.0"])
|
|
35
|
-
s.add_dependency(%q<bones>, [">= 3.8.0"])
|
|
36
|
-
end
|
|
37
|
-
end
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
#+BEGIN_EXAMPLE
|
|
2
|
-
#+TITLE: Freeform
|
|
3
|
-
#+AUTHOR:
|
|
4
|
-
#+EMAIL: bdewey@gmail.com
|
|
5
|
-
#+DATE: 2009-12-20 Sun
|
|
6
|
-
#+DESCRIPTION:
|
|
7
|
-
#+KEYWORDS:
|
|
8
|
-
#+LANGUAGE: en
|
|
9
|
-
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
|
|
10
|
-
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
|
|
11
|
-
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
|
|
12
|
-
#+EXPORT_SELECT_TAGS: export
|
|
13
|
-
#+EXPORT_EXCLUDE_TAGS: noexport
|
|
14
|
-
#+LINK_UP:
|
|
15
|
-
#+LINK_HOME:
|
|
16
|
-
#+END_EXAMPLE
|
|
17
|
-
Freeform
|
|
18
|
-
|
|
19
|
-
This is my todo list, research file, and log record from working on
|
|
20
|
-
the Freeform project.
|
|
21
|
-
|
|
22
|
-
* Future ideas :someday:
|
|
23
|
-
- Add *posts*
|
|
24
|
-
- Enforce uniqueness of url_token
|
|
25
|
-
- Add FeedSync support
|
|
26
|
-
- Auto-recognize URLs
|
|
27
|
-
- Edit in place
|
|
28
|
-
- Import/export of content. I want it to be safe to store real content on the site.
|
|
29
|
-
- Page reordering.
|
|
30
|
-
- AtomPub support.
|
|
31
|
-
- Organization:
|
|
32
|
-
- Move pages around
|
|
33
|
-
- Add tags and navigation by tags
|
|
34
|
-
- Add a breadcrumb bar
|
|
35
|
-
|
|
36
|
-
* TODO Add versioning support :current:feature:
|
|
37
|
-
|
|
38
|
-
** DONE UI rough-in
|
|
39
|
-
CLOSED: [2009-11-26 Thu]
|
|
40
|
-
|
|
41
|
-
** DONE Author logging
|
|
42
|
-
CLOSED: [2009-11-27 Fri]
|
|
43
|
-
|
|
44
|
-
** DONE Version table and model updates
|
|
45
|
-
CLOSED: [2009-11-28 Sat 22:40]
|
|
46
|
-
CLOCK: [2009-11-28 Sat 21:35]--[2009-11-28 Sat 22:40] => 1:05
|
|
47
|
-
CLOCK: [2009-11-28 Sat 21:01]--[2009-11-28 Sat 21:25] => 0:24
|
|
48
|
-
CLOCK: [2009-11-28 Sat 19:46]--[2009-11-28 Sat 20:54] => 1:08
|
|
49
|
-
CLOCK: [2009-11-28 Sat 14:38]--[2009-11-28 Sat 15:08] => 0:30
|
|
50
|
-
CLOCK: [2009-11-28 Sat 13:21]--[2009-11-28 Sat 14:37] => 1:16
|
|
51
|
-
|
|
52
|
-
OK, my current thinking is to have each idea have many Changes. A
|
|
53
|
-
change has many change records. A change record is a list of
|
|
54
|
-
specific attributes that change, and includes the old and the new
|
|
55
|
-
values. I'll use callbacks on the Idea model to maintain the
|
|
56
|
-
changes.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
*** DONE Create version method
|
|
60
|
-
CLOSED: [2009-11-28 Sat 22:40]
|
|
61
|
-
|
|
62
|
-
*** DONE Make current method
|
|
63
|
-
CLOSED: [2009-11-28 Sat 22:40]
|
|
64
|
-
|
|
65
|
-
** Update pages controller
|
|
66
|
-
|
|
67
|
-
*** DONE Show versions
|
|
68
|
-
CLOSED: [2009-11-30 Mon 00:34]
|
|
69
|
-
CLOCK: [2009-11-29 Sun 21:27]--[2009-11-29 Sun 21:54] => 0:27
|
|
70
|
-
CLOCK: [2009-11-29 Sun 15:40]--[2009-11-29 Sun 15:44] => 0:04
|
|
71
|
-
CLOCK: [2009-11-28 Sat 22:44]--[2009-11-28 Sat 23:50] => 1:06
|
|
72
|
-
|
|
73
|
-
I'm now at the point where I *list* versions, but I can't show
|
|
74
|
-
them.
|
|
75
|
-
|
|
76
|
-
- [X] I currently suspect that I broke my version recovery code
|
|
77
|
-
when I switched the order of the idea_changes. I need to
|
|
78
|
-
investigate why nothing's failing in the tests; I expected
|
|
79
|
-
failures. Possible addition to test: start looking at those
|
|
80
|
-
version numbers.
|
|
81
|
-
|
|
82
|
-
OK, here's what was going on: In the test, you need to
|
|
83
|
-
reload the idea_changes array from the database to get the
|
|
84
|
-
database sort order. I also make sure I do this inside the
|
|
85
|
-
Idea methods.
|
|
86
|
-
|
|
87
|
-
**** DONE Write a test for Idea::attributes_for_change
|
|
88
|
-
CLOSED: [2009-11-29 Sun 23:59]
|
|
89
|
-
CLOCK: [2009-11-29 Sun 23:47]--[2009-11-29 Sun 23:58] => 0:11
|
|
90
|
-
CLOCK: [2009-11-29 Sun 22:02]--[2009-11-29 Sun 23:42] => 1:40
|
|
91
|
-
CLOCK: [2009-11-29 Sun 21:54]--[2009-11-29 Sun 21:56] => 0:02
|
|
92
|
-
|
|
93
|
-
*** DONE Write integration tests that cover versions.
|
|
94
|
-
CLOSED: [2009-12-11 Fri 23:25]
|
|
95
|
-
CLOCK: [2009-12-11 Fri 20:27]--[2009-12-11 Fri 23:25] => 2:58
|
|
96
|
-
|
|
97
|
-
*** DONE Recover versions
|
|
98
|
-
CLOSED: [2009-12-12 Sat 22:09]
|
|
99
|
-
CLOCK: [2009-12-12 Sat 21:02]--[2009-12-12 Sat 22:09] => 1:07
|
|
100
|
-
CLOCK: [2009-12-12 Sat 20:13]--[2009-12-12 Sat 21:00] => 0:47
|
|
101
|
-
|
|
102
|
-
*** DONE Move to recycle bin
|
|
103
|
-
CLOSED: [2009-12-12 Sat 22:59]
|
|
104
|
-
CLOCK: [2009-12-12 Sat 22:23]--[2009-12-12 Sat 22:59] => 0:36
|
|
105
|
-
|
|
106
|
-
Note I'm avoiding logging delete operations because I'm presuming
|
|
107
|
-
there will be a recycle bin, and therefore the *pages* controller
|
|
108
|
-
will never actually delete files. At some point, when I want to
|
|
109
|
-
support full FeedSync, I'll need to tackle this.
|
|
110
|
-
|
|
111
|
-
The other timebomb: I don't know how well my logging scheme will
|
|
112
|
-
work when pages move. I don't yet know if I will address this in
|
|
113
|
-
the current sprint.
|
data/spec/data/freeform.org
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
#+TITLE: Freeform
|
|
2
|
-
#+AUTHOR:
|
|
3
|
-
#+EMAIL: bdewey@gmail.com
|
|
4
|
-
#+DATE: 2009-12-20 Sun
|
|
5
|
-
#+DESCRIPTION:
|
|
6
|
-
#+KEYWORDS:
|
|
7
|
-
#+LANGUAGE: en
|
|
8
|
-
#+OPTIONS: H:3 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
|
|
9
|
-
#+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
|
|
10
|
-
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
|
|
11
|
-
#+EXPORT_SELECT_TAGS: export
|
|
12
|
-
#+EXPORT_EXCLUDE_TAGS: noexport
|
|
13
|
-
#+LINK_UP:
|
|
14
|
-
#+LINK_HOME:
|
|
15
|
-
Freeform
|
|
16
|
-
|
|
17
|
-
This is my todo list, research file, and log record from working on
|
|
18
|
-
the Freeform project.
|
|
19
|
-
|
|
20
|
-
* Future ideas :someday:
|
|
21
|
-
- Add *posts*
|
|
22
|
-
- Enforce uniqueness of url_token
|
|
23
|
-
- Add FeedSync support
|
|
24
|
-
- Auto-recognize URLs
|
|
25
|
-
- Edit in place
|
|
26
|
-
- Import/export of content. I want it to be safe to store real content on the site.
|
|
27
|
-
- Page reordering.
|
|
28
|
-
- AtomPub support.
|
|
29
|
-
- Organization:
|
|
30
|
-
- Move pages around
|
|
31
|
-
- Add tags and navigation by tags
|
|
32
|
-
- Add a breadcrumb bar
|
|
33
|
-
|
|
34
|
-
* TODO Add versioning support :current:feature:
|
|
35
|
-
|
|
36
|
-
** DONE UI rough-in
|
|
37
|
-
CLOSED: [2009-11-26 Thu]
|
|
38
|
-
|
|
39
|
-
** DONE Author logging
|
|
40
|
-
CLOSED: [2009-11-27 Fri]
|
|
41
|
-
|
|
42
|
-
** DONE Version table and model updates
|
|
43
|
-
CLOSED: [2009-11-28 Sat 22:40]
|
|
44
|
-
CLOCK: [2009-11-28 Sat 21:35]--[2009-11-28 Sat 22:40] => 1:05
|
|
45
|
-
CLOCK: [2009-11-28 Sat 21:01]--[2009-11-28 Sat 21:25] => 0:24
|
|
46
|
-
CLOCK: [2009-11-28 Sat 19:46]--[2009-11-28 Sat 20:54] => 1:08
|
|
47
|
-
CLOCK: [2009-11-28 Sat 14:38]--[2009-11-28 Sat 15:08] => 0:30
|
|
48
|
-
CLOCK: [2009-11-28 Sat 13:21]--[2009-11-28 Sat 14:37] => 1:16
|
|
49
|
-
|
|
50
|
-
OK, my current thinking is to have each idea have many Changes. A
|
|
51
|
-
change has many change records. A change record is a list of
|
|
52
|
-
specific attributes that change, and includes the old and the new
|
|
53
|
-
values. I'll use callbacks on the Idea model to maintain the
|
|
54
|
-
changes.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
*** DONE Create version method
|
|
58
|
-
CLOSED: [2009-11-28 Sat 22:40]
|
|
59
|
-
|
|
60
|
-
*** DONE Make current method
|
|
61
|
-
CLOSED: [2009-11-28 Sat 22:40]
|
|
62
|
-
|
|
63
|
-
** Update pages controller
|
|
64
|
-
|
|
65
|
-
*** DONE Show versions
|
|
66
|
-
CLOSED: [2009-11-30 Mon 00:34]
|
|
67
|
-
CLOCK: [2009-11-29 Sun 21:27]--[2009-11-29 Sun 21:54] => 0:27
|
|
68
|
-
CLOCK: [2009-11-29 Sun 15:40]--[2009-11-29 Sun 15:44] => 0:04
|
|
69
|
-
CLOCK: [2009-11-28 Sat 22:44]--[2009-11-28 Sat 23:50] => 1:06
|
|
70
|
-
|
|
71
|
-
I'm now at the point where I *list* versions, but I can't show
|
|
72
|
-
them.
|
|
73
|
-
|
|
74
|
-
- [X] I currently suspect that I broke my version recovery code
|
|
75
|
-
when I switched the order of the idea_changes. I need to
|
|
76
|
-
investigate why nothing's failing in the tests; I expected
|
|
77
|
-
failures. Possible addition to test: start looking at those
|
|
78
|
-
version numbers.
|
|
79
|
-
|
|
80
|
-
OK, here's what was going on: In the test, you need to
|
|
81
|
-
reload the idea_changes array from the database to get the
|
|
82
|
-
database sort order. I also make sure I do this inside the
|
|
83
|
-
Idea methods.
|
|
84
|
-
|
|
85
|
-
**** DONE Write a test for Idea::attributes_for_change
|
|
86
|
-
CLOSED: [2009-11-29 Sun 23:59]
|
|
87
|
-
CLOCK: [2009-11-29 Sun 23:47]--[2009-11-29 Sun 23:58] => 0:11
|
|
88
|
-
CLOCK: [2009-11-29 Sun 22:02]--[2009-11-29 Sun 23:42] => 1:40
|
|
89
|
-
CLOCK: [2009-11-29 Sun 21:54]--[2009-11-29 Sun 21:56] => 0:02
|
|
90
|
-
|
|
91
|
-
*** DONE Write integration tests that cover versions.
|
|
92
|
-
CLOSED: [2009-12-11 Fri 23:25]
|
|
93
|
-
CLOCK: [2009-12-11 Fri 20:27]--[2009-12-11 Fri 23:25] => 2:58
|
|
94
|
-
|
|
95
|
-
*** DONE Recover versions
|
|
96
|
-
CLOSED: [2009-12-12 Sat 22:09]
|
|
97
|
-
CLOCK: [2009-12-12 Sat 21:02]--[2009-12-12 Sat 22:09] => 1:07
|
|
98
|
-
CLOCK: [2009-12-12 Sat 20:13]--[2009-12-12 Sat 21:00] => 0:47
|
|
99
|
-
|
|
100
|
-
*** DONE Move to recycle bin
|
|
101
|
-
CLOSED: [2009-12-12 Sat 22:59]
|
|
102
|
-
CLOCK: [2009-12-12 Sat 22:23]--[2009-12-12 Sat 22:59] => 0:36
|
|
103
|
-
|
|
104
|
-
Note I'm avoiding logging delete operations because I'm presuming
|
|
105
|
-
there will be a recycle bin, and therefore the *pages* controller
|
|
106
|
-
will never actually delete files. At some point, when I want to
|
|
107
|
-
support full FeedSync, I'll need to tackle this.
|
|
108
|
-
|
|
109
|
-
The other timebomb: I don't know how well my logging scheme will
|
|
110
|
-
work when pages move. I don't yet know if I will address this in
|
|
111
|
-
the current sprint.
|