hookapp 2.0.3 → 2.0.8
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/AUTHORS.md +4 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +49 -66
- data/LICENSE +21 -0
- data/README.md +52 -19
- data/Rakefile +7 -3
- data/bin/hook +114 -78
- data/buildnotes.md +30 -0
- data/hook.rdoc +35 -11
- data/hookapp.gemspec +2 -2
- data/html/App.html +6 -18
- data/html/GLI/Commands/Doc.html +2 -10
- data/html/GLI/Commands/MarkdownDocumentListener.html +34 -230
- data/html/GLI/Commands.html +2 -10
- data/html/GLI.html +2 -10
- data/html/Hook.html +2 -15
- data/html/HookApp.html +99 -319
- data/html/Hooker.html +46 -24
- data/html/README_rdoc.html +49 -23
- data/html/String.html +28 -120
- data/html/created.rid +8 -8
- data/html/css/rdoc.css +21 -1
- data/html/index.html +38 -29
- data/html/js/navigation.js.gz +0 -0
- data/html/js/search_index.js +1 -1
- data/html/js/search_index.js.gz +0 -0
- data/html/js/searcher.js.gz +0 -0
- data/html/table_of_contents.html +33 -77
- data/lib/helpers/fuzzyfilefinder +0 -0
- data/lib/hook/hookapp.rb +39 -21
- data/lib/hook/hooker.rb +5 -2
- data/lib/hook/markdown_document_listener.rb +12 -2
- data/lib/hook/string.rb +4 -0
- data/lib/hook/version.rb +1 -1
- data/lib/hook.rb +5 -4
- data/test/helpers/hook-helpers.rb +76 -0
- data/test/hook_clip_test.rb +24 -0
- data/test/hook_clone_test.rb +30 -0
- data/test/hook_encode_test.rb +30 -0
- data/test/hook_link_test.rb +39 -0
- data/test/hook_list_test.rb +25 -0
- data/test/hook_remove_test.rb +34 -0
- data/test/hook_scripts_test.rb +21 -0
- metadata +19 -22
- data/test/default_test.rb +0 -14
- data/test/hookfiles/01.test +0 -0
- data/test/hookfiles/02.test +0 -0
- data/test/hookfiles/03.test +0 -0
- data/test/hookfiles/04.test +0 -0
- data/test/hookfiles/05.test +0 -0
- data/test/hookfiles/06.test +0 -0
- data/test/hookfiles/07.test +0 -0
- data/test/hookfiles/08.test +0 -0
- data/test/hookfiles/09.test +0 -0
- data/test/hookfiles/10.test +0 -0
- data/test/hookfiles/11.test +0 -0
- data/test/hookfiles/12.test +0 -0
data/html/Hooker.html
CHANGED
@@ -21,8 +21,6 @@
|
|
21
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
|
-
|
26
24
|
<body id="top" role="document" class="class">
|
27
25
|
<nav role="navigation">
|
28
26
|
<div id="project-navigation">
|
@@ -59,28 +57,25 @@
|
|
59
57
|
|
60
58
|
<div id="class-metadata">
|
61
59
|
|
62
|
-
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
63
62
|
<h3>Parent</h3>
|
64
63
|
|
65
|
-
|
66
|
-
<p class="link">Object
|
67
|
-
|
64
|
+
<p class="link"><a href="HookApp.html">HookApp</a>
|
68
65
|
</div>
|
69
66
|
|
70
|
-
|
71
|
-
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
71
|
+
<div id="method-list-section" class="nav-section">
|
72
|
+
<h3>Methods</h3>
|
72
73
|
|
73
|
-
<ul class="link-list">
|
74
|
-
|
75
|
-
|
76
|
-
<li><a class="include" href="HookApp.html">HookApp</a>
|
77
|
-
|
78
|
-
|
74
|
+
<ul class="link-list" role="directory">
|
75
|
+
<li class="calls-super" ><a href="#method-c-new">::new</a>
|
79
76
|
</ul>
|
80
77
|
</div>
|
81
78
|
|
82
|
-
|
83
|
-
|
84
79
|
</div>
|
85
80
|
</nav>
|
86
81
|
|
@@ -95,25 +90,52 @@
|
|
95
90
|
|
96
91
|
</section>
|
97
92
|
|
98
|
-
|
99
93
|
<section id="5Buntitled-5D" class="documentation-section">
|
100
|
-
|
101
94
|
|
102
|
-
|
103
95
|
|
104
|
-
|
105
96
|
|
106
|
-
|
107
97
|
|
108
|
-
|
109
|
-
</section>
|
110
98
|
|
99
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
100
|
+
<header>
|
101
|
+
<h3>Public Class Methods</h3>
|
102
|
+
</header>
|
103
|
+
|
104
|
+
<div id="method-c-new" class="method-detail ">
|
105
|
+
<div class="method-heading">
|
106
|
+
<span class="method-name">new</span><span
|
107
|
+
class="method-args">()</span>
|
108
|
+
<span class="method-click-advice">click to toggle source</span>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<div class="method-description">
|
112
|
+
|
113
|
+
<div class="method-calls-super">
|
114
|
+
Calls superclass method
|
115
|
+
|
116
|
+
</div>
|
117
|
+
|
118
|
+
<div class="method-source-code" id="new-source">
|
119
|
+
<pre><span class="ruby-comment"># File lib/hook/hooker.rb, line 5</span>
|
120
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
|
121
|
+
<span class="ruby-keyword">super</span>
|
122
|
+
<span class="ruby-identifier">warn</span> <span class="ruby-string">"Using Hooker class is deprecated, update to use HookApp instead"</span>
|
123
|
+
<span class="ruby-keyword">end</span></pre>
|
124
|
+
</div>
|
125
|
+
</div>
|
126
|
+
|
127
|
+
|
128
|
+
</div>
|
129
|
+
|
130
|
+
</section>
|
131
|
+
|
132
|
+
</section>
|
111
133
|
</main>
|
112
134
|
|
113
135
|
|
114
136
|
<footer id="validator-badges" role="contentinfo">
|
115
137
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
116
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.
|
138
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
117
139
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
118
140
|
</footer>
|
119
141
|
|
data/html/README_rdoc.html
CHANGED
@@ -21,8 +21,6 @@
|
|
21
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
|
-
|
26
24
|
<body id="top" role="document" class="file">
|
27
25
|
<nav role="navigation">
|
28
26
|
<div id="project-navigation">
|
@@ -71,9 +69,9 @@
|
|
71
69
|
<li><a href="#label-a-7C--app+APP_NAME">-a|–app APP_NAME</a>
|
72
70
|
<li><a href="#label-m-7C--markdown">-m|–markdown</a>
|
73
71
|
<li><a href="#label-Command-3A+clone++SOURCE+TARGET">Command: <code>clone SOURCE TARGET</code></a>
|
74
|
-
<li><a href="#label-Command-3A+find-7Csearch
|
72
|
+
<li><a href="#label-Command-3A+find-7Csearch++-5BSEARCH_STRING-5D">Command: <code>find|search [SEARCH_STRING]</code></a>
|
75
73
|
<li><a href="#label-Options">Options</a>
|
76
|
-
<li><a href="#label-o-7C--output_format+
|
74
|
+
<li><a href="#label-o-7C--output_format+FORMAT">-o|–output_format FORMAT</a>
|
77
75
|
<li><a href="#label-f-7C--files_only">-f|–files_only</a>
|
78
76
|
<li><a href="#label-n-7C--names_only">-n|–names_only</a>
|
79
77
|
<li><a href="#label--null">–null</a>
|
@@ -84,20 +82,25 @@
|
|
84
82
|
<li><a href="#label-Command-3A+help++command">Command: <code>help command</code></a>
|
85
83
|
<li><a href="#label-Options">Options</a>
|
86
84
|
<li><a href="#label-c">-c</a>
|
87
|
-
<li><a href="#label-Command-3A+link-7Cln++SOURCE
|
85
|
+
<li><a href="#label-Command-3A+link-7Cln++SOURCE...+TARGET">Command: <code>link|ln SOURCE... TARGET</code></a>
|
88
86
|
<li><a href="#label-Options">Options</a>
|
89
87
|
<li><a href="#label-a-7C--all">-a|–all</a>
|
90
88
|
<li><a href="#label-p-7C--paste">-p|–paste</a>
|
91
|
-
<li><a href="#label-Command-3A+list-7Cls
|
89
|
+
<li><a href="#label-Command-3A+list-7Cls++-5BFILE_OR_URL-5D...">Command: <code>list|ls [FILE_OR_URL]...</code></a>
|
92
90
|
<li><a href="#label-Options">Options</a>
|
93
|
-
<li><a href="#label-o-7C--output_format+
|
91
|
+
<li><a href="#label-o-7C--output_format+FORMAT">-o|–output_format FORMAT</a>
|
94
92
|
<li><a href="#label-f-7C--files_only">-f|–files_only</a>
|
95
93
|
<li><a href="#label--null">–null</a>
|
96
94
|
<li><a href="#label-s-7C--select">-<a href="no-">s|–</a>select</a>
|
97
95
|
<li><a href="#label-Command-3A+open-7Cgui++FILE_OR_URL">Command: <code>open|gui FILE_OR_URL</code></a>
|
98
|
-
<li><a href="#label-Command-3A+
|
96
|
+
<li><a href="#label-Command-3A+percent++STRING">Command: <code>percent STRING</code></a>
|
97
|
+
<li><a href="#label-Commands">Commands</a>
|
98
|
+
<li><a href="#label-Command-3A+decode++STRING">Command: <code>decode STRING</code></a>
|
99
|
+
<li><a href="#label-Command-3A+encode++STRING">Command: <code>encode STRING</code></a>
|
100
|
+
<li><a href="#label-Command-3A+remove-7Crm++FILE_OR_URL...">Command: <code>remove|rm FILE_OR_URL...</code></a>
|
99
101
|
<li><a href="#label-Options">Options</a>
|
100
102
|
<li><a href="#label-a-7C--all">-a|–all</a>
|
103
|
+
<li><a href="#label-f-7C--force">-f|–force</a>
|
101
104
|
<li><a href="#label-Command-3A+scripts++SHELL">Command: <code>scripts SHELL</code></a>
|
102
105
|
<li><a href="#label-Command-3A+select++FILE_OR_URL">Command: <code>select FILE_OR_URL</code></a>
|
103
106
|
</ul>
|
@@ -105,13 +108,12 @@
|
|
105
108
|
|
106
109
|
|
107
110
|
<div id="project-metadata">
|
108
|
-
|
111
|
+
|
112
|
+
<div id="fileindex-section" class="nav-section">
|
109
113
|
<h3>Pages</h3>
|
110
114
|
|
111
115
|
<ul class="link-list">
|
112
|
-
|
113
116
|
<li><a href="./README_rdoc.html">README</a>
|
114
|
-
|
115
117
|
</ul>
|
116
118
|
</div>
|
117
119
|
|
@@ -126,9 +128,11 @@
|
|
126
128
|
|
127
129
|
<h2 id="label-hook+-+CLI+interface+for+Hook.app+-28macOS-29">hook - CLI interface for Hook.app (macOS)<span><a href="#label-hook+-+CLI+interface+for+Hook.app+-28macOS-29">¶</a> <a href="#top">↑</a></span></h2>
|
128
130
|
|
129
|
-
<p>Hook.app is a productivity tool for macOS <<a href="https://hookproductivity.com">hookproductivity.com</a>/>
|
131
|
+
<p>Hook.app is a productivity tool for macOS <<a href="https://hookproductivity.com">hookproductivity.com</a>/>.</p>
|
130
132
|
|
131
|
-
<p>
|
133
|
+
<p>This gem includes a `hook` binary that allows interaction with the features of Hook.app.</p>
|
134
|
+
|
135
|
+
<p>v2.0.7</p>
|
132
136
|
|
133
137
|
<h3 id="label-Global+Options">Global Options<span><a href="#label-Global+Options">¶</a> <a href="#top">↑</a></span></h3>
|
134
138
|
|
@@ -148,7 +152,7 @@
|
|
148
152
|
|
149
153
|
<p>Creates a bookmark for the specified file or URL and copies its <a href="Hook.html"><code>Hook</code></a> URL to the clipboard.</p>
|
150
154
|
|
151
|
-
<p>The copied <a href="Hook.html"><code>Hook</code></a> URL can be used to link to other files (use `hook link –paste FILE/URL
|
155
|
+
<p>The copied <a href="Hook.html"><code>Hook</code></a> URL can be used to link to other files (use `hook link –paste FILE/URL`, or to paste into another app as a link. Use the -m flag to copy a full Markdown link.</p>
|
152
156
|
|
153
157
|
<h5 id="label-Options">Options<span><a href="#label-Options">¶</a> <a href="#top">↑</a></span></h5>
|
154
158
|
|
@@ -168,9 +172,11 @@
|
|
168
172
|
|
169
173
|
<p>Clone all hooks from one file or url onto another</p>
|
170
174
|
|
171
|
-
<p>Copy all the files and urls that the first file is hooked to onto another file
|
175
|
+
<p>Copy all the files and urls that the first file is hooked to onto another file.</p>
|
176
|
+
|
177
|
+
<p>Exactly two arguments (SOURCE, TARGET) required.</p>
|
172
178
|
|
173
|
-
<h4 id="label-Command-3A+find-7Csearch
|
179
|
+
<h4 id="label-Command-3A+find-7Csearch++-5BSEARCH_STRING-5D">Command: <code>find|search [SEARCH_STRING]</code><span><a href="#label-Command-3A+find-7Csearch++-5BSEARCH_STRING-5D">¶</a> <a href="#top">↑</a></span></h4>
|
174
180
|
|
175
181
|
<p>Search bookmarks</p>
|
176
182
|
|
@@ -180,7 +186,7 @@
|
|
180
186
|
|
181
187
|
<h5 id="label-Options">Options<span><a href="#label-Options">¶</a> <a href="#top">↑</a></span></h5>
|
182
188
|
|
183
|
-
<h5 id="label-o-7C--output_format+
|
189
|
+
<h5 id="label-o-7C--output_format+FORMAT">-o|–output_format FORMAT<span><a href="#label-o-7C--output_format+FORMAT">¶</a> <a href="#top">↑</a></span></h5>
|
184
190
|
|
185
191
|
<p>Output format [(h)ooks, (p)aths, (m)arkdown, (v)erbose]</p>
|
186
192
|
<dl class="rdoc-list label-list"><dt>Default Value
|
@@ -230,7 +236,7 @@
|
|
230
236
|
|
231
237
|
<p>List commands one per line, to assist with shell completion</p>
|
232
238
|
|
233
|
-
<h4 id="label-Command-3A+link-7Cln++SOURCE
|
239
|
+
<h4 id="label-Command-3A+link-7Cln++SOURCE...+TARGET">Command: <code>link|ln SOURCE... TARGET</code><span><a href="#label-Command-3A+link-7Cln++SOURCE...+TARGET">¶</a> <a href="#top">↑</a></span></h4>
|
234
240
|
|
235
241
|
<p>Create bidirectional hooks between two or more files/urls</p>
|
236
242
|
|
@@ -248,7 +254,7 @@
|
|
248
254
|
|
249
255
|
<p>Paste URL from clipboard</p>
|
250
256
|
|
251
|
-
<h4 id="label-Command-3A+list-7Cls
|
257
|
+
<h4 id="label-Command-3A+list-7Cls++-5BFILE_OR_URL-5D...">Command: <code>list|ls [FILE_OR_URL]...</code><span><a href="#label-Command-3A+list-7Cls++-5BFILE_OR_URL-5D...">¶</a> <a href="#top">↑</a></span></h4>
|
252
258
|
|
253
259
|
<p>List hooks on a file or url</p>
|
254
260
|
|
@@ -258,7 +264,7 @@
|
|
258
264
|
|
259
265
|
<h5 id="label-Options">Options<span><a href="#label-Options">¶</a> <a href="#top">↑</a></span></h5>
|
260
266
|
|
261
|
-
<h5 id="label-o-7C--output_format+
|
267
|
+
<h5 id="label-o-7C--output_format+FORMAT">-o|–output_format FORMAT<span><a href="#label-o-7C--output_format+FORMAT">¶</a> <a href="#top">↑</a></span></h5>
|
262
268
|
|
263
269
|
<p>Output format [(h)ooks, (p)aths, (m)arkdown, (v)erbose]</p>
|
264
270
|
<dl class="rdoc-list label-list"><dt>Default Value
|
@@ -284,9 +290,27 @@
|
|
284
290
|
|
285
291
|
<p>Open the specified file or url in <a href="Hook.html"><code>Hook</code></a> GUI</p>
|
286
292
|
|
287
|
-
<p>Opens Hook.app on the specified file/URL for browsing and performing actions
|
293
|
+
<p>Opens Hook.app on the specified file/URL for browsing and performing actions.</p>
|
294
|
+
|
295
|
+
<p>Exactly one argument (File/URL) required.</p>
|
296
|
+
|
297
|
+
<h4 id="label-Command-3A+percent++STRING">Command: <code>percent STRING</code><span><a href="#label-Command-3A+percent++STRING">¶</a> <a href="#top">↑</a></span></h4>
|
288
298
|
|
289
|
-
<
|
299
|
+
<p>Percent encode/decode a string</p>
|
300
|
+
|
301
|
+
<p>Use encode or decode to apply Hook's url encoding to a string argument. Use '-' to read input from STDIN.</p>
|
302
|
+
|
303
|
+
<h5 id="label-Commands">Commands<span><a href="#label-Commands">¶</a> <a href="#top">↑</a></span></h5>
|
304
|
+
|
305
|
+
<h6 id="label-Command-3A+decode++STRING">Command: <code>decode STRING</code><span><a href="#label-Command-3A+decode++STRING">¶</a> <a href="#top">↑</a></span></h6>
|
306
|
+
|
307
|
+
<p>decode a percent-encoded string</p>
|
308
|
+
|
309
|
+
<h6 id="label-Command-3A+encode++STRING">Command: <code>encode STRING</code><span><a href="#label-Command-3A+encode++STRING">¶</a> <a href="#top">↑</a></span></h6>
|
310
|
+
|
311
|
+
<p>percent encode a string</p>
|
312
|
+
|
313
|
+
<h4 id="label-Command-3A+remove-7Crm++FILE_OR_URL...">Command: <code>remove|rm FILE_OR_URL...</code><span><a href="#label-Command-3A+remove-7Crm++FILE_OR_URL...">¶</a> <a href="#top">↑</a></span></h4>
|
290
314
|
|
291
315
|
<p>Remove a hook between two files/urls</p>
|
292
316
|
|
@@ -300,6 +324,8 @@
|
|
300
324
|
|
301
325
|
<p>Remove ALL links on files, requires confirmation</p>
|
302
326
|
|
327
|
+
<h5 id="label-f-7C--force">-f|–force<span><a href="#label-f-7C--force">¶</a> <a href="#top">↑</a></span></h5>
|
328
|
+
|
303
329
|
<h4 id="label-Command-3A+scripts++SHELL">Command: <code>scripts SHELL</code><span><a href="#label-Command-3A+scripts++SHELL">¶</a> <a href="#top">↑</a></span></h4>
|
304
330
|
|
305
331
|
<p>Shell completion examples</p>
|
@@ -322,7 +348,7 @@
|
|
322
348
|
|
323
349
|
<footer id="validator-badges" role="contentinfo">
|
324
350
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
325
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.
|
351
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
326
352
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
327
353
|
</footer>
|
328
354
|
|
data/html/String.html
CHANGED
@@ -21,8 +21,6 @@
|
|
21
21
|
<link href="./css/rdoc.css" rel="stylesheet">
|
22
22
|
|
23
23
|
|
24
|
-
|
25
|
-
|
26
24
|
<body id="top" role="document" class="class">
|
27
25
|
<nav role="navigation">
|
28
26
|
<div id="project-navigation">
|
@@ -59,38 +57,30 @@
|
|
59
57
|
|
60
58
|
<div id="class-metadata">
|
61
59
|
|
62
|
-
|
60
|
+
|
61
|
+
<div id="parent-class-section" class="nav-section">
|
63
62
|
<h3>Parent</h3>
|
64
63
|
|
65
|
-
|
66
64
|
<p class="link">Object
|
67
|
-
|
68
65
|
</div>
|
69
66
|
|
70
67
|
|
71
68
|
|
72
|
-
|
69
|
+
|
70
|
+
<!-- Method Quickref -->
|
73
71
|
<div id="method-list-section" class="nav-section">
|
74
72
|
<h3>Methods</h3>
|
75
73
|
|
76
74
|
<ul class="link-list" role="directory">
|
77
|
-
|
78
75
|
<li ><a href="#method-i-cap">#cap</a>
|
79
|
-
|
80
76
|
<li ><a href="#method-i-cap-21">#cap!</a>
|
81
|
-
|
82
77
|
<li ><a href="#method-i-clip">#clip</a>
|
83
|
-
|
78
|
+
<li ><a href="#method-i-escape_quotes">#escape_quotes</a>
|
84
79
|
<li ><a href="#method-i-nil_if_missing">#nil_if_missing</a>
|
85
|
-
|
86
80
|
<li ><a href="#method-i-split_hook">#split_hook</a>
|
87
|
-
|
88
81
|
<li ><a href="#method-i-split_hooks">#split_hooks</a>
|
89
|
-
|
90
82
|
<li ><a href="#method-i-valid_hook">#valid_hook</a>
|
91
|
-
|
92
83
|
<li ><a href="#method-i-valid_hook-21">#valid_hook!</a>
|
93
|
-
|
94
84
|
</ul>
|
95
85
|
</div>
|
96
86
|
|
@@ -108,41 +98,27 @@
|
|
108
98
|
|
109
99
|
</section>
|
110
100
|
|
111
|
-
|
112
101
|
<section id="5Buntitled-5D" class="documentation-section">
|
113
|
-
|
114
102
|
|
115
|
-
|
116
103
|
|
117
|
-
|
118
104
|
|
119
|
-
|
120
105
|
|
121
|
-
|
106
|
+
|
122
107
|
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
123
108
|
<header>
|
124
109
|
<h3>Public Instance Methods</h3>
|
125
110
|
</header>
|
126
111
|
|
127
|
-
|
128
112
|
<div id="method-i-cap" class="method-detail ">
|
129
|
-
|
130
113
|
<div class="method-heading">
|
131
114
|
<span class="method-name">cap</span><span
|
132
115
|
class="method-args">()</span>
|
133
|
-
|
134
116
|
<span class="method-click-advice">click to toggle source</span>
|
135
|
-
|
136
117
|
</div>
|
137
|
-
|
138
118
|
|
139
119
|
<div class="method-description">
|
140
|
-
|
141
120
|
<p>Capitalize only if no uppercase</p>
|
142
|
-
|
143
|
-
|
144
121
|
|
145
|
-
|
146
122
|
<div class="method-source-code" id="cap-source">
|
147
123
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 42</span>
|
148
124
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cap</span>
|
@@ -153,66 +129,42 @@
|
|
153
129
|
<span class="ruby-keyword">end</span>
|
154
130
|
<span class="ruby-keyword">end</span></pre>
|
155
131
|
</div>
|
156
|
-
|
157
132
|
</div>
|
158
133
|
|
159
|
-
|
160
134
|
|
161
|
-
|
162
135
|
</div>
|
163
136
|
|
164
|
-
|
165
137
|
<div id="method-i-cap-21" class="method-detail ">
|
166
|
-
|
167
138
|
<div class="method-heading">
|
168
139
|
<span class="method-name">cap!</span><span
|
169
140
|
class="method-args">()</span>
|
170
|
-
|
171
141
|
<span class="method-click-advice">click to toggle source</span>
|
172
|
-
|
173
142
|
</div>
|
174
|
-
|
175
143
|
|
176
144
|
<div class="method-description">
|
177
145
|
|
178
|
-
|
179
|
-
|
180
|
-
|
181
146
|
|
182
|
-
|
183
147
|
<div class="method-source-code" id="cap-21-source">
|
184
148
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 50</span>
|
185
149
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">cap!</span>
|
186
150
|
<span class="ruby-identifier">replace</span> <span class="ruby-identifier">cap</span>
|
187
151
|
<span class="ruby-keyword">end</span></pre>
|
188
152
|
</div>
|
189
|
-
|
190
153
|
</div>
|
191
154
|
|
192
|
-
|
193
155
|
|
194
|
-
|
195
156
|
</div>
|
196
157
|
|
197
|
-
|
198
158
|
<div id="method-i-clip" class="method-detail ">
|
199
|
-
|
200
159
|
<div class="method-heading">
|
201
160
|
<span class="method-name">clip</span><span
|
202
161
|
class="method-args">()</span>
|
203
|
-
|
204
162
|
<span class="method-click-advice">click to toggle source</span>
|
205
|
-
|
206
163
|
</div>
|
207
|
-
|
208
164
|
|
209
165
|
<div class="method-description">
|
210
166
|
|
211
|
-
|
212
|
-
|
213
|
-
|
214
167
|
|
215
|
-
|
216
168
|
<div class="method-source-code" id="clip-source">
|
217
169
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 54</span>
|
218
170
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">clip</span>
|
@@ -222,33 +174,42 @@
|
|
222
174
|
<span class="ruby-keyword">true</span>
|
223
175
|
<span class="ruby-keyword">end</span></pre>
|
224
176
|
</div>
|
177
|
+
</div>
|
178
|
+
|
179
|
+
|
180
|
+
</div>
|
181
|
+
|
182
|
+
<div id="method-i-escape_quotes" class="method-detail ">
|
183
|
+
<div class="method-heading">
|
184
|
+
<span class="method-name">escape_quotes</span><span
|
185
|
+
class="method-args">()</span>
|
186
|
+
<span class="method-click-advice">click to toggle source</span>
|
187
|
+
</div>
|
188
|
+
|
189
|
+
<div class="method-description">
|
225
190
|
|
191
|
+
|
192
|
+
<div class="method-source-code" id="escape_quotes-source">
|
193
|
+
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 61</span>
|
194
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">escape_quotes</span>
|
195
|
+
<span class="ruby-identifier">gsub</span>(<span class="ruby-regexp">/"/</span>, <span class="ruby-string">'\\"'</span>)
|
196
|
+
<span class="ruby-keyword">end</span></pre>
|
197
|
+
</div>
|
226
198
|
</div>
|
227
199
|
|
228
|
-
|
229
200
|
|
230
|
-
|
231
201
|
</div>
|
232
202
|
|
233
|
-
|
234
203
|
<div id="method-i-nil_if_missing" class="method-detail ">
|
235
|
-
|
236
204
|
<div class="method-heading">
|
237
205
|
<span class="method-name">nil_if_missing</span><span
|
238
206
|
class="method-args">()</span>
|
239
|
-
|
240
207
|
<span class="method-click-advice">click to toggle source</span>
|
241
|
-
|
242
208
|
</div>
|
243
|
-
|
244
209
|
|
245
210
|
<div class="method-description">
|
246
211
|
|
247
|
-
|
248
|
-
|
249
|
-
|
250
212
|
|
251
|
-
|
252
213
|
<div class="method-source-code" id="nil_if_missing-source">
|
253
214
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 5</span>
|
254
215
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">nil_if_missing</span>
|
@@ -259,33 +220,21 @@
|
|
259
220
|
<span class="ruby-keyword">end</span>
|
260
221
|
<span class="ruby-keyword">end</span></pre>
|
261
222
|
</div>
|
262
|
-
|
263
223
|
</div>
|
264
224
|
|
265
|
-
|
266
225
|
|
267
|
-
|
268
226
|
</div>
|
269
227
|
|
270
|
-
|
271
228
|
<div id="method-i-split_hook" class="method-detail ">
|
272
|
-
|
273
229
|
<div class="method-heading">
|
274
230
|
<span class="method-name">split_hook</span><span
|
275
231
|
class="method-args">()</span>
|
276
|
-
|
277
232
|
<span class="method-click-advice">click to toggle source</span>
|
278
|
-
|
279
233
|
</div>
|
280
|
-
|
281
234
|
|
282
235
|
<div class="method-description">
|
283
236
|
|
284
|
-
|
285
|
-
|
286
|
-
|
287
237
|
|
288
|
-
|
289
238
|
<div class="method-source-code" id="split_hook-source">
|
290
239
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 13</span>
|
291
240
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">split_hook</span>
|
@@ -297,66 +246,42 @@
|
|
297
246
|
}
|
298
247
|
<span class="ruby-keyword">end</span></pre>
|
299
248
|
</div>
|
300
|
-
|
301
249
|
</div>
|
302
250
|
|
303
|
-
|
304
251
|
|
305
|
-
|
306
252
|
</div>
|
307
253
|
|
308
|
-
|
309
254
|
<div id="method-i-split_hooks" class="method-detail ">
|
310
|
-
|
311
255
|
<div class="method-heading">
|
312
256
|
<span class="method-name">split_hooks</span><span
|
313
257
|
class="method-args">()</span>
|
314
|
-
|
315
258
|
<span class="method-click-advice">click to toggle source</span>
|
316
|
-
|
317
259
|
</div>
|
318
|
-
|
319
260
|
|
320
261
|
<div class="method-description">
|
321
262
|
|
322
|
-
|
323
|
-
|
324
|
-
|
325
263
|
|
326
|
-
|
327
264
|
<div class="method-source-code" id="split_hooks-source">
|
328
265
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 22</span>
|
329
266
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">split_hooks</span>
|
330
267
|
<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\^\^/</span>).<span class="ruby-identifier">map</span>(<span class="ruby-operator">&</span><span class="ruby-value">:split_hook</span>)
|
331
268
|
<span class="ruby-keyword">end</span></pre>
|
332
269
|
</div>
|
333
|
-
|
334
270
|
</div>
|
335
271
|
|
336
|
-
|
337
272
|
|
338
|
-
|
339
273
|
</div>
|
340
274
|
|
341
|
-
|
342
275
|
<div id="method-i-valid_hook" class="method-detail ">
|
343
|
-
|
344
276
|
<div class="method-heading">
|
345
277
|
<span class="method-name">valid_hook</span><span
|
346
278
|
class="method-args">()</span>
|
347
|
-
|
348
279
|
<span class="method-click-advice">click to toggle source</span>
|
349
|
-
|
350
280
|
</div>
|
351
|
-
|
352
281
|
|
353
282
|
<div class="method-description">
|
354
283
|
|
355
|
-
|
356
|
-
|
357
|
-
|
358
284
|
|
359
|
-
|
360
285
|
<div class="method-source-code" id="valid_hook-source">
|
361
286
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 26</span>
|
362
287
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">valid_hook</span>
|
@@ -370,58 +295,41 @@
|
|
370
295
|
<span class="ruby-keyword">end</span>
|
371
296
|
<span class="ruby-keyword">end</span></pre>
|
372
297
|
</div>
|
373
|
-
|
374
298
|
</div>
|
375
299
|
|
376
|
-
|
377
300
|
|
378
|
-
|
379
301
|
</div>
|
380
302
|
|
381
|
-
|
382
303
|
<div id="method-i-valid_hook-21" class="method-detail ">
|
383
|
-
|
384
304
|
<div class="method-heading">
|
385
305
|
<span class="method-name">valid_hook!</span><span
|
386
306
|
class="method-args">()</span>
|
387
|
-
|
388
307
|
<span class="method-click-advice">click to toggle source</span>
|
389
|
-
|
390
308
|
</div>
|
391
|
-
|
392
309
|
|
393
310
|
<div class="method-description">
|
394
311
|
|
395
|
-
|
396
|
-
|
397
|
-
|
398
312
|
|
399
|
-
|
400
313
|
<div class="method-source-code" id="valid_hook-21-source">
|
401
314
|
<pre><span class="ruby-comment"># File lib/hook/string.rb, line 37</span>
|
402
315
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">valid_hook!</span>
|
403
316
|
<span class="ruby-identifier">replace</span> <span class="ruby-identifier">valid_hook</span>
|
404
317
|
<span class="ruby-keyword">end</span></pre>
|
405
318
|
</div>
|
406
|
-
|
407
319
|
</div>
|
408
320
|
|
409
|
-
|
410
321
|
|
411
|
-
|
412
322
|
</div>
|
413
323
|
|
414
|
-
|
415
324
|
</section>
|
416
|
-
|
417
|
-
</section>
|
418
325
|
|
326
|
+
</section>
|
419
327
|
</main>
|
420
328
|
|
421
329
|
|
422
330
|
<footer id="validator-badges" role="contentinfo">
|
423
331
|
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
424
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.
|
332
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.2.
|
425
333
|
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
426
334
|
</footer>
|
427
335
|
|