glyph 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (132) hide show
  1. data/Rakefile +19 -40
  2. data/benchmark.rb +1 -2
  3. data/book/config.yml +8 -8
  4. data/book/document.glyph +18 -19
  5. data/book/images/glyph/commands_tasks.png +0 -0
  6. data/book/lib/layouts/bookindex.glyph +113 -111
  7. data/book/lib/layouts/bookpage.glyph +112 -108
  8. data/book/lib/macros/reference.rb +2 -2
  9. data/book/lib/tasks/tasks.rake +1 -1
  10. data/book/text/acknowledgements.glyph +1 -0
  11. data/book/text/changelog.glyph +140 -112
  12. data/book/text/compiling/compiling.glyph +36 -24
  13. data/book/text/compiling/lite_mode.glyph +11 -11
  14. data/book/text/compiling/programmatic_usage.glyph +57 -57
  15. data/book/text/config/document.glyph +7 -1
  16. data/book/text/config/options.glyph +5 -3
  17. data/book/text/config/output.glyph +41 -8
  18. data/book/text/extending/bookmarks_headers.glyph +13 -11
  19. data/book/text/extending/command.glyph +1 -1
  20. data/book/text/extending/commands_tasks.glyph +2 -2
  21. data/book/text/extending/internals.glyph +29 -29
  22. data/book/text/extending/interpreting.glyph +48 -9
  23. data/book/text/extending/macro_def.glyph +80 -32
  24. data/book/text/extending/output_format.glyph +2 -2
  25. data/book/text/extending/placeholders.glyph +27 -15
  26. data/book/text/extending/validators.glyph +1 -1
  27. data/book/text/getting_started/configuration.glyph +1 -1
  28. data/book/text/getting_started/create_project.glyph +4 -5
  29. data/book/text/getting_started/structure.glyph +2 -2
  30. data/book/text/macros/macros_core.glyph +341 -199
  31. data/book/text/macros/macros_filters.glyph +1 -1
  32. data/book/text/macros/macros_inline.glyph +3 -3
  33. data/book/text/macros/macros_structure.glyph +1 -1
  34. data/book/text/ref_commands.glyph +98 -93
  35. data/book/text/snippets.glyph +18 -0
  36. data/book/text/stats/bookmarks.glyph +16 -16
  37. data/book/text/stats/links.glyph +23 -23
  38. data/book/text/stats/macros.glyph +14 -14
  39. data/book/text/stats/snippets.glyph +26 -26
  40. data/book/text/stats/stats.glyph +14 -15
  41. data/book/text/text_editing/attribute_intro.glyph +8 -8
  42. data/book/text/text_editing/code.glyph +16 -16
  43. data/book/text/text_editing/conditionals.glyph +12 -13
  44. data/book/text/text_editing/esc_quot.glyph +3 -3
  45. data/book/text/text_editing/evaluation.glyph +57 -3
  46. data/book/text/text_editing/inclusions.glyph +34 -25
  47. data/book/text/text_editing/macro_composition.glyph +28 -0
  48. data/book/text/text_editing/macro_intro.glyph +4 -4
  49. data/book/text/text_editing/section_aliases.glyph +23 -23
  50. data/book/text/text_editing/sections.glyph +22 -22
  51. data/book/text/text_editing/stylesheets.glyph +33 -33
  52. data/book/text/text_editing/topics.glyph +6 -6
  53. data/book/text/text_editing/xml_fallback.glyph +1 -1
  54. data/book/text/troubleshooting/errors_command.glyph +4 -4
  55. data/book/text/troubleshooting/errors_generic.glyph +16 -10
  56. data/book/text/troubleshooting/errors_macro.glyph +18 -21
  57. data/book/text/troubleshooting/errors_parser.glyph +7 -7
  58. data/config.yml +51 -29
  59. data/document.glyph +18 -18
  60. data/glyph.gemspec +39 -287
  61. data/layouts/web5/topic.glyph +1 -1
  62. data/lib/glyph.rb +42 -10
  63. data/lib/glyph/analyzer.rb +5 -2
  64. data/lib/glyph/bookmark.rb +3 -1
  65. data/lib/glyph/commands.rb +11 -9
  66. data/lib/glyph/commands/add.rb +3 -1
  67. data/lib/glyph/commands/compile.rb +10 -7
  68. data/lib/glyph/commands/config.rb +7 -5
  69. data/lib/glyph/commands/init.rb +2 -0
  70. data/lib/glyph/commands/outline.rb +2 -0
  71. data/lib/glyph/commands/stats.rb +3 -0
  72. data/lib/glyph/commands/todo.rb +2 -0
  73. data/lib/glyph/config.rb +2 -0
  74. data/lib/glyph/document.rb +34 -9
  75. data/lib/glyph/interpreter.rb +2 -0
  76. data/lib/glyph/macro.rb +97 -25
  77. data/lib/glyph/macro_validators.rb +9 -6
  78. data/lib/glyph/node.rb +3 -1
  79. data/lib/glyph/parser.rb +68 -33
  80. data/lib/glyph/reporter.rb +3 -1
  81. data/lib/glyph/syntax_node.rb +23 -28
  82. data/lib/glyph/system_extensions.rb +21 -0
  83. data/lib/glyph/utils.rb +24 -4
  84. data/macros/block.rb +111 -0
  85. data/macros/core.rb +163 -33
  86. data/macros/filters.rb +3 -2
  87. data/macros/inline.rb +97 -0
  88. data/macros/reps/html.rb +180 -0
  89. data/macros/reps/html5.rb +100 -0
  90. data/macros/reps/web.rb +4 -0
  91. data/macros/reps/web5.rb +4 -0
  92. data/macros/structure.rb +229 -0
  93. data/macros/xml.rb +29 -24
  94. data/spec/config.yml +7 -0
  95. data/spec/files/article.glyph +2 -2
  96. data/spec/files/web_doc.glyph +9 -5
  97. data/spec/lib/commands_spec.rb +13 -9
  98. data/spec/lib/config_spec.rb +2 -2
  99. data/spec/lib/document_spec.rb +10 -0
  100. data/spec/lib/glyph_spec.rb +30 -8
  101. data/spec/lib/macro_spec.rb +39 -4
  102. data/spec/lib/macro_validators_spec.rb +3 -4
  103. data/spec/lib/parser_spec.rb +7 -0
  104. data/spec/lib/reporter_spec.rb +1 -0
  105. data/spec/lib/syntax_node_spec.rb +40 -6
  106. data/spec/macros/core_spec.rb +154 -21
  107. data/spec/macros/filters_spec.rb +1 -1
  108. data/spec/macros/html5_spec.rb +4 -5
  109. data/spec/macros/macros_spec.rb +6 -7
  110. data/spec/macros/web5_spec.rb +3 -3
  111. data/spec/macros/web_spec.rb +10 -7
  112. data/spec/macros/xml_spec.rb +11 -2
  113. data/spec/spec_helper.rb +11 -5
  114. data/spec/tasks/generate_spec.rb +40 -5
  115. data/spec/tasks/load_spec.rb +1 -13
  116. data/styles/coderay.css +147 -38
  117. data/styles/default.css +19 -22
  118. data/styles/pagination.css +30 -30
  119. data/tasks/generate.rake +54 -18
  120. data/tasks/load.rake +9 -24
  121. data/tasks/project.rake +0 -2
  122. metadata +208 -207
  123. data/.gitignore +0 -7
  124. data/VERSION +0 -1
  125. data/book/snippets.yml +0 -18
  126. data/lib/glyph/macro_helpers.rb +0 -282
  127. data/macros/html/block.rb +0 -124
  128. data/macros/html/inline.rb +0 -42
  129. data/macros/html/structure.rb +0 -191
  130. data/macros/html5/block.rb +0 -69
  131. data/macros/html5/inline.rb +0 -24
  132. data/macros/html5/structure.rb +0 -140
data/config.yml CHANGED
@@ -1,16 +1,18 @@
1
1
  :document:
2
- :source: 'document.glyph'
2
+ :source: document.glyph
3
3
  :author: ""
4
4
  :title: ""
5
5
  :subtitle: ""
6
6
  :filename: ""
7
7
  :revision: ""
8
+ :isbn: false
8
9
  :draft: false
9
10
  :output: html
10
11
  :styles: embed # link, import
12
+ :cover: false
11
13
  :options:
12
14
  :url_validation: false
13
- :macro_set: 'glyph' # core, xml, filters
15
+ :macro_set: glyph # core, xml, filters
14
16
  :safe_mode: false
15
17
  :filter_by_file_extension: true
16
18
  :xml_fallback: true
@@ -32,44 +34,64 @@
32
34
  :output:
33
35
  :html:
34
36
  :multifile: false
35
- :extension: '.html'
36
- :filter_target: 'html'
37
- :macro_dirs: ['html']
37
+ :extension: .html
38
+ :filter_target: html
39
+ :macro_reps: html
38
40
  :html5:
39
41
  :multifile: false
40
- :extension: '.html'
41
- :filter_target: 'html'
42
- :macro_dirs: ['html', 'html5']
42
+ :extension: .html
43
+ :filter_target: html
44
+ :macro_reps: html5
43
45
  :pdf:
44
46
  :multifile: false
45
- :extension: '.pdf'
46
- :filter_target: 'html'
47
- :generator: 'wkhtmltopdf'
48
- :macro_dirs: ['html']
47
+ :extension: .pdf
48
+ :filter_target: html
49
+ :through: html
50
+ :generator: wkhtmltopdf
51
+ :macro_reps: html
49
52
  :web:
50
53
  :multifile: true
51
- :extension: '.html'
52
- :filter_target: 'html'
53
- :macro_dirs: ['html']
54
- :layout_dirs: ['web']
54
+ :extension: .html
55
+ :filter_target: html
56
+ :macro_reps: html
57
+ :layout_dir: web
55
58
  :layouts:
56
- :topic: 'topic'
57
- :index: 'index'
58
- :base: "/"
59
+ :topic: topic
60
+ :index: index
61
+ :base: /
59
62
  :web5:
60
63
  :multifile: true
61
- :extension: '.html'
62
- :filter_target: 'html'
63
- :macro_dirs: ['html', 'html5']
64
- :layout_dirs: ['web5']
64
+ :extension: .html
65
+ :filter_target: html
66
+ :macro_reps: html5
67
+ :layout_dir: web5
65
68
  :layouts:
66
- :topic: 'topic'
67
- :index: 'index'
68
- :base: "/"
69
+ :topic: topic
70
+ :index: index
71
+ :base: /
72
+ :epub:
73
+ :multifile: false
74
+ :extension: .epub
75
+ :filter_target: html
76
+ :generator: calibre
77
+ :calibre:
78
+ # See options at http://calibre-ebook.com/user_manual/cli/ebook-convert-3.html
79
+ "output-profile": nook
80
+ :macro_reps: html
81
+ :mobi:
82
+ :multifile: false
83
+ :extension: .mobi
84
+ :filter_target: html
85
+ :generator: calibre
86
+ :calibre:
87
+ # See options at http://calibre-ebook.com/user_manual/cli/ebook-convert-3.html
88
+ "no-inline-toc":
89
+ "output-profile": kindle
90
+ :macro_reps: html
69
91
  :filters:
70
- :highlighter: 'coderay'
92
+ :highlighter: coderay
71
93
  :markdown:
72
- :converter: 'bluecloth'
94
+ :converter: bluecloth
73
95
  :redcloth:
74
96
  :restrictions: []
75
97
  :coderay:
@@ -79,7 +101,7 @@
79
101
  :css: :class
80
102
  :ultraviolet:
81
103
  :line_numbers: true
82
- :theme: 'lazy'
104
+ :theme: lazy
83
105
  :system:
84
106
  :quiet: false
85
107
  :structure:
data/document.glyph CHANGED
@@ -1,29 +1,29 @@
1
1
  book[
2
2
  @frontmatter[
3
- toc[]
4
- preface[
5
- @title[Preface]
6
- todo[Write the preface]
7
- include[preface]
8
- ]
9
- ]
3
+ toc[]
4
+ preface[
5
+ @title[Preface]
6
+ todo[Write the preface]
7
+ include[preface]
8
+ ]
9
+ ]
10
10
  @bodymatter[
11
11
  chapter[
12
- @title[Chapter 1]
13
- todo[Write chapter 1]
12
+ @title[Chapter 1]
13
+ todo[Write chapter 1]
14
14
  include[chapter_1]
15
15
  ]
16
16
  chapter[
17
- @title[Chapter 2]
18
- todo[Write chapter 2]
17
+ @title[Chapter 2]
18
+ todo[Write chapter 2]
19
19
  include[chapter_2]
20
20
  ]
21
21
  ]
22
- @backmatter[
23
- appendix[
24
- @title[Appendix A]
25
- todo[Write appendix A]
26
- include[appendix_a]
27
- ]
28
- ]
22
+ @backmatter[
23
+ appendix[
24
+ @title[Appendix A]
25
+ todo[Write appendix A]
26
+ include[appendix_a]
27
+ ]
28
+ ]
29
29
  ]
data/glyph.gemspec CHANGED
@@ -1,294 +1,46 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
3
  Gem::Specification.new do |s|
7
- s.name = %q{glyph}
8
- s.version = "0.4.2"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
4
+ s.name = "glyph"
5
+ s.version = "0.5.0"
6
+ s.summary = "Glyph -- A Ruby-powered Document Authoring Framework"
7
+ s.description = "Glyph is a framework for structured document authoring."
8
+ s.homepage = "http://www.h3rald.com/glyph/"
11
9
  s.authors = ["Fabio Cevasco"]
12
- s.date = %q{2010-10-22}
13
- s.default_executable = %q{glyph}
14
- s.description = %q{Glyph is a framework for structured document authoring.}
15
- s.email = %q{h3rald@h3rald.com}
16
- s.executables = ["glyph"]
17
- s.extra_rdoc_files = [
18
- "LICENSE.textile",
19
- "README.textile"
20
- ]
21
- s.files = [
22
- ".gitignore",
23
- "AUTHORS.textile",
24
- "CHANGELOG.textile",
25
- "LICENSE.textile",
26
- "README.textile",
27
- "Rakefile",
28
- "VERSION",
29
- "benchmark.rb",
30
- "bin/glyph",
31
- "book/config.yml",
32
- "book/document.glyph",
33
- "book/images/glyph/commands_tasks.png",
34
- "book/images/glyph/document_generation.png",
35
- "book/images/glyph/glyph.eps",
36
- "book/images/glyph/glyph.png",
37
- "book/images/glyph/glyph.svg",
38
- "book/lib/commands/commands.rb",
39
- "book/lib/layouts/bookindex.glyph",
40
- "book/lib/layouts/bookpage.glyph",
41
- "book/lib/layouts/project.glyph",
42
- "book/lib/macros/reference.rb",
43
- "book/lib/tasks/tasks.rake",
44
- "book/resources/document_generation.txt",
45
- "book/snippets.yml",
46
- "book/text/acknowledgements.glyph",
47
- "book/text/changelog.glyph",
48
- "book/text/compiling/compiling.glyph",
49
- "book/text/compiling/lite_mode.glyph",
50
- "book/text/compiling/programmatic_usage.glyph",
51
- "book/text/config/document.glyph",
52
- "book/text/config/filters.glyph",
53
- "book/text/config/options.glyph",
54
- "book/text/config/output.glyph",
55
- "book/text/extending/bookmarks_headers.glyph",
56
- "book/text/extending/command.glyph",
57
- "book/text/extending/commands_tasks.glyph",
58
- "book/text/extending/further_reading.glyph",
59
- "book/text/extending/internals.glyph",
60
- "book/text/extending/interpreting.glyph",
61
- "book/text/extending/layouts.glyph",
62
- "book/text/extending/macro_def.glyph",
63
- "book/text/extending/output_format.glyph",
64
- "book/text/extending/params_attrs.glyph",
65
- "book/text/extending/placeholders.glyph",
66
- "book/text/extending/task.glyph",
67
- "book/text/extending/validators.glyph",
68
- "book/text/getting_started/configuration.glyph",
69
- "book/text/getting_started/create_project.glyph",
70
- "book/text/getting_started/structure.glyph",
71
- "book/text/introduction.glyph",
72
- "book/text/license.glyph",
73
- "book/text/macros/macros_block.glyph",
74
- "book/text/macros/macros_core.glyph",
75
- "book/text/macros/macros_filters.glyph",
76
- "book/text/macros/macros_inline.glyph",
77
- "book/text/macros/macros_structure.glyph",
78
- "book/text/ref_commands.glyph",
79
- "book/text/stats/bookmarks.glyph",
80
- "book/text/stats/links.glyph",
81
- "book/text/stats/macros.glyph",
82
- "book/text/stats/snippets.glyph",
83
- "book/text/stats/stats.glyph",
84
- "book/text/text_editing/attribute_intro.glyph",
85
- "book/text/text_editing/code.glyph",
86
- "book/text/text_editing/conditionals.glyph",
87
- "book/text/text_editing/esc_quot.glyph",
88
- "book/text/text_editing/evaluation.glyph",
89
- "book/text/text_editing/glyph_files.glyph",
90
- "book/text/text_editing/images.glyph",
91
- "book/text/text_editing/inclusions.glyph",
92
- "book/text/text_editing/links.glyph",
93
- "book/text/text_editing/macro_intro.glyph",
94
- "book/text/text_editing/raw_html.glyph",
95
- "book/text/text_editing/section_aliases.glyph",
96
- "book/text/text_editing/sections.glyph",
97
- "book/text/text_editing/stylesheets.glyph",
98
- "book/text/text_editing/topics.glyph",
99
- "book/text/text_editing/xml_fallback.glyph",
100
- "book/text/troubleshooting/errors_command.glyph",
101
- "book/text/troubleshooting/errors_generic.glyph",
102
- "book/text/troubleshooting/errors_macro.glyph",
103
- "book/text/troubleshooting/errors_parser.glyph",
104
- "config.yml",
105
- "document.glyph",
106
- "glyph.gemspec",
107
- "layouts/web/index.glyph",
108
- "layouts/web/topic.glyph",
109
- "layouts/web5/index.glyph",
110
- "layouts/web5/topic.glyph",
111
- "lib/glyph.rb",
112
- "lib/glyph/analyzer.rb",
113
- "lib/glyph/bookmark.rb",
114
- "lib/glyph/commands.rb",
115
- "lib/glyph/commands/add.rb",
116
- "lib/glyph/commands/compile.rb",
117
- "lib/glyph/commands/config.rb",
118
- "lib/glyph/commands/init.rb",
119
- "lib/glyph/commands/outline.rb",
120
- "lib/glyph/commands/stats.rb",
121
- "lib/glyph/commands/todo.rb",
122
- "lib/glyph/config.rb",
123
- "lib/glyph/document.rb",
124
- "lib/glyph/interpreter.rb",
125
- "lib/glyph/macro.rb",
126
- "lib/glyph/macro_helpers.rb",
127
- "lib/glyph/macro_validators.rb",
128
- "lib/glyph/node.rb",
129
- "lib/glyph/parser.rb",
130
- "lib/glyph/reporter.rb",
131
- "lib/glyph/syntax_node.rb",
132
- "lib/glyph/system_extensions.rb",
133
- "lib/glyph/utils.rb",
134
- "macros/core.rb",
135
- "macros/filters.rb",
136
- "macros/html/block.rb",
137
- "macros/html/inline.rb",
138
- "macros/html/structure.rb",
139
- "macros/html5/block.rb",
140
- "macros/html5/inline.rb",
141
- "macros/html5/structure.rb",
142
- "macros/xml.rb",
143
- "spec/files/article.glyph",
144
- "spec/files/container.textile",
145
- "spec/files/custom_command.rb",
146
- "spec/files/custom_tasks.rake",
147
- "spec/files/document.glyph",
148
- "spec/files/document_for_stats.glyph",
149
- "spec/files/document_with_toc.glyph",
150
- "spec/files/included.textile",
151
- "spec/files/ligature.jpg",
152
- "spec/files/markdown.markdown",
153
- "spec/files/references.glyph",
154
- "spec/files/test.sass",
155
- "spec/files/test.scss",
156
- "spec/files/web1.glyph",
157
- "spec/files/web2.glyph",
158
- "spec/files/web_doc.glyph",
159
- "spec/lib/analyzer_spec.rb",
160
- "spec/lib/bookmark_spec.rb",
161
- "spec/lib/commands_spec.rb",
162
- "spec/lib/config_spec.rb",
163
- "spec/lib/document_spec.rb",
164
- "spec/lib/glyph_spec.rb",
165
- "spec/lib/interpreter_spec.rb",
166
- "spec/lib/macro_spec.rb",
167
- "spec/lib/macro_validators_spec.rb",
168
- "spec/lib/node_spec.rb",
169
- "spec/lib/parser_spec.rb",
170
- "spec/lib/reporter_spec.rb",
171
- "spec/lib/syntax_node_spec.rb",
172
- "spec/macros/core_spec.rb",
173
- "spec/macros/filters_spec.rb",
174
- "spec/macros/html5_spec.rb",
175
- "spec/macros/macros_spec.rb",
176
- "spec/macros/textile_spec.rb",
177
- "spec/macros/web5_spec.rb",
178
- "spec/macros/web_spec.rb",
179
- "spec/macros/xml_spec.rb",
180
- "spec/spec_helper.rb",
181
- "spec/tasks/generate_spec.rb",
182
- "spec/tasks/load_spec.rb",
183
- "spec/tasks/project_spec.rb",
184
- "styles/coderay.css",
185
- "styles/coderay.scss",
186
- "styles/default.css",
187
- "styles/default.scss",
188
- "styles/definitions.scss",
189
- "styles/generate",
190
- "styles/pagination.css",
191
- "styles/pagination.scss",
192
- "styles/ultraviolet/active4d.css",
193
- "styles/ultraviolet/all_hallows_eve.css",
194
- "styles/ultraviolet/amy.css",
195
- "styles/ultraviolet/blackboard.css",
196
- "styles/ultraviolet/brilliance_black.css",
197
- "styles/ultraviolet/brilliance_dull.css",
198
- "styles/ultraviolet/cobalt.css",
199
- "styles/ultraviolet/dawn.css",
200
- "styles/ultraviolet/eiffel.css",
201
- "styles/ultraviolet/espresso_libre.css",
202
- "styles/ultraviolet/idle.css",
203
- "styles/ultraviolet/iplastic.css",
204
- "styles/ultraviolet/lazy.css",
205
- "styles/ultraviolet/mac_classic.css",
206
- "styles/ultraviolet/magicwb_amiga.css",
207
- "styles/ultraviolet/pastels_on_dark.css",
208
- "styles/ultraviolet/slush_poppies.css",
209
- "styles/ultraviolet/spacecadet.css",
210
- "styles/ultraviolet/sunburst.css",
211
- "styles/ultraviolet/twilight.css",
212
- "styles/ultraviolet/zenburnesque.css",
213
- "tasks/generate.rake",
214
- "tasks/load.rake",
215
- "tasks/project.rake"
216
- ]
217
- s.homepage = %q{http://www.h3rald.com/glyph/}
218
- s.rdoc_options = ["--charset=UTF-8"]
219
- s.require_paths = ["lib"]
220
- s.rubygems_version = %q{1.3.7}
221
- s.summary = %q{Glyph -- A Ruby-powered Document Authoring Framework}
222
- s.test_files = [
223
- "spec/macros/core_spec.rb",
224
- "spec/macros/web_spec.rb",
225
- "spec/macros/html5_spec.rb",
226
- "spec/macros/filters_spec.rb",
227
- "spec/macros/web5_spec.rb",
228
- "spec/macros/textile_spec.rb",
229
- "spec/macros/xml_spec.rb",
230
- "spec/macros/macros_spec.rb",
231
- "spec/lib/interpreter_spec.rb",
232
- "spec/lib/analyzer_spec.rb",
233
- "spec/lib/commands_spec.rb",
234
- "spec/lib/node_spec.rb",
235
- "spec/lib/bookmark_spec.rb",
236
- "spec/lib/macro_spec.rb",
237
- "spec/lib/macro_validators_spec.rb",
238
- "spec/lib/config_spec.rb",
239
- "spec/lib/glyph_spec.rb",
240
- "spec/lib/parser_spec.rb",
241
- "spec/lib/syntax_node_spec.rb",
242
- "spec/lib/document_spec.rb",
243
- "spec/lib/reporter_spec.rb",
244
- "spec/tasks/load_spec.rb",
245
- "spec/tasks/generate_spec.rb",
246
- "spec/tasks/project_spec.rb",
247
- "spec/files/custom_command.rb",
248
- "spec/spec_helper.rb"
249
- ]
10
+ s.email = "h3rald@h3rald.com"
11
+ s.date = "2011-08-28"
12
+ s.license = "MIT"
250
13
 
251
- if s.respond_to? :specification_version then
252
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
253
- s.specification_version = 3
14
+ s.files = ["Rakefile"]
15
+ s.files += Dir.glob("*.*")
16
+ s.files += Dir.glob "bin/**/*"
17
+ s.files += Dir.glob "lib/**/*"
18
+ s.files += Dir.glob "book/*.*"
19
+ s.files += Dir.glob "book/lib/**/*"
20
+ s.files += Dir.glob "book/images/**/*"
21
+ s.files += Dir.glob "book/text/**/*"
22
+ s.files += Dir.glob "book/resources/**/*"
23
+ s.files += Dir.glob "layouts/**/*"
24
+ s.files += Dir.glob "macros/**/*"
25
+ s.files += Dir.glob "spec/**/*"
26
+ s.files += Dir.glob "styles/**/*"
27
+ s.files += Dir.glob "tasks/**/*"
254
28
 
255
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
256
- s.add_runtime_dependency(%q<gli>, [">= 1.1.1"])
257
- s.add_runtime_dependency(%q<extlib>, [">= 0.9.15"])
258
- s.add_runtime_dependency(%q<rake>, [">= 0.8.7"])
259
- s.add_development_dependency(%q<rspec>, [">= 1.3.0"])
260
- s.add_development_dependency(%q<yard>, [">= 0.6.0"])
261
- s.add_development_dependency(%q<jeweler>, ["= 1.4.0"])
262
- s.add_development_dependency(%q<directory_watcher>, [">= 1.3.2"])
263
- s.add_development_dependency(%q<haml>, [">= 3.0.15"])
264
- s.add_development_dependency(%q<RedCloth>, [">= 4.2.3"])
265
- s.add_development_dependency(%q<bluecloth>, [">= 2.0.7"])
266
- s.add_development_dependency(%q<coderay>, [">= 0.9.3"])
267
- else
268
- s.add_dependency(%q<gli>, [">= 1.1.1"])
269
- s.add_dependency(%q<extlib>, [">= 0.9.15"])
270
- s.add_dependency(%q<rake>, [">= 0.8.7"])
271
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
272
- s.add_dependency(%q<yard>, [">= 0.6.0"])
273
- s.add_dependency(%q<jeweler>, ["= 1.4.0"])
274
- s.add_dependency(%q<directory_watcher>, [">= 1.3.2"])
275
- s.add_dependency(%q<haml>, [">= 3.0.15"])
276
- s.add_dependency(%q<RedCloth>, [">= 4.2.3"])
277
- s.add_dependency(%q<bluecloth>, [">= 2.0.7"])
278
- s.add_dependency(%q<coderay>, [">= 0.9.3"])
279
- end
280
- else
281
- s.add_dependency(%q<gli>, [">= 1.1.1"])
282
- s.add_dependency(%q<extlib>, [">= 0.9.15"])
283
- s.add_dependency(%q<rake>, [">= 0.8.7"])
284
- s.add_dependency(%q<rspec>, [">= 1.3.0"])
285
- s.add_dependency(%q<yard>, [">= 0.6.0"])
286
- s.add_dependency(%q<jeweler>, ["= 1.4.0"])
287
- s.add_dependency(%q<directory_watcher>, [">= 1.3.2"])
288
- s.add_dependency(%q<haml>, [">= 3.0.15"])
289
- s.add_dependency(%q<RedCloth>, [">= 4.2.3"])
290
- s.add_dependency(%q<bluecloth>, [">= 2.0.7"])
291
- s.add_dependency(%q<coderay>, [">= 0.9.3"])
292
- end
293
- end
29
+ s.require_paths = ["lib"]
30
+ s.test_files = Dir.glob "spec/**/*"
31
+ s.executables = ["glyph"]
32
+ s.default_executable = "glyph"
33
+ s.extra_rdoc_files = Dir.glob "*.textile"
34
+
35
+ s.add_runtime_dependency("gli", [">= 1.2.6"])
36
+ s.add_runtime_dependency("extlib", [">= 0.9.15"])
37
+ s.add_runtime_dependency("rake", [">= 0.8.7"])
294
38
 
39
+ s.add_development_dependency("rspec", [">= 2.5.1"])
40
+ s.add_development_dependency("yard", [">= 0.6.5"])
41
+ s.add_development_dependency("directory_watcher", [">= 1.4.0"])
42
+ s.add_development_dependency("sass", [">= 3.1.7"])
43
+ s.add_development_dependency("RedCloth", [">= 4.2.7"])
44
+ s.add_development_dependency("bluecloth", [">= 2.1.0"])
45
+ s.add_development_dependency("coderay", [">= 0.9.7"])
46
+ end