amp-front 0.1.0

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 (78) hide show
  1. data/.document +5 -0
  2. data/.gitignore +24 -0
  3. data/Ampfile +3 -0
  4. data/Gemfile +10 -0
  5. data/Gemfile.lock +36 -0
  6. data/LICENSE +20 -0
  7. data/README.md +50 -0
  8. data/Rakefile +64 -0
  9. data/VERSION +1 -0
  10. data/design_docs/commands.md +91 -0
  11. data/design_docs/dependencies.md +35 -0
  12. data/design_docs/plugins.md +47 -0
  13. data/features/amp.feature +8 -0
  14. data/features/amp_help.feature +36 -0
  15. data/features/amp_plugin_list.feature +10 -0
  16. data/features/step_definitions/amp-front_steps.rb +23 -0
  17. data/features/support/env.rb +4 -0
  18. data/lib/amp-front.rb +30 -0
  19. data/lib/amp-front/dispatch/commands/base.rb +158 -0
  20. data/lib/amp-front/dispatch/commands/builtin/help.rb +23 -0
  21. data/lib/amp-front/dispatch/commands/builtin/plugin.rb +24 -0
  22. data/lib/amp-front/dispatch/commands/validations.rb +171 -0
  23. data/lib/amp-front/dispatch/runner.rb +86 -0
  24. data/lib/amp-front/help/entries/__default__.erb +31 -0
  25. data/lib/amp-front/help/entries/ampfiles.md +42 -0
  26. data/lib/amp-front/help/entries/commands.erb +6 -0
  27. data/lib/amp-front/help/entries/new-commands.md +81 -0
  28. data/lib/amp-front/help/help.rb +312 -0
  29. data/lib/amp-front/plugins/base.rb +87 -0
  30. data/lib/amp-front/support/module_extensions.rb +92 -0
  31. data/lib/amp-front/third_party/maruku.rb +136 -0
  32. data/lib/amp-front/third_party/maruku/attributes.rb +227 -0
  33. data/lib/amp-front/third_party/maruku/defaults.rb +71 -0
  34. data/lib/amp-front/third_party/maruku/errors_management.rb +92 -0
  35. data/lib/amp-front/third_party/maruku/helpers.rb +260 -0
  36. data/lib/amp-front/third_party/maruku/input/charsource.rb +326 -0
  37. data/lib/amp-front/third_party/maruku/input/extensions.rb +69 -0
  38. data/lib/amp-front/third_party/maruku/input/html_helper.rb +189 -0
  39. data/lib/amp-front/third_party/maruku/input/linesource.rb +111 -0
  40. data/lib/amp-front/third_party/maruku/input/parse_block.rb +615 -0
  41. data/lib/amp-front/third_party/maruku/input/parse_doc.rb +234 -0
  42. data/lib/amp-front/third_party/maruku/input/parse_span_better.rb +746 -0
  43. data/lib/amp-front/third_party/maruku/input/rubypants.rb +225 -0
  44. data/lib/amp-front/third_party/maruku/input/type_detection.rb +147 -0
  45. data/lib/amp-front/third_party/maruku/input_textile2/t2_parser.rb +163 -0
  46. data/lib/amp-front/third_party/maruku/maruku.rb +33 -0
  47. data/lib/amp-front/third_party/maruku/output/to_ansi.rb +223 -0
  48. data/lib/amp-front/third_party/maruku/output/to_html.rb +991 -0
  49. data/lib/amp-front/third_party/maruku/output/to_markdown.rb +164 -0
  50. data/lib/amp-front/third_party/maruku/output/to_s.rb +56 -0
  51. data/lib/amp-front/third_party/maruku/string_utils.rb +191 -0
  52. data/lib/amp-front/third_party/maruku/structures.rb +167 -0
  53. data/lib/amp-front/third_party/maruku/structures_inspect.rb +87 -0
  54. data/lib/amp-front/third_party/maruku/structures_iterators.rb +61 -0
  55. data/lib/amp-front/third_party/maruku/textile2.rb +1 -0
  56. data/lib/amp-front/third_party/maruku/toc.rb +199 -0
  57. data/lib/amp-front/third_party/maruku/usage/example1.rb +33 -0
  58. data/lib/amp-front/third_party/maruku/version.rb +40 -0
  59. data/lib/amp-front/third_party/trollop.rb +766 -0
  60. data/spec/amp-front_spec.rb +25 -0
  61. data/spec/command_specs/base_spec.rb +123 -0
  62. data/spec/command_specs/command_spec.rb +97 -0
  63. data/spec/command_specs/help_spec.rb +33 -0
  64. data/spec/command_specs/spec_helper.rb +37 -0
  65. data/spec/command_specs/validations_spec.rb +267 -0
  66. data/spec/dispatch_specs/runner_spec.rb +116 -0
  67. data/spec/dispatch_specs/spec_helper.rb +15 -0
  68. data/spec/help_specs/help_entry_spec.rb +78 -0
  69. data/spec/help_specs/help_registry_spec.rb +77 -0
  70. data/spec/help_specs/spec_helper.rb +15 -0
  71. data/spec/plugin_specs/base_spec.rb +36 -0
  72. data/spec/plugin_specs/spec_helper.rb +15 -0
  73. data/spec/spec.opts +1 -0
  74. data/spec/spec_helper.rb +33 -0
  75. data/spec/support_specs/module_extensions_spec.rb +104 -0
  76. data/spec/support_specs/spec_helper.rb +15 -0
  77. data/test/third_party_tests/test_trollop.rb +1181 -0
  78. metadata +192 -0
metadata ADDED
@@ -0,0 +1,192 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: amp-front
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 0
9
+ version: 0.1.0
10
+ platform: ruby
11
+ authors:
12
+ - Michael Edgar
13
+ autorequire:
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2010-11-03 00:00:00 -04:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ name: rspec
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - ">="
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 1
29
+ - 2
30
+ - 9
31
+ version: 1.2.9
32
+ type: :development
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: yard
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
44
+ type: :development
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: cucumber
48
+ prerelease: false
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ type: :development
57
+ version_requirements: *id003
58
+ description: The generic front-end used by Amp. May be completely published as a generic library in the future, at which point a name change will be necessary.
59
+ email: michael.j.edgar@dartmouth.edu
60
+ executables: []
61
+
62
+ extensions: []
63
+
64
+ extra_rdoc_files:
65
+ - LICENSE
66
+ - README.md
67
+ files:
68
+ - .document
69
+ - .gitignore
70
+ - Ampfile
71
+ - Gemfile
72
+ - Gemfile.lock
73
+ - LICENSE
74
+ - README.md
75
+ - Rakefile
76
+ - VERSION
77
+ - design_docs/commands.md
78
+ - design_docs/dependencies.md
79
+ - design_docs/plugins.md
80
+ - features/amp.feature
81
+ - features/amp_help.feature
82
+ - features/amp_plugin_list.feature
83
+ - features/step_definitions/amp-front_steps.rb
84
+ - features/support/env.rb
85
+ - lib/amp-front.rb
86
+ - lib/amp-front/dispatch/commands/base.rb
87
+ - lib/amp-front/dispatch/commands/builtin/help.rb
88
+ - lib/amp-front/dispatch/commands/builtin/plugin.rb
89
+ - lib/amp-front/dispatch/commands/validations.rb
90
+ - lib/amp-front/dispatch/runner.rb
91
+ - lib/amp-front/help/entries/__default__.erb
92
+ - lib/amp-front/help/entries/ampfiles.md
93
+ - lib/amp-front/help/entries/commands.erb
94
+ - lib/amp-front/help/entries/new-commands.md
95
+ - lib/amp-front/help/help.rb
96
+ - lib/amp-front/plugins/base.rb
97
+ - lib/amp-front/support/module_extensions.rb
98
+ - lib/amp-front/third_party/maruku.rb
99
+ - lib/amp-front/third_party/maruku/attributes.rb
100
+ - lib/amp-front/third_party/maruku/defaults.rb
101
+ - lib/amp-front/third_party/maruku/errors_management.rb
102
+ - lib/amp-front/third_party/maruku/helpers.rb
103
+ - lib/amp-front/third_party/maruku/input/charsource.rb
104
+ - lib/amp-front/third_party/maruku/input/extensions.rb
105
+ - lib/amp-front/third_party/maruku/input/html_helper.rb
106
+ - lib/amp-front/third_party/maruku/input/linesource.rb
107
+ - lib/amp-front/third_party/maruku/input/parse_block.rb
108
+ - lib/amp-front/third_party/maruku/input/parse_doc.rb
109
+ - lib/amp-front/third_party/maruku/input/parse_span_better.rb
110
+ - lib/amp-front/third_party/maruku/input/rubypants.rb
111
+ - lib/amp-front/third_party/maruku/input/type_detection.rb
112
+ - lib/amp-front/third_party/maruku/input_textile2/t2_parser.rb
113
+ - lib/amp-front/third_party/maruku/maruku.rb
114
+ - lib/amp-front/third_party/maruku/output/to_ansi.rb
115
+ - lib/amp-front/third_party/maruku/output/to_html.rb
116
+ - lib/amp-front/third_party/maruku/output/to_markdown.rb
117
+ - lib/amp-front/third_party/maruku/output/to_s.rb
118
+ - lib/amp-front/third_party/maruku/string_utils.rb
119
+ - lib/amp-front/third_party/maruku/structures.rb
120
+ - lib/amp-front/third_party/maruku/structures_inspect.rb
121
+ - lib/amp-front/third_party/maruku/structures_iterators.rb
122
+ - lib/amp-front/third_party/maruku/textile2.rb
123
+ - lib/amp-front/third_party/maruku/toc.rb
124
+ - lib/amp-front/third_party/maruku/usage/example1.rb
125
+ - lib/amp-front/third_party/maruku/version.rb
126
+ - lib/amp-front/third_party/trollop.rb
127
+ - spec/amp-front_spec.rb
128
+ - spec/command_specs/base_spec.rb
129
+ - spec/command_specs/command_spec.rb
130
+ - spec/command_specs/help_spec.rb
131
+ - spec/command_specs/spec_helper.rb
132
+ - spec/command_specs/validations_spec.rb
133
+ - spec/dispatch_specs/runner_spec.rb
134
+ - spec/dispatch_specs/spec_helper.rb
135
+ - spec/help_specs/help_entry_spec.rb
136
+ - spec/help_specs/help_registry_spec.rb
137
+ - spec/help_specs/spec_helper.rb
138
+ - spec/plugin_specs/base_spec.rb
139
+ - spec/plugin_specs/spec_helper.rb
140
+ - spec/spec.opts
141
+ - spec/spec_helper.rb
142
+ - spec/support_specs/module_extensions_spec.rb
143
+ - spec/support_specs/spec_helper.rb
144
+ - test/third_party_tests/test_trollop.rb
145
+ has_rdoc: true
146
+ homepage: http://github.com/michaeledgar/amp-front
147
+ licenses: []
148
+
149
+ post_install_message:
150
+ rdoc_options:
151
+ - --charset=UTF-8
152
+ require_paths:
153
+ - lib
154
+ required_ruby_version: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - ">="
157
+ - !ruby/object:Gem::Version
158
+ segments:
159
+ - 0
160
+ version: "0"
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
162
+ requirements:
163
+ - - ">="
164
+ - !ruby/object:Gem::Version
165
+ segments:
166
+ - 0
167
+ version: "0"
168
+ requirements: []
169
+
170
+ rubyforge_project:
171
+ rubygems_version: 1.3.6
172
+ signing_key:
173
+ specification_version: 3
174
+ summary: Generic front-end for Amp.
175
+ test_files:
176
+ - spec/amp-front_spec.rb
177
+ - spec/command_specs/base_spec.rb
178
+ - spec/command_specs/command_spec.rb
179
+ - spec/command_specs/help_spec.rb
180
+ - spec/command_specs/spec_helper.rb
181
+ - spec/command_specs/validations_spec.rb
182
+ - spec/dispatch_specs/runner_spec.rb
183
+ - spec/dispatch_specs/spec_helper.rb
184
+ - spec/help_specs/help_entry_spec.rb
185
+ - spec/help_specs/help_registry_spec.rb
186
+ - spec/help_specs/spec_helper.rb
187
+ - spec/plugin_specs/base_spec.rb
188
+ - spec/plugin_specs/spec_helper.rb
189
+ - spec/spec_helper.rb
190
+ - spec/support_specs/module_extensions_spec.rb
191
+ - spec/support_specs/spec_helper.rb
192
+ - test/third_party_tests/test_trollop.rb