urban_dictionary 0.0.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +1 -0
- data/.travis.yml +11 -0
- data/CHANGELOG.md +7 -0
- data/Gemfile +1 -1
- data/LICENSE.md +21 -0
- data/README.md +15 -1
- data/Rakefile +4 -0
- data/bin/urban_dictionary +3 -36
- data/lib/urban_dictionary/cli.rb +106 -0
- data/lib/urban_dictionary/entry.rb +4 -0
- data/lib/urban_dictionary/formatters.rb +58 -0
- data/lib/urban_dictionary/version.rb +1 -1
- data/lib/urban_dictionary/word.rb +34 -11
- data/lib/urban_dictionary.rb +12 -7
- data/spec/html/add_html_example.rb +35 -0
- data/spec/html/on_fleek_2016-02-15.html +1091 -0
- data/spec/html/sisyphus_2016-02-15.html +578 -0
- data/spec/spec_helper.rb +30 -2
- data/spec/urban_dictionary/cli_spec.rb +72 -0
- data/spec/urban_dictionary/entry_spec.rb +1 -1
- data/spec/urban_dictionary/word_spec.rb +26 -18
- data/spec/urban_dictionary_spec.rb +15 -14
- data/urban_dictionary.gemspec +5 -3
- metadata +53 -27
- data/Gemfile.lock +0 -28
@@ -0,0 +1,578 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en-US" prefix="og: http://ogp.me/ns#">
|
3
|
+
<!--
|
4
|
+
_|_ _ _ _|. __|_. _ _ _ _
|
5
|
+
|_|| |_)(_|| | (_||(_ | |(_)| |(_||\/
|
6
|
+
/
|
7
|
+
|
8
|
+
Need help? http://bit.ly/urbandictionary-help
|
9
|
+
-->
|
10
|
+
<head>
|
11
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
12
|
+
<meta charset="UTF-8">
|
13
|
+
<meta content="width=device-width, initial-scale=1.0, user-scalable = no" name="viewport">
|
14
|
+
<link href="//a.udimg.com" rel="dns-prefetch">
|
15
|
+
<link href="//api.urbandictionary.com" rel="dns-prefetch">
|
16
|
+
<link href="//b.udimg.com" rel="dns-prefetch">
|
17
|
+
<link href="//c.udimg.com" rel="dns-prefetch">
|
18
|
+
<link href="//cdn.jsdelivr.net" rel="dns-prefetch">
|
19
|
+
<link href="//d.udimg.com" rel="dns-prefetch">
|
20
|
+
<link href="//sp.udimg.com" rel="dns-prefetch">
|
21
|
+
<link href="//edge.quantserve.com" rel="dns-prefetch">
|
22
|
+
<link href="//fonts.googleapis.com" rel="dns-prefetch">
|
23
|
+
<link href="//fonts.gstatic.com" rel="dns-prefetch">
|
24
|
+
<link href="//googleads.g.doubleclick.net" rel="dns-prefetch">
|
25
|
+
<link href="//pubads.g.doubleclick.net" rel="dns-prefetch">
|
26
|
+
<link href="//pagead2.googlesyndication.com" rel="dns-prefetch">
|
27
|
+
<link href="//partner.googleadservices.com" rel="dns-prefetch">
|
28
|
+
<link href="//pixel.quantserve.com" rel="dns-prefetch">
|
29
|
+
<link href="//platform.twitter.com" rel="dns-prefetch">
|
30
|
+
<link href="//stats.g.doubleclick.net" rel="dns-prefetch">
|
31
|
+
<link href="//tpc.googlesyndication.com" rel="dns-prefetch">
|
32
|
+
<link href="//www.facebook.com" rel="dns-prefetch">
|
33
|
+
<link href="//www.google-analytics.com" rel="dns-prefetch">
|
34
|
+
<link href="//www.googletagservices.com" rel="dns-prefetch">
|
35
|
+
<link href="//www.gstatic.com" rel="dns-prefetch">
|
36
|
+
<meta content="UrbanDict" name="apple-mobile-web-app-title">
|
37
|
+
<meta content="yes" name="apple-mobile-web-app-capable">
|
38
|
+
<link href="/assets/apple-touch-startup-image-320x460-7b93f59aaf26ba8237867d0e51869e68.png" media="(device-width: 320px)" rel="apple-touch-startup-image">
|
39
|
+
<link href="/assets/apple-touch-startup-image-640x920-abd680da8fc97cac3a9a257115d38400.png" media="(device-width: 320px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
|
40
|
+
<link href="/assets/apple-touch-icon-fb8118d7bf6339ba80fe96b66b6eb91c.png" rel="apple-touch-icon">
|
41
|
+
<link href="http://ar.urbandictionary.com/define.php?term=sisyphus" hreflang="ar-AR" rel="alternate">
|
42
|
+
<link href="http://az.urbandictionary.com/define.php?term=sisyphus" hreflang="az-AZ" rel="alternate">
|
43
|
+
<link href="http://bn.urbandictionary.com/define.php?term=sisyphus" hreflang="bn-BD" rel="alternate">
|
44
|
+
<link href="http://bg.urbandictionary.com/define.php?term=sisyphus" hreflang="bg-BG" rel="alternate">
|
45
|
+
<link href="http://zh.urbandictionary.com/define.php?term=sisyphus" hreflang="zh-CN" rel="alternate">
|
46
|
+
<link href="http://cs.urbandictionary.com/define.php?term=sisyphus" hreflang="cs-CZ" rel="alternate">
|
47
|
+
<link href="http://da.urbandictionary.com/define.php?term=sisyphus" hreflang="da-DK" rel="alternate">
|
48
|
+
<link href="http://nl.urbandictionary.com/define.php?term=sisyphus" hreflang="nl-NL" rel="alternate">
|
49
|
+
<link href="http://www.urbandictionary.com/define.php?term=sisyphus" hreflang="en-US" rel="alternate">
|
50
|
+
<link href="http://tl.urbandictionary.com/define.php?term=sisyphus" hreflang="tl-PH" rel="alternate">
|
51
|
+
<link href="http://fr.urbandictionary.com/define.php?term=sisyphus" hreflang="fr-FR" rel="alternate">
|
52
|
+
<link href="http://de.urbandictionary.com/define.php?term=sisyphus" hreflang="de-DE" rel="alternate">
|
53
|
+
<link href="http://el.urbandictionary.com/define.php?term=sisyphus" hreflang="el-GR" rel="alternate">
|
54
|
+
<link href="http://he.urbandictionary.com/define.php?term=sisyphus" hreflang="he-IL" rel="alternate">
|
55
|
+
<link href="http://hu.urbandictionary.com/define.php?term=sisyphus" hreflang="hu-HU" rel="alternate">
|
56
|
+
<link href="http://id.urbandictionary.com/define.php?term=sisyphus" hreflang="id-ID" rel="alternate">
|
57
|
+
<link href="http://it.urbandictionary.com/define.php?term=sisyphus" hreflang="it-IT" rel="alternate">
|
58
|
+
<link href="http://ja.urbandictionary.com/define.php?term=sisyphus" hreflang="ja-JP" rel="alternate">
|
59
|
+
<link href="http://ko.urbandictionary.com/define.php?term=sisyphus" hreflang="ko-KR" rel="alternate">
|
60
|
+
<link href="http://nb.urbandictionary.com/define.php?term=sisyphus" hreflang="nb-NO" rel="alternate">
|
61
|
+
<link href="http://pl.urbandictionary.com/define.php?term=sisyphus" hreflang="pl-PL" rel="alternate">
|
62
|
+
<link href="http://pt.urbandictionary.com/define.php?term=sisyphus" hreflang="pt-BR" rel="alternate">
|
63
|
+
<link href="http://ro.urbandictionary.com/define.php?term=sisyphus" hreflang="ro-RO" rel="alternate">
|
64
|
+
<link href="http://ru.urbandictionary.com/define.php?term=sisyphus" hreflang="ru-RU" rel="alternate">
|
65
|
+
<link href="http://sr.urbandictionary.com/define.php?term=sisyphus" hreflang="sr-RS" rel="alternate">
|
66
|
+
<link href="http://es.urbandictionary.com/define.php?term=sisyphus" hreflang="es-ES" rel="alternate">
|
67
|
+
<link href="http://sv.urbandictionary.com/define.php?term=sisyphus" hreflang="sv-SE" rel="alternate">
|
68
|
+
<link href="http://th.urbandictionary.com/define.php?term=sisyphus" hreflang="th-TH" rel="alternate">
|
69
|
+
<link href="http://tr.urbandictionary.com/define.php?term=sisyphus" hreflang="tr-TR" rel="alternate">
|
70
|
+
<link href="http://uk.urbandictionary.com/define.php?term=sisyphus" hreflang="uk-UA" rel="alternate">
|
71
|
+
<link href="http://vi.urbandictionary.com/define.php?term=sisyphus" hreflang="vi-VN" rel="alternate">
|
72
|
+
<link href="http://www.urbandictionary.com/define.php?term=sisyphus" rel="canonical">
|
73
|
+
<title>Urban Dictionary: sisyphus</title>
|
74
|
+
|
75
|
+
|
76
|
+
<link href="/assets/application-f6516d74f1ed62313611350eef06fdb5.css" media="screen" rel="stylesheet">
|
77
|
+
<link href="http://feeds.urbandictionary.com/UrbanWordOfTheDay" rel="alternate" title="Urban Word of the Day" type="application/rss+xml">
|
78
|
+
<link href="/favicon.ico" rel="shortcut icon">
|
79
|
+
<link href="/favicon.ico" rel="icon">
|
80
|
+
|
81
|
+
<link href="/osd.xml" rel="search" title="Urban Dictionary Search" type="application/opensearchdescription+xml">
|
82
|
+
<meta content="sisyphus" name="twitter:title">
|
83
|
+
<meta content="sisyphus" property="og:title">
|
84
|
+
<meta content="@urbandictionary" name="twitter:site">
|
85
|
+
<meta content="Urban Dictionary" property="og:site_name">
|
86
|
+
</head>
|
87
|
+
<body class="define_controller">
|
88
|
+
<div id="fb-root"></div>
|
89
|
+
<div id="rollup" style="display: none"></div>
|
90
|
+
<div id="urban-top-bar">
|
91
|
+
<div class="row">
|
92
|
+
<nav class="top-bar" data-options="mobile_show_parent_link: false" data-topbar="" role="navigation">
|
93
|
+
<ul class="title-area">
|
94
|
+
<li class="name">
|
95
|
+
<a href="/" id="logo"><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1" viewbox="0 0 949 310" xml:space="preserve">
|
96
|
+
<defs>
|
97
|
+
<clippath id="clipPath3974">
|
98
|
+
<path d="M0 612 792 612 792 0 0 0 0 612z"></path>
|
99
|
+
</clippath>
|
100
|
+
</defs>
|
101
|
+
|
102
|
+
</svg>
|
103
|
+
</a>
|
104
|
+
</li>
|
105
|
+
<li class="toggle-topbar">
|
106
|
+
<a href="#">
|
107
|
+
<i class="icon-ud_menu"></i>
|
108
|
+
<i class="icon-ud_x"></i>
|
109
|
+
</a>
|
110
|
+
</li>
|
111
|
+
</ul>
|
112
|
+
<section class="top-bar-section">
|
113
|
+
<ul class="left">
|
114
|
+
<li class="has-dropdown">
|
115
|
+
<a href="javascript:void(0)">Browse</a>
|
116
|
+
<ul class="dropdown alphabet-dropdown">
|
117
|
+
<li><a href="/popular.php?character=A">A</a></li>
|
118
|
+
<li><a href="/popular.php?character=B">B</a></li>
|
119
|
+
<li><a href="/popular.php?character=C">C</a></li>
|
120
|
+
<li><a href="/popular.php?character=D">D</a></li>
|
121
|
+
<li><a href="/popular.php?character=E">E</a></li>
|
122
|
+
<li><a href="/popular.php?character=F">F</a></li>
|
123
|
+
<li><a href="/popular.php?character=G">G</a></li>
|
124
|
+
<li><a href="/popular.php?character=H">H</a></li>
|
125
|
+
<li><a href="/popular.php?character=I">I</a></li>
|
126
|
+
<li><a href="/popular.php?character=J">J</a></li>
|
127
|
+
<li><a href="/popular.php?character=K">K</a></li>
|
128
|
+
<li><a href="/popular.php?character=L">L</a></li>
|
129
|
+
<li><a href="/popular.php?character=M">M</a></li>
|
130
|
+
<li><a href="/popular.php?character=N">N</a></li>
|
131
|
+
<li><a href="/popular.php?character=O">O</a></li>
|
132
|
+
<li><a href="/popular.php?character=P">P</a></li>
|
133
|
+
<li><a href="/popular.php?character=Q">Q</a></li>
|
134
|
+
<li><a href="/popular.php?character=R">R</a></li>
|
135
|
+
<li><a href="/popular.php?character=S">S</a></li>
|
136
|
+
<li><a href="/popular.php?character=T">T</a></li>
|
137
|
+
<li><a href="/popular.php?character=U">U</a></li>
|
138
|
+
<li><a href="/popular.php?character=V">V</a></li>
|
139
|
+
<li><a href="/popular.php?character=W">W</a></li>
|
140
|
+
<li><a href="/popular.php?character=X">X</a></li>
|
141
|
+
<li><a href="/popular.php?character=Y">Y</a></li>
|
142
|
+
<li><a href="/popular.php?character=Z">Z</a></li>
|
143
|
+
<li><a href="/browse.php?character=%2A">#</a></li>
|
144
|
+
<li><a href="/yesterday.php">new</a></li>
|
145
|
+
</ul>
|
146
|
+
</li>
|
147
|
+
<li><a href="/vote.php">Vote</a></li>
|
148
|
+
<li><a href="/favorites.php">Favorites</a></li>
|
149
|
+
<li><a href="http://store.urbandictionary.com/" id="store-link">Store</a></li>
|
150
|
+
</ul>
|
151
|
+
<ul class="right">
|
152
|
+
<li class="has-dropdown show-for-medium-up">
|
153
|
+
<a href="javascript:void(0)">
|
154
|
+
Cart
|
155
|
+
</a>
|
156
|
+
<ul class="dropdown cart-dropdown">
|
157
|
+
<li class="cart-component">
|
158
|
+
</ul>
|
159
|
+
</li>
|
160
|
+
<li class="has-dropdown has-language-dropdown">
|
161
|
+
<a href="javascript:void(0)">
|
162
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="25" height="16" viewbox="0 0 25 16" version="1">
|
163
|
+
|
164
|
+
</svg>
|
165
|
+
|
166
|
+
<span>
|
167
|
+
<div class="show-for-small-only">English</div>
|
168
|
+
</span>
|
169
|
+
</a>
|
170
|
+
<ul class="dropdown language-dropdown">
|
171
|
+
<li>
|
172
|
+
<a href="//ar.urbandictionary.com/define.php?term=sisyphus">Arabic</a>
|
173
|
+
</li>
|
174
|
+
<li>
|
175
|
+
<a href="//az.urbandictionary.com/define.php?term=sisyphus">Azerbaijani</a>
|
176
|
+
</li>
|
177
|
+
<li>
|
178
|
+
<a href="//bn.urbandictionary.com/define.php?term=sisyphus">Bengali</a>
|
179
|
+
</li>
|
180
|
+
<li>
|
181
|
+
<a href="//bg.urbandictionary.com/define.php?term=sisyphus">Bulgarian</a>
|
182
|
+
</li>
|
183
|
+
<li>
|
184
|
+
<a href="//zh.urbandictionary.com/define.php?term=sisyphus">Chinese</a>
|
185
|
+
</li>
|
186
|
+
<li>
|
187
|
+
<a href="//cs.urbandictionary.com/define.php?term=sisyphus">Czech</a>
|
188
|
+
</li>
|
189
|
+
<li>
|
190
|
+
<a href="//da.urbandictionary.com/define.php?term=sisyphus">Danish</a>
|
191
|
+
</li>
|
192
|
+
<li>
|
193
|
+
<a href="//nl.urbandictionary.com/define.php?term=sisyphus">Dutch</a>
|
194
|
+
</li>
|
195
|
+
<li>
|
196
|
+
<a href="//www.urbandictionary.com/define.php?term=sisyphus">English</a>
|
197
|
+
</li>
|
198
|
+
<li>
|
199
|
+
<a href="//tl.urbandictionary.com/define.php?term=sisyphus">Filipino</a>
|
200
|
+
</li>
|
201
|
+
<li>
|
202
|
+
<a href="//fr.urbandictionary.com/define.php?term=sisyphus">French</a>
|
203
|
+
</li>
|
204
|
+
<li>
|
205
|
+
<a href="//de.urbandictionary.com/define.php?term=sisyphus">German</a>
|
206
|
+
</li>
|
207
|
+
<li>
|
208
|
+
<a href="//el.urbandictionary.com/define.php?term=sisyphus">Greek</a>
|
209
|
+
</li>
|
210
|
+
<li>
|
211
|
+
<a href="//he.urbandictionary.com/define.php?term=sisyphus">Hebrew</a>
|
212
|
+
</li>
|
213
|
+
<li>
|
214
|
+
<a href="//hu.urbandictionary.com/define.php?term=sisyphus">Hungarian</a>
|
215
|
+
</li>
|
216
|
+
<li>
|
217
|
+
<a href="//id.urbandictionary.com/define.php?term=sisyphus">Indonesian</a>
|
218
|
+
</li>
|
219
|
+
<li>
|
220
|
+
<a href="//it.urbandictionary.com/define.php?term=sisyphus">Italian</a>
|
221
|
+
</li>
|
222
|
+
<li>
|
223
|
+
<a href="//ja.urbandictionary.com/define.php?term=sisyphus">Japanese</a>
|
224
|
+
</li>
|
225
|
+
<li>
|
226
|
+
<a href="//ko.urbandictionary.com/define.php?term=sisyphus">Korean</a>
|
227
|
+
</li>
|
228
|
+
<li>
|
229
|
+
<a href="//nb.urbandictionary.com/define.php?term=sisyphus">Norwegian</a>
|
230
|
+
</li>
|
231
|
+
<li>
|
232
|
+
<a href="//pl.urbandictionary.com/define.php?term=sisyphus">Polish</a>
|
233
|
+
</li>
|
234
|
+
<li>
|
235
|
+
<a href="//pt.urbandictionary.com/define.php?term=sisyphus">Portuguese</a>
|
236
|
+
</li>
|
237
|
+
<li>
|
238
|
+
<a href="//ro.urbandictionary.com/define.php?term=sisyphus">Romanian</a>
|
239
|
+
</li>
|
240
|
+
<li>
|
241
|
+
<a href="//ru.urbandictionary.com/define.php?term=sisyphus">Russian</a>
|
242
|
+
</li>
|
243
|
+
<li>
|
244
|
+
<a href="//sr.urbandictionary.com/define.php?term=sisyphus">Serbian</a>
|
245
|
+
</li>
|
246
|
+
<li>
|
247
|
+
<a href="//es.urbandictionary.com/define.php?term=sisyphus">Spanish</a>
|
248
|
+
</li>
|
249
|
+
<li>
|
250
|
+
<a href="//sv.urbandictionary.com/define.php?term=sisyphus">Swedish</a>
|
251
|
+
</li>
|
252
|
+
<li>
|
253
|
+
<a href="//th.urbandictionary.com/define.php?term=sisyphus">Thai</a>
|
254
|
+
</li>
|
255
|
+
<li>
|
256
|
+
<a href="//tr.urbandictionary.com/define.php?term=sisyphus">Turkish</a>
|
257
|
+
</li>
|
258
|
+
<li>
|
259
|
+
<a href="//uk.urbandictionary.com/define.php?term=sisyphus">Ukrainian</a>
|
260
|
+
</li>
|
261
|
+
<li>
|
262
|
+
<a href="//vi.urbandictionary.com/define.php?term=sisyphus">Vietnamese</a>
|
263
|
+
</li>
|
264
|
+
<li>
|
265
|
+
<a href="http://bit.ly/translateud" target="_blank">Help translate!</a>
|
266
|
+
</li>
|
267
|
+
</ul>
|
268
|
+
</li>
|
269
|
+
</ul>
|
270
|
+
</section>
|
271
|
+
</nav>
|
272
|
+
</div>
|
273
|
+
<div class="row">
|
274
|
+
<div class="columns search-and-actions">
|
275
|
+
<div class="main-search">
|
276
|
+
<form accept-charset="UTF-8" action="/search.php" method="post">
|
277
|
+
<div style="display:none"><input name="authenticity_token" type="hidden" value="0N6y41x0vmVxWxD4HoDBvRjB/96NZmAA7v3VysaL30I="></div>
|
278
|
+
<input autocapitalize="off" autocomplete="off" autocorrect="off" class="autocomplete form-control" id="term" name="term" placeholder="Type any word here..." spellcheck="false" tabindex="1" type="text">
|
279
|
+
</form>
|
280
|
+
|
281
|
+
</div>
|
282
|
+
<div class="main-actions">
|
283
|
+
<a class="circle-button" data-reveal-ajax="/add.modal.php" data-reveal-id="add-modal" href="#">
|
284
|
+
<i class="icon-add202"></i>
|
285
|
+
</a>
|
286
|
+
<a class="circle-button" href="/random.php">
|
287
|
+
<i class="icon-ud_shuffle"></i>
|
288
|
+
</a>
|
289
|
+
<a class="circle-button account-button" href="/users.php">
|
290
|
+
<i class="icon-user58"></i>
|
291
|
+
</a>
|
292
|
+
|
293
|
+
</div>
|
294
|
+
</div>
|
295
|
+
</div>
|
296
|
+
</div>
|
297
|
+
|
298
|
+
<div class="show-for-medium-up" id="dark-top">
|
299
|
+
<div id="div-gpt-ad-1420425574801-5"></div>
|
300
|
+
</div>
|
301
|
+
<ins class="adsbygoogle" data-ad-channel="3092842228" data-ad-client="pub-7408911124015802" style="display:none;width:320px;height:50px"></ins>
|
302
|
+
<div id="outer">
|
303
|
+
<div class="three-columns">
|
304
|
+
<div class="row" data-equalizer>
|
305
|
+
<div class="small-12 large-8 columns" data-equalizer-watch>
|
306
|
+
<div id="content">
|
307
|
+
<div class="def-panel">
|
308
|
+
<div class="def-header">
|
309
|
+
<span class="word">¯\_(ツ)_/¯</span>
|
310
|
+
</div>
|
311
|
+
<div class="meaning">
|
312
|
+
<p>There aren't any definitions for <i>sisyphus</i> yet.</p>
|
313
|
+
<p>Can you define it?</p>
|
314
|
+
</div>
|
315
|
+
<div class="row">
|
316
|
+
<div class="medium-6 columns">
|
317
|
+
<button class="button large expand radius with-icon" data-reveal-ajax="/add.modal.php?word=sisyphus" data-reveal-id="add-modal" href="#">
|
318
|
+
<i class="icon-add202"></i>
|
319
|
+
<span>Define it!</span>
|
320
|
+
</button>
|
321
|
+
</div>
|
322
|
+
<div class="medium-6 columns">
|
323
|
+
<a class="expand button large radius with-icon" href="/random.php"><i class="icon-ud_shuffle"></i>
|
324
|
+
<span>Random Word</span>
|
325
|
+
</a>
|
326
|
+
</div>
|
327
|
+
</div>
|
328
|
+
</div>
|
329
|
+
|
330
|
+
|
331
|
+
</div>
|
332
|
+
</div>
|
333
|
+
<div class="large-4 columns show-for-large-up sticky-parent" data-equalizer-watch>
|
334
|
+
<div class="sticky-spacer">
|
335
|
+
<div class="sticky">
|
336
|
+
<div class="panel-margin">
|
337
|
+
<div id="div-gpt-ad-1420425574801-6"></div>
|
338
|
+
</div>
|
339
|
+
<div class="panel">
|
340
|
+
<h4>
|
341
|
+
<div class="underline">
|
342
|
+
Ten Words Trending Now
|
343
|
+
</div>
|
344
|
+
</h4>
|
345
|
+
<ul class="no-bullet trending">
|
346
|
+
<li>
|
347
|
+
<a href="/define.php?term=truffle+butter">truffle butter</a>
|
348
|
+
</li>
|
349
|
+
<li>
|
350
|
+
<a href="/define.php?term=fuck+boy">fuck boy</a>
|
351
|
+
</li>
|
352
|
+
<li>
|
353
|
+
<a href="/define.php?term=thot">thot</a>
|
354
|
+
</li>
|
355
|
+
<li>
|
356
|
+
<a href="/define.php?term=netflix+and+chill">netflix and chill</a>
|
357
|
+
</li>
|
358
|
+
<li>
|
359
|
+
<a href="/define.php?term=dabbing">dabbing</a>
|
360
|
+
</li>
|
361
|
+
<li>
|
362
|
+
<a href="/define.php?term=dab">dab</a>
|
363
|
+
</li>
|
364
|
+
<li>
|
365
|
+
<a href="/define.php?term=tubgirl">tubgirl</a>
|
366
|
+
</li>
|
367
|
+
<li>
|
368
|
+
<a href="/define.php?term=sapiosexual">sapiosexual</a>
|
369
|
+
</li>
|
370
|
+
<li>
|
371
|
+
<a href="/define.php?term=dabbin%27">dabbin'</a>
|
372
|
+
</li>
|
373
|
+
<li>
|
374
|
+
<a href="/define.php?term=alabama+hot+pocket">alabama hot pocket</a>
|
375
|
+
</li>
|
376
|
+
</ul>
|
377
|
+
</div>
|
378
|
+
<div class="panel">
|
379
|
+
<h4>
|
380
|
+
<div class="underline">
|
381
|
+
Alphabetical List
|
382
|
+
</div>
|
383
|
+
</h4>
|
384
|
+
<ul class="no-bullet alphabetical">
|
385
|
+
<li>
|
386
|
+
<a href="/define.php?term=sistrunking">sistrunking</a>
|
387
|
+
</li>
|
388
|
+
<li>
|
389
|
+
<a href="/define.php?term=sistryst">sistryst</a>
|
390
|
+
</li>
|
391
|
+
<li>
|
392
|
+
<a href="/define.php?term=sistuation">sistuation</a>
|
393
|
+
</li>
|
394
|
+
<li>
|
395
|
+
<a href="/define.php?term=sisturd">sisturd</a>
|
396
|
+
</li>
|
397
|
+
<li>
|
398
|
+
<a href="/define.php?term=sisturkey">sisturkey</a>
|
399
|
+
</li>
|
400
|
+
<li>
|
401
|
+
<a href="/define.php?term=sis+turner">sis turner</a>
|
402
|
+
</li>
|
403
|
+
<li>
|
404
|
+
<a href="/define.php?term=sisty">sisty</a>
|
405
|
+
</li>
|
406
|
+
<li>
|
407
|
+
<a href="/define.php?term=Sisty+Uglers">Sisty Uglers</a>
|
408
|
+
</li>
|
409
|
+
<li>
|
410
|
+
<a class="popular" href="/define.php?term=sisu">sisu</a>
|
411
|
+
</li>
|
412
|
+
<li>
|
413
|
+
<a href="/define.php?term=siswom">siswom</a>
|
414
|
+
</li>
|
415
|
+
<li>
|
416
|
+
<a href="/define.php?term=sisy">sisy</a>
|
417
|
+
</li>
|
418
|
+
<li>
|
419
|
+
<a href="/define.php?term=sisya">sisya</a>
|
420
|
+
</li>
|
421
|
+
<li>
|
422
|
+
<a href="/define.php?term=Sisylana">Sisylana</a>
|
423
|
+
</li>
|
424
|
+
<li>
|
425
|
+
<a href="/define.php?term=sisyphic">sisyphic</a>
|
426
|
+
</li>
|
427
|
+
<li>
|
428
|
+
<a href="/define.php?term=Sisyphize">Sisyphize</a>
|
429
|
+
</li>
|
430
|
+
<li>
|
431
|
+
<a href="/define.php?term=sisyphus">sisyphus</a>
|
432
|
+
</li>
|
433
|
+
<li>
|
434
|
+
<a class="popular" href="/define.php?term=sit">sit</a>
|
435
|
+
</li>
|
436
|
+
<li>
|
437
|
+
<a class="popular" href="/define.php?term=sita">sita</a>
|
438
|
+
</li>
|
439
|
+
<li>
|
440
|
+
<a href="/define.php?term=Sitable">Sitable</a>
|
441
|
+
</li>
|
442
|
+
<li>
|
443
|
+
<a href="/define.php?term=Sital">Sital</a>
|
444
|
+
</li>
|
445
|
+
<li>
|
446
|
+
<a href="/define.php?term=Sitalian+stalliion">Sitalian stalliion</a>
|
447
|
+
</li>
|
448
|
+
<li>
|
449
|
+
<a href="/define.php?term=Sit+and+bake">Sit and bake</a>
|
450
|
+
</li>
|
451
|
+
<li>
|
452
|
+
<a href="/define.php?term=sit+and+dig">sit and dig</a>
|
453
|
+
</li>
|
454
|
+
<li>
|
455
|
+
<a href="/define.php?term=sit+and+drink">sit and drink</a>
|
456
|
+
</li>
|
457
|
+
<li>
|
458
|
+
<a href="/define.php?term=Sit+and+Flick">Sit and Flick</a>
|
459
|
+
</li>
|
460
|
+
<li>
|
461
|
+
<a href="/define.php?term=sit+and+shit">sit and shit</a>
|
462
|
+
</li>
|
463
|
+
<li>
|
464
|
+
<a href="/define.php?term=Sit+and+shvitz">Sit and shvitz</a>
|
465
|
+
</li>
|
466
|
+
<li>
|
467
|
+
<a href="/define.php?term=sit-and-sigh">sit-and-sigh</a>
|
468
|
+
</li>
|
469
|
+
<li>
|
470
|
+
<a class="popular" href="/define.php?term=Sit+and+spin">Sit and spin</a>
|
471
|
+
</li>
|
472
|
+
<li>
|
473
|
+
<a href="/define.php?term=Sit+and+Surf">Sit and Surf</a>
|
474
|
+
</li>
|
475
|
+
<li>
|
476
|
+
<a href="/define.php?term=sit+and+swivel">sit and swivel</a>
|
477
|
+
</li>
|
478
|
+
<li>
|
479
|
+
<a href="/define.php?term=Sit+and+Think">Sit and Think</a>
|
480
|
+
</li>
|
481
|
+
<li>
|
482
|
+
<a href="/define.php?term=sit-anjo+band">sit-anjo band</a>
|
483
|
+
</li>
|
484
|
+
<li>
|
485
|
+
<a href="/define.php?term=Sitaos">Sitaos</a>
|
486
|
+
</li>
|
487
|
+
<li>
|
488
|
+
<a class="popular" href="/define.php?term=sitar">sitar</a>
|
489
|
+
</li>
|
490
|
+
<li>
|
491
|
+
<a href="/define.php?term=Sitara">Sitara</a>
|
492
|
+
</li>
|
493
|
+
<li>
|
494
|
+
<a href="/define.php?term=sitar+face">sitar face</a>
|
495
|
+
</li>
|
496
|
+
<li>
|
497
|
+
<a href="/define.php?term=Sitar+Hero">Sitar Hero</a>
|
498
|
+
</li>
|
499
|
+
<li>
|
500
|
+
<a href="/define.php?term=Sit-Around">Sit-Around</a>
|
501
|
+
</li>
|
502
|
+
<li>
|
503
|
+
<a href="/define.php?term=sit+around+with+her+thumb+up+her+bum+and+her+mind+in+neutral">sit around with her thumb up her bum and her mind in neutral</a>
|
504
|
+
</li>
|
505
|
+
<li>
|
506
|
+
<a href="/define.php?term=SI+TARP">SI TARP</a>
|
507
|
+
</li>
|
508
|
+
</ul>
|
509
|
+
</div>
|
510
|
+
<div class="copyright">
|
511
|
+
© 1999-2016 Urban Dictionary ®
|
512
|
+
<br>
|
513
|
+
<a href="/tos.php">terms of service</a>
|
514
|
+
|
515
|
+
<a href="/privacy.php">privacy</a>
|
516
|
+
|
517
|
+
<a href="https://urbandictionary.wufoo.com/forms/how-can-we-help-you/">feedback</a>
|
518
|
+
|
519
|
+
<a href="/remove.php">remove</a>
|
520
|
+
</div>
|
521
|
+
|
522
|
+
</div>
|
523
|
+
</div>
|
524
|
+
</div>
|
525
|
+
</div>
|
526
|
+
</div>
|
527
|
+
</div>
|
528
|
+
<noscript>
|
529
|
+
<div style="display: none;">
|
530
|
+
<img alt="Quantcast" height="1" src="//pixel.quantserve.com/pixel/p-77H27_lnOeCCI.gif" width="1">
|
531
|
+
</div>
|
532
|
+
</noscript>
|
533
|
+
|
534
|
+
<div class="reveal-modal" data-reveal="" id="subscribe_modal">
|
535
|
+
<h1>Free Daily Email</h1>
|
536
|
+
<p class="text-center" id="subscribe_status">
|
537
|
+
Type your email address below to get our <b>free Urban Word of the Day</b> every morning!
|
538
|
+
</p>
|
539
|
+
<form action="//urbandictionary.us8.list-manage.com/subscribe/post?u=6ce0cb1e6dbef3cf7e723174b&amp;id=bc0fbb01ef" class="form-horizontal" method="post" role="form">
|
540
|
+
<div class="form-group">
|
541
|
+
<label class="control-label col-sm-3" for="mce-EMAIL">
|
542
|
+
Email Address
|
543
|
+
</label>
|
544
|
+
<div class="col-sm-9">
|
545
|
+
<input class="form-control" id="mce-EMAIL" name="EMAIL" type="email" value="">
|
546
|
+
</div>
|
547
|
+
</div>
|
548
|
+
<div class="form-group">
|
549
|
+
<label class="control-label col-sm-3" for="mce-FNAME">First Name</label>
|
550
|
+
<div class="col-sm-9">
|
551
|
+
<input class="form-control" id="mce-FNAME" name="FNAME" type="text" value="">
|
552
|
+
</div>
|
553
|
+
</div>
|
554
|
+
<div class="form-group">
|
555
|
+
<label class="control-label col-sm-3" for="mce-LNAME">Last Name</label>
|
556
|
+
<div class="col-sm-9">
|
557
|
+
<input class="form-control" id="mce-LNAME" name="LNAME" type="text" value="">
|
558
|
+
</div>
|
559
|
+
</div>
|
560
|
+
<div style="position: absolute; left: -5000px;">
|
561
|
+
<input name="b_6ce0cb1e6dbef3cf7e723174b_bc0fbb01ef" tabindex="-1" type="text" value="">
|
562
|
+
</div>
|
563
|
+
<div class="form-group">
|
564
|
+
<div class="col-sm-offset-3 col-sm-9">
|
565
|
+
<input class="button btn btn-default" id="mc-embedded-subscribe" name="subscribe" type="submit" value="Subscribe">
|
566
|
+
</div>
|
567
|
+
</div>
|
568
|
+
</form>
|
569
|
+
<p class="text-center">Emails are sent from daily@urbandictionary.com. We'll never spam you.</p>
|
570
|
+
<a class="close-reveal-modal">×</a>
|
571
|
+
</div>
|
572
|
+
|
573
|
+
<div class="reveal-modal" data-reveal="" id="remote_modal"></div>
|
574
|
+
|
575
|
+
<div id="add-modal" class="reveal-modal full" data-reveal aria-labelledby="modalTitle" data-options="close_on_background_click:false" aria-hidden="true" role="dialog">
|
576
|
+
</div>
|
577
|
+
</body>
|
578
|
+
</html>
|
data/spec/spec_helper.rb
CHANGED
@@ -1,9 +1,37 @@
|
|
1
1
|
require File.expand_path('../../lib/urban_dictionary', __FILE__)
|
2
2
|
|
3
|
+
require 'multi_json'
|
4
|
+
require 'shellwords'
|
5
|
+
require 'stringio'
|
6
|
+
require 'webmock/rspec'
|
7
|
+
|
3
8
|
RSpec.configure do |config|
|
4
|
-
config.treat_symbols_as_metadata_keys_with_true_values = true
|
5
9
|
config.run_all_when_everything_filtered = true
|
6
10
|
config.filter_run :focus
|
7
|
-
|
8
11
|
config.order = 'random'
|
9
12
|
end
|
13
|
+
|
14
|
+
module Test
|
15
|
+
def self.load_fixture(name)
|
16
|
+
File.read(File.expand_path("../html/#{name}", __FILE__))
|
17
|
+
end
|
18
|
+
|
19
|
+
class IO < StringIO
|
20
|
+
def content
|
21
|
+
rewind
|
22
|
+
read
|
23
|
+
end
|
24
|
+
|
25
|
+
def include?(str)
|
26
|
+
content.include?(str)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
class String
|
32
|
+
# Convert an input string to ARGV-like args as a shell would
|
33
|
+
def to_argv
|
34
|
+
Shellwords.split(self)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|