ymdp 0.9.2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. data/Gemfile +2 -1
  2. data/VERSION +1 -1
  3. data/doc/ActionView.html +175 -0
  4. data/doc/ActionView/Helpers.html +175 -0
  5. data/doc/ActionView/Helpers/TagHelper.html +439 -0
  6. data/doc/Application.html +295 -0
  7. data/doc/LICENSE.html +158 -0
  8. data/doc/Object.html +218 -0
  9. data/doc/README_rdoc.html +147 -0
  10. data/doc/YMDP.html +232 -0
  11. data/doc/YMDP/ApplicationView.html +563 -0
  12. data/doc/YMDP/AssetTagHelper.html +235 -0
  13. data/doc/YMDP/Base.html +560 -0
  14. data/doc/YMDP/Compiler.html +178 -0
  15. data/doc/YMDP/Compiler/Base.html +1181 -0
  16. data/doc/YMDP/Compiler/Domains.html +493 -0
  17. data/doc/YMDP/Compiler/Options.html +265 -0
  18. data/doc/YMDP/Compiler/Template.html +175 -0
  19. data/doc/YMDP/Compiler/Template/Base.html +911 -0
  20. data/doc/YMDP/Compiler/Template/CoffeeScript.html +236 -0
  21. data/doc/YMDP/Compiler/Template/JavaScript.html +237 -0
  22. data/doc/YMDP/Compiler/Template/View.html +495 -0
  23. data/doc/YMDP/Compiler/Template/YRB.html +469 -0
  24. data/doc/YMDP/Configuration.html +175 -0
  25. data/doc/YMDP/Configuration/Base.html +426 -0
  26. data/doc/YMDP/Configuration/Config.html +553 -0
  27. data/doc/YMDP/Configuration/Servers.html +265 -0
  28. data/doc/YMDP/Configuration/Setter.html +580 -0
  29. data/doc/YMDP/FormTagHelper.html +298 -0
  30. data/doc/YMDP/GitHelper.html +298 -0
  31. data/doc/YMDP/LinkTagHelper.html +299 -0
  32. data/doc/YMDP/View.html +239 -0
  33. data/doc/created.rid +18 -0
  34. data/doc/images/add.png +0 -0
  35. data/doc/images/brick.png +0 -0
  36. data/doc/images/brick_link.png +0 -0
  37. data/doc/images/bug.png +0 -0
  38. data/doc/images/bullet_black.png +0 -0
  39. data/doc/images/bullet_toggle_minus.png +0 -0
  40. data/doc/images/bullet_toggle_plus.png +0 -0
  41. data/doc/images/date.png +0 -0
  42. data/doc/images/delete.png +0 -0
  43. data/doc/images/find.png +0 -0
  44. data/doc/images/loadingAnimation.gif +0 -0
  45. data/doc/images/macFFBgHack.png +0 -0
  46. data/doc/images/package.png +0 -0
  47. data/doc/images/page_green.png +0 -0
  48. data/doc/images/page_white_text.png +0 -0
  49. data/doc/images/page_white_width.png +0 -0
  50. data/doc/images/plugin.png +0 -0
  51. data/doc/images/ruby.png +0 -0
  52. data/doc/images/tag_blue.png +0 -0
  53. data/doc/images/tag_green.png +0 -0
  54. data/doc/images/transparent.png +0 -0
  55. data/doc/images/wrench.png +0 -0
  56. data/doc/images/wrench_orange.png +0 -0
  57. data/doc/images/zoom.png +0 -0
  58. data/doc/index.html +134 -0
  59. data/doc/js/darkfish.js +153 -0
  60. data/doc/js/jquery.js +18 -0
  61. data/doc/js/navigation.js +142 -0
  62. data/doc/js/search.js +94 -0
  63. data/doc/js/search_index.js +1 -0
  64. data/doc/js/searcher.js +228 -0
  65. data/doc/rdoc.css +543 -0
  66. data/doc/table_of_contents.html +401 -0
  67. data/lib/ymdp/compiler/template.rb +5 -1
  68. data/lib/ymdp/view/application_view.rb +10 -5
  69. data/ymdp.gemspec +69 -2
  70. metadata +120 -42
@@ -0,0 +1,298 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module YMDP::FormTagHelper - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ymdp/view/asset_tag_helper.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+
60
+
61
+ <!-- Method Quickref -->
62
+ <nav id="method-list-section" class="section">
63
+ <h3 class="section-header">Methods</h3>
64
+
65
+ <ul class="link-list">
66
+
67
+ <li><a href="#method-i-label">#label</a>
68
+
69
+ <li><a href="#method-i-password_field">#password_field</a>
70
+
71
+ <li><a href="#method-i-text_field">#text_field</a>
72
+
73
+ </ul>
74
+ </nav>
75
+
76
+ </div>
77
+
78
+ <div id="project-metadata">
79
+ <nav id="fileindex-section" class="section project-section">
80
+ <h3 class="section-header">Pages</h3>
81
+
82
+ <ul>
83
+
84
+ <li class="file"><a href="../LICENSE.html">LICENSE</a>
85
+
86
+ <li class="file"><a href="../README_rdoc.html">README</a>
87
+
88
+ </ul>
89
+ </nav>
90
+
91
+ <nav id="classindex-section" class="section project-section">
92
+ <h3 class="section-header">Class and Module Index</h3>
93
+
94
+ <ul class="link-list">
95
+
96
+ <li><a href="../YMDP.html">YMDP</a>
97
+
98
+ <li><a href="../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
99
+
100
+ <li><a href="../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
101
+
102
+ <li><a href="../YMDP/Base.html">YMDP::Base</a>
103
+
104
+ <li><a href="../YMDP/Compiler.html">YMDP::Compiler</a>
105
+
106
+ <li><a href="../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
107
+
108
+ <li><a href="../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
109
+
110
+ <li><a href="../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
111
+
112
+ <li><a href="../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
113
+
114
+ <li><a href="../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
115
+
116
+ <li><a href="../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
117
+
118
+ <li><a href="../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
119
+
120
+ <li><a href="../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
121
+
122
+ <li><a href="../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
123
+
124
+ <li><a href="../YMDP/Configuration.html">YMDP::Configuration</a>
125
+
126
+ <li><a href="../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
127
+
128
+ <li><a href="../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
129
+
130
+ <li><a href="../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
131
+
132
+ <li><a href="../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
133
+
134
+ <li><a href="../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
135
+
136
+ <li><a href="../YMDP/GitHelper.html">YMDP::GitHelper</a>
137
+
138
+ <li><a href="../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
139
+
140
+ <li><a href="../YMDP/View.html">YMDP::View</a>
141
+
142
+ <li><a href="../ActionView.html">ActionView</a>
143
+
144
+ <li><a href="../ActionView/Helpers.html">ActionView::Helpers</a>
145
+
146
+ <li><a href="../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
147
+
148
+ <li><a href="../Application.html">Application</a>
149
+
150
+ <li><a href="../Object.html">Object</a>
151
+
152
+ </ul>
153
+ </nav>
154
+
155
+ </div>
156
+ </nav>
157
+
158
+ <div id="documentation">
159
+ <h1 class="module">module YMDP::FormTagHelper</h1>
160
+
161
+ <div id="description" class="description">
162
+
163
+ </div><!-- description -->
164
+
165
+
166
+
167
+
168
+ <section id="5Buntitled-5D" class="documentation-section">
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+ <!-- Methods -->
178
+
179
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
180
+ <h3 class="section-header">Public Instance Methods</h3>
181
+
182
+
183
+ <div id="method-i-label" class="method-detail ">
184
+
185
+ <div class="method-heading">
186
+ <span class="method-name">label</span><span
187
+ class="method-args">(name, content_or_options = nil, options = {})</span>
188
+ <span class="method-click-advice">click to toggle source</span>
189
+ </div>
190
+
191
+
192
+ <div class="method-description">
193
+
194
+
195
+
196
+
197
+
198
+ <div class="method-source-code" id="label-source">
199
+ <pre><span class="ruby-comment"># File lib/ymdp/view/asset_tag_helper.rb, line 48</span>
200
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">label</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">content_or_options</span> = <span class="ruby-keyword">nil</span>, <span class="ruby-identifier">options</span> = {})
201
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">content_or_options</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
202
+ <span class="ruby-identifier">options</span> = <span class="ruby-identifier">content_or_options</span>
203
+ <span class="ruby-identifier">text</span> = <span class="ruby-identifier">name</span>
204
+ <span class="ruby-keyword">else</span>
205
+ <span class="ruby-identifier">text</span> = <span class="ruby-identifier">content_or_options</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">name</span>
206
+ <span class="ruby-keyword">end</span>
207
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:id</span>] <span class="ruby-operator">||=</span> <span class="ruby-node">&quot;#{name.downcase}_label&quot;</span>
208
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:for</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">downcase</span>
209
+ <span class="ruby-identifier">content_tag</span>(<span class="ruby-string">&quot;label&quot;</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">options</span>)
210
+ <span class="ruby-keyword">end</span></pre>
211
+ </div><!-- label-source -->
212
+
213
+ </div>
214
+
215
+
216
+
217
+
218
+ </div><!-- label-method -->
219
+
220
+
221
+ <div id="method-i-password_field" class="method-detail ">
222
+
223
+ <div class="method-heading">
224
+ <span class="method-name">password_field</span><span
225
+ class="method-args">(name, options={})</span>
226
+ <span class="method-click-advice">click to toggle source</span>
227
+ </div>
228
+
229
+
230
+ <div class="method-description">
231
+
232
+
233
+
234
+
235
+
236
+ <div class="method-source-code" id="password_field-source">
237
+ <pre><span class="ruby-comment"># File lib/ymdp/view/asset_tag_helper.rb, line 43</span>
238
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">password_field</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span>={})
239
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:type</span>] = <span class="ruby-string">&quot;password&quot;</span>
240
+ <span class="ruby-identifier">text_field</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span>)
241
+ <span class="ruby-keyword">end</span></pre>
242
+ </div><!-- password_field-source -->
243
+
244
+ </div>
245
+
246
+
247
+
248
+
249
+ </div><!-- password_field-method -->
250
+
251
+
252
+ <div id="method-i-text_field" class="method-detail ">
253
+
254
+ <div class="method-heading">
255
+ <span class="method-name">text_field</span><span
256
+ class="method-args">(name, options={})</span>
257
+ <span class="method-click-advice">click to toggle source</span>
258
+ </div>
259
+
260
+
261
+ <div class="method-description">
262
+
263
+
264
+
265
+
266
+
267
+ <div class="method-source-code" id="text_field-source">
268
+ <pre><span class="ruby-comment"># File lib/ymdp/view/asset_tag_helper.rb, line 35</span>
269
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">text_field</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span>={})
270
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:id</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">name</span>
271
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:name</span>] <span class="ruby-operator">||=</span> <span class="ruby-identifier">name</span>
272
+ <span class="ruby-identifier">options</span>[<span class="ruby-value">:type</span>] <span class="ruby-operator">||=</span> <span class="ruby-string">&quot;text&quot;</span>
273
+
274
+ <span class="ruby-identifier">tag</span>(<span class="ruby-string">&quot;input&quot;</span>, <span class="ruby-identifier">options</span>)
275
+ <span class="ruby-keyword">end</span></pre>
276
+ </div><!-- text_field-source -->
277
+
278
+ </div>
279
+
280
+
281
+
282
+
283
+ </div><!-- text_field-method -->
284
+
285
+
286
+ </section><!-- public-instance-method-details -->
287
+
288
+ </section><!-- 5Buntitled-5D -->
289
+
290
+ </div><!-- documentation -->
291
+
292
+
293
+ <footer id="validator-badges">
294
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
295
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
296
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
297
+ </footer>
298
+
@@ -0,0 +1,298 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>class YMDP::GitHelper - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="class">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/ymdp/compiler/git_helper.rb
51
+ </ul>
52
+ </nav>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <nav id="parent-class-section" class="section">
60
+ <h3 class="section-header">Parent</h3>
61
+
62
+ <p class="link"><a href="../Object.html">Object</a>
63
+
64
+ </nav>
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <nav id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+
71
+ <ul class="link-list">
72
+
73
+ <li><a href="#method-i-do_commit">#do_commit</a>
74
+
75
+ <li><a href="#method-i-get_current_branch">#get_current_branch</a>
76
+
77
+ <li><a href="#method-i-get_hash">#get_hash</a>
78
+
79
+ </ul>
80
+ </nav>
81
+
82
+ </div>
83
+
84
+ <div id="project-metadata">
85
+ <nav id="fileindex-section" class="section project-section">
86
+ <h3 class="section-header">Pages</h3>
87
+
88
+ <ul>
89
+
90
+ <li class="file"><a href="../LICENSE.html">LICENSE</a>
91
+
92
+ <li class="file"><a href="../README_rdoc.html">README</a>
93
+
94
+ </ul>
95
+ </nav>
96
+
97
+ <nav id="classindex-section" class="section project-section">
98
+ <h3 class="section-header">Class and Module Index</h3>
99
+
100
+ <ul class="link-list">
101
+
102
+ <li><a href="../YMDP.html">YMDP</a>
103
+
104
+ <li><a href="../YMDP/ApplicationView.html">YMDP::ApplicationView</a>
105
+
106
+ <li><a href="../YMDP/AssetTagHelper.html">YMDP::AssetTagHelper</a>
107
+
108
+ <li><a href="../YMDP/Base.html">YMDP::Base</a>
109
+
110
+ <li><a href="../YMDP/Compiler.html">YMDP::Compiler</a>
111
+
112
+ <li><a href="../YMDP/Compiler/Base.html">YMDP::Compiler::Base</a>
113
+
114
+ <li><a href="../YMDP/Compiler/Domains.html">YMDP::Compiler::Domains</a>
115
+
116
+ <li><a href="../YMDP/Compiler/Options.html">YMDP::Compiler::Options</a>
117
+
118
+ <li><a href="../YMDP/Compiler/Template.html">YMDP::Compiler::Template</a>
119
+
120
+ <li><a href="../YMDP/Compiler/Template/Base.html">YMDP::Compiler::Template::Base</a>
121
+
122
+ <li><a href="../YMDP/Compiler/Template/CoffeeScript.html">YMDP::Compiler::Template::CoffeeScript</a>
123
+
124
+ <li><a href="../YMDP/Compiler/Template/JavaScript.html">YMDP::Compiler::Template::JavaScript</a>
125
+
126
+ <li><a href="../YMDP/Compiler/Template/View.html">YMDP::Compiler::Template::View</a>
127
+
128
+ <li><a href="../YMDP/Compiler/Template/YRB.html">YMDP::Compiler::Template::YRB</a>
129
+
130
+ <li><a href="../YMDP/Configuration.html">YMDP::Configuration</a>
131
+
132
+ <li><a href="../YMDP/Configuration/Base.html">YMDP::Configuration::Base</a>
133
+
134
+ <li><a href="../YMDP/Configuration/Config.html">YMDP::Configuration::Config</a>
135
+
136
+ <li><a href="../YMDP/Configuration/Servers.html">YMDP::Configuration::Servers</a>
137
+
138
+ <li><a href="../YMDP/Configuration/Setter.html">YMDP::Configuration::Setter</a>
139
+
140
+ <li><a href="../YMDP/FormTagHelper.html">YMDP::FormTagHelper</a>
141
+
142
+ <li><a href="../YMDP/GitHelper.html">YMDP::GitHelper</a>
143
+
144
+ <li><a href="../YMDP/LinkTagHelper.html">YMDP::LinkTagHelper</a>
145
+
146
+ <li><a href="../YMDP/View.html">YMDP::View</a>
147
+
148
+ <li><a href="../ActionView.html">ActionView</a>
149
+
150
+ <li><a href="../ActionView/Helpers.html">ActionView::Helpers</a>
151
+
152
+ <li><a href="../ActionView/Helpers/TagHelper.html">ActionView::Helpers::TagHelper</a>
153
+
154
+ <li><a href="../Application.html">Application</a>
155
+
156
+ <li><a href="../Object.html">Object</a>
157
+
158
+ </ul>
159
+ </nav>
160
+
161
+ </div>
162
+ </nav>
163
+
164
+ <div id="documentation">
165
+ <h1 class="class">class YMDP::GitHelper</h1>
166
+
167
+ <div id="description" class="description">
168
+
169
+ </div><!-- description -->
170
+
171
+
172
+
173
+
174
+ <section id="5Buntitled-5D" class="documentation-section">
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+ <!-- Methods -->
184
+
185
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
186
+ <h3 class="section-header">Public Instance Methods</h3>
187
+
188
+
189
+ <div id="method-i-do_commit" class="method-detail ">
190
+
191
+ <div class="method-heading">
192
+ <span class="method-name">do_commit</span><span
193
+ class="method-args">(message)</span>
194
+ <span class="method-click-advice">click to toggle source</span>
195
+ </div>
196
+
197
+
198
+ <div class="method-description">
199
+
200
+
201
+
202
+
203
+
204
+ <div class="method-source-code" id="do_commit-source">
205
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/git_helper.rb, line 20</span>
206
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">do_commit</span>(<span class="ruby-identifier">message</span>)
207
+ <span class="ruby-identifier">repo</span> = <span class="ruby-constant">Repo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&quot;.&quot;</span>)
208
+ <span class="ruby-identifier">repo</span>.<span class="ruby-identifier">add</span>(<span class="ruby-string">&quot;.&quot;</span>)
209
+ <span class="ruby-identifier">$stdout</span>.<span class="ruby-identifier">puts</span> <span class="ruby-constant">F</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-node">&quot;git commit -am \&quot;#{message}\&quot;&quot;</span>, <span class="ruby-value">:return</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>)
210
+ <span class="ruby-keyword">end</span></pre>
211
+ </div><!-- do_commit-source -->
212
+
213
+ </div>
214
+
215
+
216
+
217
+
218
+ </div><!-- do_commit-method -->
219
+
220
+
221
+ <div id="method-i-get_current_branch" class="method-detail ">
222
+
223
+ <div class="method-heading">
224
+ <span class="method-name">get_current_branch</span><span
225
+ class="method-args">()</span>
226
+ <span class="method-click-advice">click to toggle source</span>
227
+ </div>
228
+
229
+
230
+ <div class="method-description">
231
+
232
+
233
+
234
+
235
+
236
+ <div class="method-source-code" id="get_current_branch-source">
237
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/git_helper.rb, line 13</span>
238
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_current_branch</span>
239
+ <span class="ruby-identifier">result</span> = <span class="ruby-constant">F</span>.<span class="ruby-identifier">execute</span>(<span class="ruby-string">&quot;git status&quot;</span>, <span class="ruby-value">:return</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>)
240
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">=~</span> <span class="ruby-node">%r# On branch (.*)/</span>
241
+ <span class="ruby-keyword">return</span> <span class="ruby-node">$1</span>
242
+ <span class="ruby-keyword">end</span>
243
+ <span class="ruby-keyword">end</span></pre>
244
+ </div><!-- get_current_branch-source -->
245
+
246
+ </div>
247
+
248
+
249
+
250
+
251
+ </div><!-- get_current_branch-method -->
252
+
253
+
254
+ <div id="method-i-get_hash" class="method-detail ">
255
+
256
+ <div class="method-heading">
257
+ <span class="method-name">get_hash</span><span
258
+ class="method-args">(branch)</span>
259
+ <span class="method-click-advice">click to toggle source</span>
260
+ </div>
261
+
262
+
263
+ <div class="method-description">
264
+
265
+
266
+
267
+
268
+
269
+ <div class="method-source-code" id="get_hash-source">
270
+ <pre><span class="ruby-comment"># File lib/ymdp/compiler/git_helper.rb, line 7</span>
271
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_hash</span>(<span class="ruby-identifier">branch</span>)
272
+ <span class="ruby-identifier">branch</span> = <span class="ruby-identifier">get_current_branch</span> <span class="ruby-operator">||</span> <span class="ruby-string">&quot;master&quot;</span>
273
+ <span class="ruby-identifier">repo</span> = <span class="ruby-constant">Repo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">&quot;#{BASE_PATH}/.&quot;</span>)
274
+ <span class="ruby-identifier">repo</span>.<span class="ruby-identifier">commits</span>(<span class="ruby-identifier">branch</span>).<span class="ruby-identifier">first</span>.<span class="ruby-identifier">id</span>
275
+ <span class="ruby-keyword">end</span></pre>
276
+ </div><!-- get_hash-source -->
277
+
278
+ </div>
279
+
280
+
281
+
282
+
283
+ </div><!-- get_hash-method -->
284
+
285
+
286
+ </section><!-- public-instance-method-details -->
287
+
288
+ </section><!-- 5Buntitled-5D -->
289
+
290
+ </div><!-- documentation -->
291
+
292
+
293
+ <footer id="validator-badges">
294
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
295
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
296
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
297
+ </footer>
298
+