spoonerize 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/README.md +2 -4
- data/Rakefile +1 -1
- data/lib/spoonerize/version.rb +1 -1
- data/spoonerize.gemspec +1 -1
- metadata +3 -53
- data/doc/README_md.html +0 -238
- data/doc/Spoonerize.html +0 -125
- data/doc/Spoonerize/Bumper.html +0 -287
- data/doc/Spoonerize/Cli.html +0 -545
- data/doc/Spoonerize/Log.html +0 -362
- data/doc/Spoonerize/Spoonerism.html +0 -759
- data/doc/created.rid +0 -8
- data/doc/css/fonts.css +0 -167
- data/doc/css/rdoc.css +0 -619
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -241
- data/doc/js/darkfish.js +0 -84
- data/doc/js/navigation.js +0 -105
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +0 -110
- data/doc/js/search_index.js +0 -1
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +0 -229
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +0 -257
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e49c4789b8b72e510696f5488826a844aaa3c56be7f00b334de009949f4c4359
|
4
|
+
data.tar.gz: b945049341316cd9f126d16989dbbbdf6745a16e1fb33fc71ff8c506ccf3f1ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 854f6e483ca545e7fbfb770566d2ef1b2bc9126acb4ae73326ab70f92309ea1d86c9aadb6abf2bb278bca1240898ca849e388d17588e5db0647bec35b03e0a56
|
7
|
+
data.tar.gz: c6d17b2f4ed3d01f4d9cf72b3255782a92a8d896700274d77e06c56af8255e211127b9f6536d97ef4daf576b5db0360f82704b63f0e51b729055d65c417f8035
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -6,9 +6,7 @@
|
|
6
6
|
> Spoonerism *[noun]* a verbal error in which a speaker accidentally transposes
|
7
7
|
> the initial sounds or letters of two or more words, often to humorous effect.
|
8
8
|
|
9
|
-
|
10
|
-
[Github Pages](https://evanthegrayt.github.io/spoonerize/) |
|
11
|
-
[RubyGems](https://rubygems.org/gems/spoonerize)
|
9
|
+
You can view the documentation [here](https://evanthegrayt.github.io/spoonerize/)
|
12
10
|
|
13
11
|
## About
|
14
12
|
We've all done it; someone says a phrase, and you flip the first few letters
|
@@ -122,7 +120,7 @@ executable's flags.
|
|
122
120
|
|
123
121
|
## API
|
124
122
|
The API is [fully
|
125
|
-
documented](https://evanthegrayt.github.io/spoonerize/
|
123
|
+
documented](https://evanthegrayt.github.io/spoonerize/), but below
|
126
124
|
are some quick examples of how you could use this in your ruby code.
|
127
125
|
|
128
126
|
```ruby
|
data/Rakefile
CHANGED
data/lib/spoonerize/version.rb
CHANGED
data/spoonerize.gemspec
CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
|
|
19
19
|
|
20
20
|
spec.metadata['homepage_uri'] = spec.homepage
|
21
21
|
spec.metadata['source_code_uri'] = 'https://github.com/evanthegrayt/spoonerize'
|
22
|
-
spec.metadata['documentation_uri'] = 'https://evanthegrayt.github.io/spoonerize/
|
22
|
+
spec.metadata['documentation_uri'] = 'https://evanthegrayt.github.io/spoonerize/'
|
23
23
|
else
|
24
24
|
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
25
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spoonerize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evan Gray
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -66,56 +66,6 @@ files:
|
|
66
66
|
- Rakefile
|
67
67
|
- _config.yml
|
68
68
|
- bin/spoonerize
|
69
|
-
- doc/README_md.html
|
70
|
-
- doc/Spoonerize.html
|
71
|
-
- doc/Spoonerize/Bumper.html
|
72
|
-
- doc/Spoonerize/Cli.html
|
73
|
-
- doc/Spoonerize/Log.html
|
74
|
-
- doc/Spoonerize/Spoonerism.html
|
75
|
-
- doc/created.rid
|
76
|
-
- doc/css/fonts.css
|
77
|
-
- doc/css/rdoc.css
|
78
|
-
- doc/fonts/Lato-Light.ttf
|
79
|
-
- doc/fonts/Lato-LightItalic.ttf
|
80
|
-
- doc/fonts/Lato-Regular.ttf
|
81
|
-
- doc/fonts/Lato-RegularItalic.ttf
|
82
|
-
- doc/fonts/SourceCodePro-Bold.ttf
|
83
|
-
- doc/fonts/SourceCodePro-Regular.ttf
|
84
|
-
- doc/images/add.png
|
85
|
-
- doc/images/arrow_up.png
|
86
|
-
- doc/images/brick.png
|
87
|
-
- doc/images/brick_link.png
|
88
|
-
- doc/images/bug.png
|
89
|
-
- doc/images/bullet_black.png
|
90
|
-
- doc/images/bullet_toggle_minus.png
|
91
|
-
- doc/images/bullet_toggle_plus.png
|
92
|
-
- doc/images/date.png
|
93
|
-
- doc/images/delete.png
|
94
|
-
- doc/images/find.png
|
95
|
-
- doc/images/loadingAnimation.gif
|
96
|
-
- doc/images/macFFBgHack.png
|
97
|
-
- doc/images/package.png
|
98
|
-
- doc/images/page_green.png
|
99
|
-
- doc/images/page_white_text.png
|
100
|
-
- doc/images/page_white_width.png
|
101
|
-
- doc/images/plugin.png
|
102
|
-
- doc/images/ruby.png
|
103
|
-
- doc/images/tag_blue.png
|
104
|
-
- doc/images/tag_green.png
|
105
|
-
- doc/images/transparent.png
|
106
|
-
- doc/images/wrench.png
|
107
|
-
- doc/images/wrench_orange.png
|
108
|
-
- doc/images/zoom.png
|
109
|
-
- doc/index.html
|
110
|
-
- doc/js/darkfish.js
|
111
|
-
- doc/js/navigation.js
|
112
|
-
- doc/js/navigation.js.gz
|
113
|
-
- doc/js/search.js
|
114
|
-
- doc/js/search_index.js
|
115
|
-
- doc/js/search_index.js.gz
|
116
|
-
- doc/js/searcher.js
|
117
|
-
- doc/js/searcher.js.gz
|
118
|
-
- doc/table_of_contents.html
|
119
69
|
- lib/config/lazy_words.yml
|
120
70
|
- lib/spoonerize.rb
|
121
71
|
- lib/spoonerize/bumper.rb
|
@@ -131,7 +81,7 @@ metadata:
|
|
131
81
|
allowed_push_host: https://rubygems.org
|
132
82
|
homepage_uri: https://evanthegrayt.github.io/spoonerize/
|
133
83
|
source_code_uri: https://github.com/evanthegrayt/spoonerize
|
134
|
-
documentation_uri: https://evanthegrayt.github.io/spoonerize/
|
84
|
+
documentation_uri: https://evanthegrayt.github.io/spoonerize/
|
135
85
|
post_install_message:
|
136
86
|
rdoc_options: []
|
137
87
|
require_paths:
|
data/doc/README_md.html
DELETED
@@ -1,238 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>README - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "./";
|
11
|
-
var index_rel_prefix = "./";
|
12
|
-
</script>
|
13
|
-
|
14
|
-
<script src="./js/navigation.js" defer></script>
|
15
|
-
<script src="./js/search.js" defer></script>
|
16
|
-
<script src="./js/search_index.js" defer></script>
|
17
|
-
<script src="./js/searcher.js" defer></script>
|
18
|
-
<script src="./js/darkfish.js" defer></script>
|
19
|
-
|
20
|
-
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
-
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<body id="top" role="document" class="file">
|
27
|
-
<nav role="navigation">
|
28
|
-
<div id="project-navigation">
|
29
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
30
|
-
<h2>
|
31
|
-
<a href="./index.html" rel="home">Home</a>
|
32
|
-
</h2>
|
33
|
-
|
34
|
-
<div id="table-of-contents-navigation">
|
35
|
-
<a href="./table_of_contents.html#pages">Pages</a>
|
36
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
37
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
42
|
-
<form action="#" method="get" accept-charset="utf-8">
|
43
|
-
<div id="search-field-wrapper">
|
44
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
45
|
-
aria-autocomplete="list" aria-controls="search-results"
|
46
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
47
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
48
|
-
</div>
|
49
|
-
|
50
|
-
<ul id="search-results" aria-label="Search Results"
|
51
|
-
aria-busy="false" aria-expanded="false"
|
52
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
53
|
-
</form>
|
54
|
-
</div>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
|
58
|
-
|
59
|
-
<div class="nav-section">
|
60
|
-
<h3>Table of Contents</h3>
|
61
|
-
|
62
|
-
<ul class="link-list" role="directory">
|
63
|
-
<li><a href="#label-Welcome+to+Spoonerize+--+a+word+game.">Welcome to Spoonerize – a word game.</a>
|
64
|
-
<li><a href="#label-About">About</a>
|
65
|
-
<li><a href="#label-Installation">Installation</a>
|
66
|
-
<li><a href="#label-Automated">Automated</a>
|
67
|
-
<li><a href="#label-Manual">Manual</a>
|
68
|
-
<li><a href="#label-Command+Line+Usage">Command Line Usage</a>
|
69
|
-
<li><a href="#label-Config+File">Config File</a>
|
70
|
-
<li><a href="#label-API">API</a>
|
71
|
-
<li><a href="#label-Self+Promotion">Self Promotion</a>
|
72
|
-
</ul>
|
73
|
-
</div>
|
74
|
-
|
75
|
-
|
76
|
-
<div id="project-metadata">
|
77
|
-
<div id="fileindex-section" class="nav-section">
|
78
|
-
<h3>Pages</h3>
|
79
|
-
|
80
|
-
<ul class="link-list">
|
81
|
-
|
82
|
-
<li><a href="./README_md.html">README</a>
|
83
|
-
|
84
|
-
</ul>
|
85
|
-
</div>
|
86
|
-
|
87
|
-
</div>
|
88
|
-
</nav>
|
89
|
-
|
90
|
-
<main role="main" aria-label="Page README.md">
|
91
|
-
|
92
|
-
<h1 id="label-Welcome+to+Spoonerize+--+a+word+game.">Welcome to <a href="Spoonerize.html"><code>Spoonerize</code></a> – a word game.<span><a href="#label-Welcome+to+Spoonerize+--+a+word+game.">¶</a> <a href="#top">↑</a></span></h1>
|
93
|
-
|
94
|
-
<p><a href="https://actions-badge.atrox.dev/evanthegrayt/spoonerize/goto?ref=master"><img src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fevanthegrayt%2Fspoonerize%2Fbadge%3Fref%3Dmaster&style=flat"></a> <a href="https://badge.fury.io/rb/spoonerize"><img src="https://badge.fury.io/rb/spoonerize.svg"></a> <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg"></a></p>
|
95
|
-
|
96
|
-
<blockquote>
|
97
|
-
<p>Spoonerism <em>[noun]</em> a verbal error in which a speaker accidentally transposes the initial sounds or letters of two or more words, often to humorous effect.</p>
|
98
|
-
</blockquote>
|
99
|
-
|
100
|
-
<p>View on <a href="https://github.com/evanthegrayt/spoonerize">Github</a> | <a href="https://evanthegrayt.github.io/spoonerize/">Github Pages</a> | <a href="https://rubygems.org/gems/spoonerize">RubyGems</a></p>
|
101
|
-
|
102
|
-
<h2 id="label-About">About<span><a href="#label-About">¶</a> <a href="#top">↑</a></span></h2>
|
103
|
-
|
104
|
-
<p>We've all done it; someone says a phrase, and you flip the first few letters around, and sometimes, it makes an even funnier phrase. For example: “Tomb Raider” becomes “Romb Taider”. Well, when I was in high school, we took it further – probably too far – and made a rule set. This gem, which includes a command-line executable, follows those rules, which are:</p>
|
105
|
-
<ul><li>
|
106
|
-
<p>Each word drops its leading consonant group and takes the leading consonant group of the next word.</p>
|
107
|
-
</li><li>
|
108
|
-
<p>If the word has no leading consonants, nothing is dropped, but it still receives the next word's leading consonants if it has any.</p>
|
109
|
-
</li><li>
|
110
|
-
<p>If the next word has no leading consonants, the current word receives no consonants, but will still lose its own if it has any.</p>
|
111
|
-
</li><li>
|
112
|
-
<p>When being “lazy”, common words (“the”, “his”, etc.) remain unchanged.</p>
|
113
|
-
</li><li>
|
114
|
-
<p>If the word to pull from is excluded, that word is skipped, and you pull the leading consonants from the next non-excluded word.</p>
|
115
|
-
</li><li>
|
116
|
-
<p>“Q” and “U” should stay together (like “queen”).</p>
|
117
|
-
</li><li>
|
118
|
-
<p>A lot of the time, the words won't look how they're supposed to sound, as you go by how the word <em>used</em> to sound, not how it's spelled. For instance, <code>$ spoonerize two new cuties</code> becomes “no cew twuties”, but it would be pronounced “new coo tooties”, as the words retain their original sounds.</p>
|
119
|
-
</li></ul>
|
120
|
-
|
121
|
-
<h2 id="label-Installation">Installation<span><a href="#label-Installation">¶</a> <a href="#top">↑</a></span></h2>
|
122
|
-
|
123
|
-
<h3 id="label-Automated">Automated<span><a href="#label-Automated">¶</a> <a href="#top">↑</a></span></h3>
|
124
|
-
|
125
|
-
<p>Just install the gem!</p>
|
126
|
-
|
127
|
-
<pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-identifier">install</span> <span class="ruby-identifier">spoonerize</span>
|
128
|
-
</pre>
|
129
|
-
|
130
|
-
<p>If you don't have permission on your system to install ruby or gems, I recommend using <a href="http://www.rubyinside.com/rbenv-a-simple-new-ruby-version-management-tool-5302.html">rbenv</a>, or you can try the manual methods below.</p>
|
131
|
-
|
132
|
-
<h3 id="label-Manual">Manual<span><a href="#label-Manual">¶</a> <a href="#top">↑</a></span></h3>
|
133
|
-
|
134
|
-
<p>From your terminal, clone the repository where you want it. From there, you have a couple of installation options.</p>
|
135
|
-
|
136
|
-
<pre>git clone https://github.com/evanthegrayt/spoonerize.git
|
137
|
-
cd spoonerize
|
138
|
-
|
139
|
-
# Use rake to build and install the gem.
|
140
|
-
rake install
|
141
|
-
|
142
|
-
# OR manually link the executable somewhere. If you use this method, you cannot
|
143
|
-
# move the repository after you link it!
|
144
|
-
ln -s $PWD/bin/spoonerize /usr/local/bin/spoonerize</pre>
|
145
|
-
|
146
|
-
<h2 id="label-Command+Line+Usage">Command Line Usage<span><a href="#label-Command+Line+Usage">¶</a> <a href="#top">↑</a></span></h2>
|
147
|
-
|
148
|
-
<p>Call the executable and pass a phrase as arguments:</p>
|
149
|
-
|
150
|
-
<pre>$ spoonerize not too shabby # => tot shoo nabby</pre>
|
151
|
-
|
152
|
-
<p>If it didn't flip the way you wanted it to, you can reverse it:</p>
|
153
|
-
|
154
|
-
<pre>$ spoonerize -r not too shabby # => shot noo tabby</pre>
|
155
|
-
|
156
|
-
<p>If you find a phrase funny enough to save, you can pass the <code>-s</code> flag. This will write the results to the logfile. You can print your log file with the <code>-p</code> flag. It will show the original phrase, the end result, and the options used to get the results. For example:</p>
|
157
|
-
|
158
|
-
<pre>$ spoonerize -s not too shabby
|
159
|
-
Saving [tot shoo nabby] to ~/.cache/spoonerize/spoonerize.csv
|
160
|
-
|
161
|
-
$ spoonerize -rs not too shabby
|
162
|
-
Saving [shot noo tabby] to ~/.cache/spoonerize/spoonerize.csv
|
163
|
-
|
164
|
-
$ spoonerize -p
|
165
|
-
not too shabby | tot shoo nabby | No Options
|
166
|
-
not too shabby | shot noo tabby | Reverse</pre>
|
167
|
-
|
168
|
-
<p>Here is a list of all available options:</p>
|
169
|
-
|
170
|
-
<pre>-r, --[no-]reverse Reverse flipping
|
171
|
-
-l, --[no-]lazy Skip small words
|
172
|
-
-m, --[no-]map Print words mapping
|
173
|
-
-p, --[no-]print Print all entries in the log
|
174
|
-
-s, --[no-]save Save results in log
|
175
|
-
--exclude=WORDS Words to skip</pre>
|
176
|
-
|
177
|
-
<h3 id="label-Config+File">Config File<span><a href="#label-Config+File">¶</a> <a href="#top">↑</a></span></h3>
|
178
|
-
|
179
|
-
<p>You can create a config file called <code>~/.spoonerize.yml</code>. In this file, you can change default options at runtime. Available settings are:</p>
|
180
|
-
|
181
|
-
<pre># Setting Default
|
182
|
-
excluded_words: []
|
183
|
-
lazy: false
|
184
|
-
reverse: false
|
185
|
-
logfile_name: '~/.cache/spoonerize/spoonerize.csv'</pre>
|
186
|
-
|
187
|
-
<p>Options set by this file can be overridden at runtime by the use of the executable's flags.</p>
|
188
|
-
|
189
|
-
<h2 id="label-API">API<span><a href="#label-API">¶</a> <a href="#top">↑</a></span></h2>
|
190
|
-
|
191
|
-
<p>The API is <a href="https://evanthegrayt.github.io/spoonerize/doc/index.html">fully documented</a>, but below are some quick examples of how you could use this in your ruby code.</p>
|
192
|
-
|
193
|
-
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'spoonerize'</span>
|
194
|
-
|
195
|
-
<span class="ruby-identifier">spoonerism</span> = <span class="ruby-constant">Spoonerize</span><span class="ruby-operator">::</span><span class="ruby-constant">Spoonerism</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">%w[not too shabby]</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span>
|
196
|
-
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">reverse</span> = <span class="ruby-keyword">true</span>
|
197
|
-
<span class="ruby-keyword">end</span>
|
198
|
-
|
199
|
-
<span class="ruby-identifier">spoonerism</span>.<span class="ruby-identifier">spoonerize</span>
|
200
|
-
<span class="ruby-comment"># => shot noo tabby</span>
|
201
|
-
|
202
|
-
<span class="ruby-identifier">spoonerism</span>.<span class="ruby-identifier">reverse</span> = <span class="ruby-keyword">false</span>
|
203
|
-
<span class="ruby-identifier">spoonerism</span>.<span class="ruby-identifier">spoonerize</span>
|
204
|
-
<span class="ruby-comment"># => tot shoo nabby</span>
|
205
|
-
|
206
|
-
<span class="ruby-identifier">spoonerism</span>.<span class="ruby-identifier">logfile_name</span> = <span class="ruby-string">'~/.cache/spoonerize/spoonerize.csv'</span>
|
207
|
-
<span class="ruby-identifier">spoonerism</span>.<span class="ruby-identifier">save</span>
|
208
|
-
</pre>
|
209
|
-
|
210
|
-
<p>You can also use the <a href="#config-file">config file</a>, either by passing it at initialization, or via the setter. The config file will be automatically loaded if passed at initialization, before the instance is yielded so you can still change the values via the block. If set via the setter, you must call <code>#load_config_file</code>.</p>
|
211
|
-
|
212
|
-
<pre class="ruby"><span class="ruby-comment"># Config file would be automatically loaded before block is executed.</span>
|
213
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-constant">Spoonerise</span><span class="ruby-operator">::</span><span class="ruby-constant">Spoonerism</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">%w[not too shabby]</span>, <span class="ruby-string">'~/.spoonerize.yml'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sp</span><span class="ruby-operator">|</span>
|
214
|
-
<span class="ruby-identifier">sp</span>.<span class="ruby-identifier">reverse</span> = <span class="ruby-keyword">true</span>
|
215
|
-
<span class="ruby-keyword">end</span>
|
216
|
-
|
217
|
-
<span class="ruby-comment"># Config file would need to be manually loaded.</span>
|
218
|
-
<span class="ruby-identifier">s</span> = <span class="ruby-constant">Spoonerise</span><span class="ruby-operator">::</span><span class="ruby-constant">Spoonerism</span>.<span class="ruby-identifier">new</span>(<span class="ruby-node">%w[not too shabby]</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">sp</span><span class="ruby-operator">|</span>
|
219
|
-
<span class="ruby-identifier">sp</span>.<span class="ruby-identifier">config_file</span> = <span class="ruby-string">'~/.spoonerize.yml'</span>
|
220
|
-
<span class="ruby-keyword">end</span>
|
221
|
-
|
222
|
-
<span class="ruby-identifier">s</span>.<span class="ruby-identifier">load_config_file</span>
|
223
|
-
</pre>
|
224
|
-
|
225
|
-
<h2 id="label-Self+Promotion">Self Promotion<span><a href="#label-Self+Promotion">¶</a> <a href="#top">↑</a></span></h2>
|
226
|
-
|
227
|
-
<p>I do these projects for fun, and I enjoy knowing that they're helpful to people. Consider starring <a href="https://github.com/evanthegrayt/spoonerize">the repository</a> if you like it! If you love it, follow me <a href="https://github.com/evanthegrayt">on github</a>!</p>
|
228
|
-
|
229
|
-
</main>
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
<footer id="validator-badges" role="contentinfo">
|
234
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
235
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
236
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
237
|
-
</footer>
|
238
|
-
|
data/doc/Spoonerize.html
DELETED
@@ -1,125 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta charset="UTF-8">
|
6
|
-
|
7
|
-
<title>module Spoonerize - RDoc Documentation</title>
|
8
|
-
|
9
|
-
<script type="text/javascript">
|
10
|
-
var rdoc_rel_prefix = "./";
|
11
|
-
var index_rel_prefix = "./";
|
12
|
-
</script>
|
13
|
-
|
14
|
-
<script src="./js/navigation.js" defer></script>
|
15
|
-
<script src="./js/search.js" defer></script>
|
16
|
-
<script src="./js/search_index.js" defer></script>
|
17
|
-
<script src="./js/searcher.js" defer></script>
|
18
|
-
<script src="./js/darkfish.js" defer></script>
|
19
|
-
|
20
|
-
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
-
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
<body id="top" role="document" class="module">
|
27
|
-
<nav role="navigation">
|
28
|
-
<div id="project-navigation">
|
29
|
-
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
30
|
-
<h2>
|
31
|
-
<a href="./index.html" rel="home">Home</a>
|
32
|
-
</h2>
|
33
|
-
|
34
|
-
<div id="table-of-contents-navigation">
|
35
|
-
<a href="./table_of_contents.html#pages">Pages</a>
|
36
|
-
<a href="./table_of_contents.html#classes">Classes</a>
|
37
|
-
<a href="./table_of_contents.html#methods">Methods</a>
|
38
|
-
</div>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div id="search-section" role="search" class="project-section initially-hidden">
|
42
|
-
<form action="#" method="get" accept-charset="utf-8">
|
43
|
-
<div id="search-field-wrapper">
|
44
|
-
<input id="search-field" role="combobox" aria-label="Search"
|
45
|
-
aria-autocomplete="list" aria-controls="search-results"
|
46
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
47
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
48
|
-
</div>
|
49
|
-
|
50
|
-
<ul id="search-results" aria-label="Search Results"
|
51
|
-
aria-busy="false" aria-expanded="false"
|
52
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
53
|
-
</form>
|
54
|
-
</div>
|
55
|
-
|
56
|
-
</div>
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
<div id="class-metadata">
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</div>
|
67
|
-
</nav>
|
68
|
-
|
69
|
-
<main role="main" aria-labelledby="module-Spoonerize">
|
70
|
-
<h1 id="module-Spoonerize" class="module">
|
71
|
-
module Spoonerize
|
72
|
-
</h1>
|
73
|
-
|
74
|
-
<section class="description">
|
75
|
-
|
76
|
-
<p>The main namespace for the gem.</p>
|
77
|
-
|
78
|
-
</section>
|
79
|
-
|
80
|
-
|
81
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
<section class="constants-list">
|
88
|
-
<header>
|
89
|
-
<h3>Constants</h3>
|
90
|
-
</header>
|
91
|
-
<dl>
|
92
|
-
|
93
|
-
<dt id="JakPibError">JakPibError
|
94
|
-
|
95
|
-
<dd><p>The error exception raised when there are not enough flippable words.</p>
|
96
|
-
|
97
|
-
|
98
|
-
<dt id="LAZY_WORDS">LAZY_WORDS
|
99
|
-
|
100
|
-
<dd><p>Excluded words from config files.</p>
|
101
|
-
|
102
|
-
|
103
|
-
<dt id="VERSION">VERSION
|
104
|
-
|
105
|
-
<dd><p>The version of the gem.</p>
|
106
|
-
|
107
|
-
|
108
|
-
</dl>
|
109
|
-
</section>
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
</section>
|
116
|
-
|
117
|
-
</main>
|
118
|
-
|
119
|
-
|
120
|
-
<footer id="validator-badges" role="contentinfo">
|
121
|
-
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
122
|
-
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.2.1.
|
123
|
-
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
124
|
-
</footer>
|
125
|
-
|