-
Notifications
You must be signed in to change notification settings - Fork 3
/
Rakefile
executable file
·71 lines (65 loc) · 2.07 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
$LOAD_PATH.unshift(File.dirname(__FILE__) + "/lib")
require "olag/rake"
# {{{ Codnar configurations
# Override the default Codnar configurations.
Olag::Rake::CODNAR_CONFIGURATIONS.unshift([
# Exclude the data files and images from the generated documentation.
"lib/codnar/data/.*/.*|.*\.png",
], [
# Tests should not have chunks detected in them.
# They may however contain HTML islands.
"test/.*\.rb",
"classify_source_code:ruby",
"format_code_gvim_css:ruby",
"classify_nested_code:ruby:html",
"classify_nested_code:ruby:dot",
"classify_nested_code:ruby:svg",
"format_code_gvim_css:html",
"format_code_gvim_css:dot",
"format_code_gvim_css:svg",
"classify_shell_comments",
"format_rdoc_comments",
], [
# Ruby sources contain HTML islands.
"Rakefile|.*\.rb|bin/.*",
"classify_source_code:ruby",
"format_code_gvim_css:ruby",
"classify_nested_code:ruby:html",
"format_code_gvim_css:html",
"classify_shell_comments",
"format_rdoc_comments",
"chunk_by_vim_regions",
], [
# We also have Javascript sources.
".*\.js",
"classify_source_code:javascript",
"format_code_gvim_css:javascript",
"classify_c_comments",
"format_markdown_comments"
], [
# We also have CSS sources.
".*\.css",
"classify_source_code:css",
"format_code_gvim_css:css",
"classify_c_comments",
"format_markdown_comments"
])
# }}}
spec = Gem::Specification.new do |spec|
spec.name = "codnar"
spec.version = Codnar::VERSION
spec.title = "Code Narrator"
spec.author = "Oren Ben-Kiki"
spec.email = "[email protected]"
spec.homepage = "https://rubygems.org/gems/codnar"
spec.summary = "Code narrator - an inverse literate programming tool."
spec.description = (<<-EOF).gsub(/^\s+/, "").chomp.gsub("\n", " ")
Code Narrator (Codnar) is an inverse literate programming tool. It splits the
source files into "chunks" (including structured comments) and weaves them back
into a narrative that describes the overall system.
EOF
spec.add_dependency("andand")
spec.add_dependency("coderay")
spec.add_dependency("rdiscount")
end
Olag::Rake.new(spec)