mattock 0.2.2 → 0.2.3

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 (59) hide show
  1. data/doc/FileSandbox.html +537 -0
  2. data/doc/FileSandbox/HaveContents.html +279 -0
  3. data/doc/FileSandbox/Sandbox.html +525 -0
  4. data/doc/FileSandbox/SandboxFile.html +622 -0
  5. data/doc/Mattock.html +137 -0
  6. data/doc/Mattock/CascadingDefinition.html +459 -0
  7. data/doc/Mattock/CommandChain.html +456 -0
  8. data/doc/Mattock/CommandLine.html +1312 -0
  9. data/doc/Mattock/CommandLineExampleGroup.html +282 -0
  10. data/doc/Mattock/CommandLineExampleGroup/Matchers.html +109 -0
  11. data/doc/Mattock/CommandRunResult.html +643 -0
  12. data/doc/Mattock/CommandTask.html +464 -0
  13. data/doc/Mattock/Configurable.html +609 -0
  14. data/doc/Mattock/Configurable/ClassMethods.html +754 -0
  15. data/doc/Mattock/Configurable/Struct.html +148 -0
  16. data/doc/Mattock/FileCreationTask.html +177 -0
  17. data/doc/Mattock/FileTask.html +177 -0
  18. data/doc/Mattock/MockCommandResult.html +445 -0
  19. data/doc/Mattock/MultiTask.html +177 -0
  20. data/doc/Mattock/PipelineChain.html +221 -0
  21. data/doc/Mattock/PrereqChain.html +221 -0
  22. data/doc/Mattock/RakeExampleGroup.html +292 -0
  23. data/doc/Mattock/RakeExampleGroup/Matchers.html +109 -0
  24. data/doc/Mattock/RakeExampleGroup/TaskManager.html +131 -0
  25. data/doc/Mattock/RemoteCommandTask.html +423 -0
  26. data/doc/Mattock/ShellEscaped.html +315 -0
  27. data/doc/Mattock/Task.html +181 -0
  28. data/doc/Mattock/TaskLib.html +755 -0
  29. data/doc/Mattock/TaskMixin.html +668 -0
  30. data/doc/Mattock/TaskMixin/ClassMethods.html +166 -0
  31. data/doc/Mattock/TemplateHost.html +320 -0
  32. data/doc/Mattock/ValiseManager.html +257 -0
  33. data/doc/Mattock/WrappingChain.html +221 -0
  34. data/doc/Mattock/YARDExtensions.html +110 -0
  35. data/doc/Mattock/YARDExtensions/DefineHandler.html +253 -0
  36. data/doc/Mattock/YARDExtensions/NilFieldsHandler.html +258 -0
  37. data/doc/Mattock/YARDExtensions/RequiredFieldsHandler.html +205 -0
  38. data/doc/Mattock/YARDExtensions/SettingHandler.html +529 -0
  39. data/doc/Mattock/YARDExtensions/SettingsHandler.html +207 -0
  40. data/doc/RSpecTest.html +233 -0
  41. data/doc/Ungemmer.html +282 -0
  42. data/doc/_index.html +435 -0
  43. data/doc/class_list.html +47 -0
  44. data/doc/css/common.css +1 -0
  45. data/doc/css/full_list.css +55 -0
  46. data/doc/css/style.css +322 -0
  47. data/doc/file.README.html +107 -0
  48. data/doc/file_list.html +49 -0
  49. data/doc/frames.html +13 -0
  50. data/doc/index.html +107 -0
  51. data/doc/js/app.js +205 -0
  52. data/doc/js/full_list.js +173 -0
  53. data/doc/js/jquery.js +16 -0
  54. data/doc/method_list.html +950 -0
  55. data/doc/top-level-namespace.html +107 -0
  56. data/lib/mattock/task.rb +12 -0
  57. data/lib/mattock/yard_extensions.rb +36 -0
  58. data/yard_templates/default/module/setup.rb +1 -0
  59. metadata +114 -4
@@ -0,0 +1,107 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Top Level Namespace
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="_index.html">Index</a> &raquo;
37
+
38
+
39
+ <span class="title">Top Level Namespace</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Top Level Namespace
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+ </dl>
75
+ <div class="clear"></div>
76
+
77
+
78
+ <h2>Defined Under Namespace</h2>
79
+ <p class="children">
80
+
81
+
82
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Mattock.html" title="Mattock (module)">Mattock</a></span>
83
+
84
+
85
+
86
+
87
+ </p>
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+ </div>
99
+
100
+ <div id="footer">
101
+ Generated on Tue Mar 6 02:47:31 2012 by
102
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
103
+ 0.7.5 (ruby-1.9.2).
104
+ </div>
105
+
106
+ </body>
107
+ </html>
@@ -45,6 +45,10 @@ module Mattock
45
45
  end
46
46
 
47
47
  # I continue to look for an alternative here.
48
+ # The trouble is that deep inside of define_task, Rake actually
49
+ # instantiates the Task - so in wanting to be able to override members of
50
+ # Task, it's hard to get the virtues of CascadingDefinition as well (maybe
51
+ # the virtues could be had without the actual mixin?)
48
52
  def task_class
49
53
  return @task_class if @task_class
50
54
  @task_class = Class.new(self.class) do
@@ -71,4 +75,12 @@ module Mattock
71
75
  class FileTask < Rake::FileTask
72
76
  include TaskMixin
73
77
  end
78
+
79
+ class FileCreationTask < Rake::FileCreationTask
80
+ include TaskMixin
81
+ end
82
+
83
+ class MultiTask < Rake::MultiTask
84
+ include TaskMixin
85
+ end
74
86
  end
@@ -3,12 +3,42 @@ YARD::Templates::Engine.register_template_path File::expand_path("../../../yard_
3
3
 
4
4
  module Mattock
5
5
  module YARDExtensions
6
+ class DefineHandler < YARD::Handlers::Ruby::Base
7
+ handles :def
8
+
9
+ def mattock_defining?(obj, method)
10
+ check_list = obj.inheritance_tree
11
+ until check_list.empty?
12
+ check_list.each do |co|
13
+ return true if [:CascadingDefinition, :Configurable, :Tasklib, :TaskLib].include? co.name and method == "define"
14
+ return true if [:TaskMixin, :Task, :FileTask, :MultiTask].include? co.name and method == "action"
15
+ end
16
+ check_list = check_list.find_all{|co| co.respond_to?(:mixins)}.map{|co| co.mixins}.flatten
17
+ end
18
+ end
19
+
20
+ def process
21
+ return unless mattock_defining?(namespace, statement[0][0])
22
+ namespace[:task_definition] = statement[2]
23
+ end
24
+ end
25
+
6
26
  class SettingHandler < YARD::Handlers::Ruby::Base
7
27
  include YARD::Parser::Ruby
8
28
 
9
29
  handles method_call(:setting)
10
30
  namespace_only
11
31
 
32
+ def mattock_configurable?(obj)
33
+ check_list = obj.inheritance_tree
34
+ until check_list.empty?
35
+ check_list.each do |co|
36
+ return true if [:CascadingDefinition, :Configurable, :Task, :Tasklib, :TaskLib].include? co.name
37
+ end
38
+ check_list = check_list.find_all{|co| co.respond_to?(:mixins)}.map{|co| co.mixins}.flatten
39
+ end
40
+ end
41
+
12
42
  def extract_name(obj)
13
43
  case obj.type
14
44
  when :symbol_literal
@@ -44,6 +74,8 @@ module Mattock
44
74
  end
45
75
 
46
76
  def process
77
+ return unless mattock_configurable?(namespace)
78
+
47
79
  #filter further based on NS === Configurable...
48
80
  name = extract_name(statement.parameters.first)
49
81
 
@@ -82,6 +114,8 @@ module Mattock
82
114
  namespace_only
83
115
 
84
116
  def process
117
+ return unless mattock_configurable?(namespace)
118
+
85
119
  remapped = statement.parameters(false).first.map do |assoc|
86
120
  synthetic_setting(extract_name(assoc[0]), assoc[1])
87
121
  end
@@ -101,6 +135,7 @@ module Mattock
101
135
  end
102
136
 
103
137
  def process
138
+ return unless mattock_configurable?(namespace)
104
139
  remapped = statement.parameters(false).map do |name|
105
140
  synthetic_setting(extract_name(name), a_nil)
106
141
  end
@@ -114,6 +149,7 @@ module Mattock
114
149
  namespace_only
115
150
 
116
151
  def process
152
+ return unless mattock_configurable?(namespace)
117
153
  remapped = statement.parameters(false).map do |name|
118
154
  synthetic_setting(extract_name(name))
119
155
  end
@@ -1,5 +1,6 @@
1
1
  def init
2
2
  super
3
+ sections.place(:task_definition).after(T('docstring'))
3
4
  sections.place(:settings, [:setting_summary]).before(:attribute_summary)
4
5
  end
5
6
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: mattock
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Judson Lester
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-02-07 00:00:00 Z
13
+ date: 2012-03-06 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: corundum
@@ -57,8 +57,25 @@ executables: []
57
57
  extensions: []
58
58
 
59
59
  extra_rdoc_files:
60
+ - doc/js/full_list.js
61
+ - doc/js/app.js
62
+ - doc/js/jquery.js
63
+ - doc/css/style.css
64
+ - doc/css/full_list.css
65
+ - doc/css/common.css
66
+ - doc/Mattock.html
67
+ - doc/RSpecTest.html
68
+ - doc/Ungemmer.html
69
+ - doc/FileSandbox/SandboxFile.html
70
+ - doc/FileSandbox/HaveContents.html
71
+ - doc/FileSandbox/Sandbox.html
72
+ - doc/file_list.html
60
73
  - doc/README
61
74
  - doc/Specifications
75
+ - doc/index.html
76
+ - doc/class_list.html
77
+ - doc/top-level-namespace.html
78
+ - doc/FileSandbox.html
62
79
  - doc/coverage/index.html
63
80
  - doc/coverage/assets/0.5.3/highlight.css
64
81
  - doc/coverage/assets/0.5.3/favicon_yellow.png
@@ -109,6 +126,44 @@ extra_rdoc_files:
109
126
  - doc/coverage/assets/0.5.3/jquery.timeago.js
110
127
  - doc/coverage/assets/0.5.3/loading.gif
111
128
  - doc/coverage/assets/0.5.3/jquery-1.6.2.min.js
129
+ - doc/Mattock/TaskMixin/ClassMethods.html
130
+ - doc/Mattock/WrappingChain.html
131
+ - doc/Mattock/YARDExtensions.html
132
+ - doc/Mattock/CommandLine.html
133
+ - doc/Mattock/RemoteCommandTask.html
134
+ - doc/Mattock/CascadingDefinition.html
135
+ - doc/Mattock/Configurable.html
136
+ - doc/Mattock/PipelineChain.html
137
+ - doc/Mattock/FileCreationTask.html
138
+ - doc/Mattock/TaskLib.html
139
+ - doc/Mattock/RakeExampleGroup/TaskManager.html
140
+ - doc/Mattock/RakeExampleGroup/Matchers.html
141
+ - doc/Mattock/RakeExampleGroup.html
142
+ - doc/Mattock/CommandRunResult.html
143
+ - doc/Mattock/TemplateHost.html
144
+ - doc/Mattock/YARDExtensions/NilFieldsHandler.html
145
+ - doc/Mattock/YARDExtensions/SettingsHandler.html
146
+ - doc/Mattock/YARDExtensions/DefineHandler.html
147
+ - doc/Mattock/YARDExtensions/SettingHandler.html
148
+ - doc/Mattock/YARDExtensions/RequiredFieldsHandler.html
149
+ - doc/Mattock/PrereqChain.html
150
+ - doc/Mattock/CommandLineExampleGroup/Matchers.html
151
+ - doc/Mattock/CommandChain.html
152
+ - doc/Mattock/CommandTask.html
153
+ - doc/Mattock/MultiTask.html
154
+ - doc/Mattock/Configurable/ClassMethods.html
155
+ - doc/Mattock/Configurable/Struct.html
156
+ - doc/Mattock/ValiseManager.html
157
+ - doc/Mattock/MockCommandResult.html
158
+ - doc/Mattock/TaskMixin.html
159
+ - doc/Mattock/ShellEscaped.html
160
+ - doc/Mattock/Task.html
161
+ - doc/Mattock/CommandLineExampleGroup.html
162
+ - doc/Mattock/FileTask.html
163
+ - doc/_index.html
164
+ - doc/file.README.html
165
+ - doc/method_list.html
166
+ - doc/frames.html
112
167
  files:
113
168
  - yard_templates/default/module/setup.rb
114
169
  - yard_templates/default/module/html/setting_summary.erb
@@ -136,6 +191,23 @@ files:
136
191
  - spec/template-host.rb
137
192
  - spec_help/spec_helper.rb
138
193
  - spec_help/gem_test_suite.rb
194
+ - doc/js/full_list.js
195
+ - doc/js/app.js
196
+ - doc/js/jquery.js
197
+ - doc/css/style.css
198
+ - doc/css/full_list.css
199
+ - doc/css/common.css
200
+ - doc/Mattock.html
201
+ - doc/RSpecTest.html
202
+ - doc/Ungemmer.html
203
+ - doc/FileSandbox/SandboxFile.html
204
+ - doc/FileSandbox/HaveContents.html
205
+ - doc/FileSandbox/Sandbox.html
206
+ - doc/file_list.html
207
+ - doc/index.html
208
+ - doc/class_list.html
209
+ - doc/top-level-namespace.html
210
+ - doc/FileSandbox.html
139
211
  - doc/coverage/index.html
140
212
  - doc/coverage/assets/0.5.3/highlight.css
141
213
  - doc/coverage/assets/0.5.3/favicon_yellow.png
@@ -186,6 +258,44 @@ files:
186
258
  - doc/coverage/assets/0.5.3/jquery.timeago.js
187
259
  - doc/coverage/assets/0.5.3/loading.gif
188
260
  - doc/coverage/assets/0.5.3/jquery-1.6.2.min.js
261
+ - doc/Mattock/TaskMixin/ClassMethods.html
262
+ - doc/Mattock/WrappingChain.html
263
+ - doc/Mattock/YARDExtensions.html
264
+ - doc/Mattock/CommandLine.html
265
+ - doc/Mattock/RemoteCommandTask.html
266
+ - doc/Mattock/CascadingDefinition.html
267
+ - doc/Mattock/Configurable.html
268
+ - doc/Mattock/PipelineChain.html
269
+ - doc/Mattock/FileCreationTask.html
270
+ - doc/Mattock/TaskLib.html
271
+ - doc/Mattock/RakeExampleGroup/TaskManager.html
272
+ - doc/Mattock/RakeExampleGroup/Matchers.html
273
+ - doc/Mattock/RakeExampleGroup.html
274
+ - doc/Mattock/CommandRunResult.html
275
+ - doc/Mattock/TemplateHost.html
276
+ - doc/Mattock/YARDExtensions/NilFieldsHandler.html
277
+ - doc/Mattock/YARDExtensions/SettingsHandler.html
278
+ - doc/Mattock/YARDExtensions/DefineHandler.html
279
+ - doc/Mattock/YARDExtensions/SettingHandler.html
280
+ - doc/Mattock/YARDExtensions/RequiredFieldsHandler.html
281
+ - doc/Mattock/PrereqChain.html
282
+ - doc/Mattock/CommandLineExampleGroup/Matchers.html
283
+ - doc/Mattock/CommandChain.html
284
+ - doc/Mattock/CommandTask.html
285
+ - doc/Mattock/MultiTask.html
286
+ - doc/Mattock/Configurable/ClassMethods.html
287
+ - doc/Mattock/Configurable/Struct.html
288
+ - doc/Mattock/ValiseManager.html
289
+ - doc/Mattock/MockCommandResult.html
290
+ - doc/Mattock/TaskMixin.html
291
+ - doc/Mattock/ShellEscaped.html
292
+ - doc/Mattock/Task.html
293
+ - doc/Mattock/CommandLineExampleGroup.html
294
+ - doc/Mattock/FileTask.html
295
+ - doc/_index.html
296
+ - doc/file.README.html
297
+ - doc/method_list.html
298
+ - doc/frames.html
189
299
  homepage: http://mattock.rubyforge.org/
190
300
  licenses:
191
301
  - MIT
@@ -195,7 +305,7 @@ rdoc_options:
195
305
  - --main
196
306
  - doc/README
197
307
  - --title
198
- - mattock-0.2.2 RDoc
308
+ - mattock-0.2.3 RDoc
199
309
  require_paths:
200
310
  - lib/
201
311
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -203,7 +313,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
313
  requirements:
204
314
  - - ">="
205
315
  - !ruby/object:Gem::Version
206
- hash: -727049471
316
+ hash: 1069203247
207
317
  segments:
208
318
  - 0
209
319
  version: "0"