ruby-upworthy 0.0.2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/upworthy.rb +375 -373
  3. metadata +4 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 719eb7ea99b095301f8a13323a858a96d3e1c519
4
- data.tar.gz: 7dbe38e8ffa71d9fa71b43a8c98016763bf2e817
2
+ SHA256:
3
+ metadata.gz: baec45fc53307c3d6e13e3845f36fa4603a5a4f812c55fa011a0ac8251ab1fcd
4
+ data.tar.gz: c7d83c2d0f81adbaed7c5acd9d9d80ba893b938539128b159e7f524cbe7505b3
5
5
  SHA512:
6
- metadata.gz: c8021093b5b2d53448e8a04611a13f6300cce0e1c15b33bfe74c86ef70f2284c50da0255ccf6756890b21c3a3125a1cb78b7f6540927b2996f5c89028a7511ce
7
- data.tar.gz: 698c18fe495b1b8b95115ad93b57c77b6c103c5322b449962de9439a7c8ce83e1d8972dee8acaa1d6e0652778bb7c93c54285801bbbc1595f61959469e2c38c3
6
+ metadata.gz: f56dc574d14d7c057e4ef30f1c12397d21b434fa419fd53a3d5a20547fef51f9c4bf8e0cb7828430a2d0621a300dff8b5d88f0dac2b8bd012c8f51c55e961eae
7
+ data.tar.gz: fef4c764aff19e50a4ebd1b6dac65af1cc161ec0967ad9e76b06908e8bb5eb8c3fce7cf1b24483a378e040288f213719322fb027410a1980e097cc767e098fee
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # upworthy.rb
2
4
  # Author: William Woodruff
3
5
  # A Ruby translation of Mike Lacher's Upworthy Generator
@@ -7,400 +9,400 @@
7
9
  # @author William Woodruff
8
10
  # @since 0.0.1
9
11
  module Upworthy
10
- # @private
11
- VERSION = '0.0.2'.freeze
12
+ # @private
13
+ VERSION = "1.0.0"
12
14
 
13
- # @private
14
- HEADLINES = [
15
- "You %{imploreaudio} the %{creationadjective} %{creationaudio} this %{actoradjective} %{actor} %{createdsynonym}",
16
- "You %{implorevisual} the %{creationadjective} %{creationvisual} this %{actoradjective} %{actor} %{createdsynonym}",
17
- "Here is what happens when a %{actor} %{action}",
18
- "That moment when a %{actor} %{action}",
19
- "I wish I was more %{pasttenseshocked} by what a %{actoradjective} %{actor} %{revealed}, but I'm not",
20
- "What happens when one %{actoradjective} %{actor} %{action}",
21
- "Try not to %{yourreaction} when you %{verbaudio} %{audiofragmentwitharticle}",
22
- "You will %{yourreaction} when you see what a %{actoradjective} %{actor} %{createdsynonym}",
23
- "Think %{preconception}? Maybe you should listen to this %{actoradjective} %{actor}",
24
- "Some call it %{positivethingwitharticle}. They call it %{negativethingwitharticle}",
25
- "I thought it was %{negativethingwitharticle}. But then I saw this %{creationadjective} %{creationvisual}",
26
- "I'll never look at this %{actoradjective} %{actor} the same way again",
27
- "If you can watch this and not feel %{pasttenseshocked}, then %{youremadeofstone}",
28
- "What this %{actoradjective} %{actor} did is genius",
29
- "Listen to %{audiofragmentwitharticle} and try to tell me %{preconception}",
30
- "Watch a %{actoradjective} %{actor} become a %{greatperson} with %{creationaudio}",
31
- "Before you say %{preconception}, listen to %{audiofragmentwitharticle} from a %{actor}",
32
- "My %{jawhitthefloor} after hearing %{audiofragmentwitharticle}"
33
- ]
15
+ # @private
16
+ HEADLINES = [
17
+ "You %<imploreaudio>s the %<creationadjective>s %<creationaudio>s this %<actoradjective>s %<actor>s %<createdsynonym>s",
18
+ "You %<implorevisual>s the %<creationadjective>s %<creationvisual>s this %<actoradjective>s %<actor>s %<createdsynonym>s",
19
+ "Here is what happens when a %<actor>s %<action>s",
20
+ "That moment when a %<actor>s %<action>s",
21
+ "I wish I was more %<pasttenseshocked>s by what a %<actoradjective>s %<actor>s %<revealed>s, but I'm not",
22
+ "What happens when one %<actoradjective>s %<actor>s %<action>s",
23
+ "Try not to %<yourreaction>s when you %<verbaudio>s %<audiofragmentwitharticle>s",
24
+ "You will %<yourreaction>s when you see what a %<actoradjective>s %<actor>s %<createdsynonym>s",
25
+ "Think %<preconception>s? Maybe you should listen to this %<actoradjective>s %<actor>s",
26
+ "Some call it %<positivethingwitharticle>s. They call it %<negativethingwitharticle>s",
27
+ "I thought it was %<negativethingwitharticle>s. But then I saw this %<creationadjective>s %<creationvisual>s",
28
+ "I'll never look at this %<actoradjective>s %<actor>s the same way again",
29
+ "If you can watch this and not feel %<pasttenseshocked>s, then %<youremadeofstone>s",
30
+ "What this %<actoradjective>s %<actor>s did is genius",
31
+ "Listen to %<audiofragmentwitharticle>s and try to tell me %<preconception>s",
32
+ "Watch a %<actoradjective>s %<actor>s become a %<greatperson>s with %<creationaudio>s",
33
+ "Before you say %<preconception>s, listen to %<audiofragmentwitharticle>s from a %<actor>s",
34
+ "My %<jawhitthefloor>s after hearing %<audiofragmentwitharticle>s",
35
+ ].freeze
34
36
 
35
- # @private
36
- CONTENT = {
37
- jawhitthefloor: [
38
- "jaw hit the floor",
39
- "heart broke",
40
- "head hurt",
41
- "heart is breaking",
42
- "brain exploded",
43
- "stomach sank",
44
- "tears keep flowing",
45
- "faith in humanity shattered",
46
- "hope for the world plummeted",
47
- "faith in humanity soared",
48
- "confidence in the next generation is stronger than ever",
49
- "disgust hit new lows"
50
- ],
37
+ # @private
38
+ CONTENT = {
39
+ jawhitthefloor: [
40
+ "jaw hit the floor",
41
+ "heart broke",
42
+ "head hurt",
43
+ "heart is breaking",
44
+ "brain exploded",
45
+ "stomach sank",
46
+ "tears keep flowing",
47
+ "faith in humanity shattered",
48
+ "hope for the world plummeted",
49
+ "faith in humanity soared",
50
+ "confidence in the next generation is stronger than ever",
51
+ "disgust hit new lows",
52
+ ],
51
53
 
52
- greatperson: [
53
- "hero",
54
- "inspiration",
55
- "role model",
56
- "legend"
57
- ],
54
+ greatperson: [
55
+ "hero",
56
+ "inspiration",
57
+ "role model",
58
+ "legend",
59
+ ],
58
60
 
59
- youremadeofstone: [
60
- "you're made of stone",
61
- "you have no emotions",
62
- "you are stronger than I am",
63
- "you are made of ice",
64
- "you have a heart of coal"
65
- ],
61
+ youremadeofstone: [
62
+ "you're made of stone",
63
+ "you have no emotions",
64
+ "you are stronger than I am",
65
+ "you are made of ice",
66
+ "you have a heart of coal",
67
+ ],
66
68
 
67
- positivethingwitharticle: [
68
- "the solution to world peace",
69
- "just another day",
70
- "the miracle of life",
71
- "the key to happiness",
72
- "a miracle",
73
- "a godsend",
74
- "the greatest thing that's ever happened",
75
- "the solution to climate change",
76
- "the answer to all our prayers",
77
- "what we've been waiting for",
78
- "the answer to world hunger",
79
- "the cure for childhood obesity",
80
- "a miracle drug",
81
- "a masterpiece",
82
- "the end of polio",
83
- "the cure for cancer",
84
- "the key to peace in the Middle East",
85
- "the end of all wars",
86
- "a victory against homophobia",
87
- "the end of racism"
88
- ],
69
+ positivethingwitharticle: [
70
+ "the solution to world peace",
71
+ "just another day",
72
+ "the miracle of life",
73
+ "the key to happiness",
74
+ "a miracle",
75
+ "a godsend",
76
+ "the greatest thing that's ever happened",
77
+ "the solution to climate change",
78
+ "the answer to all our prayers",
79
+ "what we've been waiting for",
80
+ "the answer to world hunger",
81
+ "the cure for childhood obesity",
82
+ "a miracle drug",
83
+ "a masterpiece",
84
+ "the end of polio",
85
+ "the cure for cancer",
86
+ "the key to peace in the Middle East",
87
+ "the end of all wars",
88
+ "a victory against homophobia",
89
+ "the end of racism",
90
+ ],
89
91
 
90
- negativethingwitharticle: [
91
- "an inescapable curse",
92
- "a living nightmare",
93
- "the worst-case scenario",
94
- "the world's greatest tragedy",
95
- "a killer of children",
96
- "a travesty",
97
- "a menace to equality",
98
- "a homophobic nightmare",
99
- "education's enemy",
100
- "a deadly poison",
101
- "a silent genocide",
102
- "the worst kind of discrimination",
103
- "an ecological disaster",
104
- "a disaster",
105
- "a threat to all of us"
106
- ],
92
+ negativethingwitharticle: [
93
+ "an inescapable curse",
94
+ "a living nightmare",
95
+ "the worst-case scenario",
96
+ "the world's greatest tragedy",
97
+ "a killer of children",
98
+ "a travesty",
99
+ "a menace to equality",
100
+ "a homophobic nightmare",
101
+ "education's enemy",
102
+ "a deadly poison",
103
+ "a silent genocide",
104
+ "the worst kind of discrimination",
105
+ "an ecological disaster",
106
+ "a disaster",
107
+ "a threat to all of us",
108
+ ],
107
109
 
108
- preconception: [
109
- "discrimination is over",
110
- "America is the best country",
111
- "Africa is getting better",
112
- "partisian politics are killing America",
113
- "we're winning the war on terror",
114
- "the economy is better",
115
- "America's disparity in income is all bad",
116
- "babies can't be racist",
117
- "there aren't pedophiles in your neighborhood",
118
- "things are better than they used to be",
119
- "things used to be better when you were a kid",
120
- "polio isn't a threat in the US",
121
- "you're not racist",
122
- "you're not homophobic",
123
- "you've never discriminated against someone",
124
- "you're not a misogynist",
125
- "homophobia is on the decline",
126
- "babies can't be homophobic",
127
- "computers made the world a better place",
128
- "you're not addicted to your cell phone",
129
- "we're not in a housing bubble",
130
- "you have job security",
131
- "you could never die in a fire"
132
- ],
110
+ preconception: [
111
+ "discrimination is over",
112
+ "America is the best country",
113
+ "Africa is getting better",
114
+ "partisian politics are killing America",
115
+ "we're winning the war on terror",
116
+ "the economy is better",
117
+ "America's disparity in income is all bad",
118
+ "babies can't be racist",
119
+ "there aren't pedophiles in your neighborhood",
120
+ "things are better than they used to be",
121
+ "things used to be better when you were a kid",
122
+ "polio isn't a threat in the US",
123
+ "you're not racist",
124
+ "you're not homophobic",
125
+ "you've never discriminated against someone",
126
+ "you're not a misogynist",
127
+ "homophobia is on the decline",
128
+ "babies can't be homophobic",
129
+ "computers made the world a better place",
130
+ "you're not addicted to your cell phone",
131
+ "we're not in a housing bubble",
132
+ "you have job security",
133
+ "you could never die in a fire",
134
+ ],
133
135
 
134
- yourreaction: [
135
- "let your jaw hit the floor",
136
- "gasp",
137
- "get angry",
138
- "lose your breath",
139
- "cry",
140
- "weep",
141
- "scream",
142
- "dig your fingernails into your desk",
143
- "punch your monitor",
144
- "do a double take",
145
- "shout with rage",
146
- "groan",
147
- "roll your eyes",
148
- "get upset",
149
- "be mortified",
150
- "rage"
151
- ],
136
+ yourreaction: [
137
+ "let your jaw hit the floor",
138
+ "gasp",
139
+ "get angry",
140
+ "lose your breath",
141
+ "cry",
142
+ "weep",
143
+ "scream",
144
+ "dig your fingernails into your desk",
145
+ "punch your monitor",
146
+ "do a double take",
147
+ "shout with rage",
148
+ "groan",
149
+ "roll your eyes",
150
+ "get upset",
151
+ "be mortified",
152
+ "rage",
153
+ ],
152
154
 
153
- verbaudio: [
154
- "hear",
155
- "listen to"
156
- ],
155
+ verbaudio: [
156
+ "hear",
157
+ "listen to",
158
+ ],
157
159
 
158
- audiofragmentwitharticle: [
159
- "this one word",
160
- "these two sentences",
161
- "these six words",
162
- "this one statement",
163
- "this one sentence",
164
- "this one question",
165
- "these two questions",
166
- "these five words",
167
- "this one declaration",
168
- "these two words",
169
- "the second half of the third sentence",
170
- "the fifth and seventh words",
171
- "the first word and the last word",
172
- "the second sentence",
173
- "these twelve words",
174
- "this battlecry",
175
- "these five nouns",
176
- "this one verb",
177
- "the eighth word",
178
- "the first word and the second sentence",
179
- "the third question",
180
- "these nine words",
181
- "the last sentence"
182
- ],
160
+ audiofragmentwitharticle: [
161
+ "this one word",
162
+ "these two sentences",
163
+ "these six words",
164
+ "this one statement",
165
+ "this one sentence",
166
+ "this one question",
167
+ "these two questions",
168
+ "these five words",
169
+ "this one declaration",
170
+ "these two words",
171
+ "the second half of the third sentence",
172
+ "the fifth and seventh words",
173
+ "the first word and the last word",
174
+ "the second sentence",
175
+ "these twelve words",
176
+ "this battlecry",
177
+ "these five nouns",
178
+ "this one verb",
179
+ "the eighth word",
180
+ "the first word and the second sentence",
181
+ "the third question",
182
+ "these nine words",
183
+ "the last sentence",
184
+ ],
183
185
 
184
- pasttenseshocked: [
185
- "surprised",
186
- "revolted",
187
- "outraged",
188
- "disgusted",
189
- "depressed"
190
- ],
186
+ pasttenseshocked: %w[
187
+ surprised
188
+ revolted
189
+ outraged
190
+ disgusted
191
+ depressed
192
+ ],
191
193
 
192
- revealed: [
193
- "revealed",
194
- "exposed",
195
- "documented",
196
- "proved",
197
- "publicized"
198
- ],
194
+ revealed: %w[
195
+ revealed
196
+ exposed
197
+ documented
198
+ proved
199
+ publicized
200
+ ],
199
201
 
200
- imploreaudio: [
201
- "won't believe",
202
- "have to hear",
203
- "don't want to have to think about",
204
- "should really think about listening to",
205
- "don't want to hear",
206
- "absolutely have to listen to",
207
- "won't really understand what's happening in the world until you hear",
208
- "need to drop everything and hear",
209
- "can't imagine",
210
- "can't fathom",
211
- "can't begin to understand"
212
- ],
202
+ imploreaudio: [
203
+ "won't believe",
204
+ "have to hear",
205
+ "don't want to have to think about",
206
+ "should really think about listening to",
207
+ "don't want to hear",
208
+ "absolutely have to listen to",
209
+ "won't really understand what's happening in the world until you hear",
210
+ "need to drop everything and hear",
211
+ "can't imagine",
212
+ "can't fathom",
213
+ "can't begin to understand",
214
+ ],
213
215
 
214
- implorevisual: [
215
- "won't believe",
216
- "need to see",
217
- "should really think about watching",
218
- "can't imagine",
219
- "can't fathom",
220
- "can't begin to understand"
221
- ],
216
+ implorevisual: [
217
+ "won't believe",
218
+ "need to see",
219
+ "should really think about watching",
220
+ "can't imagine",
221
+ "can't fathom",
222
+ "can't begin to understand",
223
+ ],
222
224
 
223
- creationvisual: [
224
- "short film",
225
- "music video",
226
- "twenty second video",
227
- "ten second video",
228
- "vlog",
229
- "one minute video",
230
- "fifty second video",
231
- "forty second video"
232
- ],
225
+ creationvisual: [
226
+ "short film",
227
+ "music video",
228
+ "twenty second video",
229
+ "ten second video",
230
+ "vlog",
231
+ "one minute video",
232
+ "fifty second video",
233
+ "forty second video",
234
+ ],
233
235
 
234
- creationaudio: [
235
- "one word",
236
- "two sentences",
237
- "three sentences",
238
- "five words",
239
- "two words",
240
- "three words",
241
- "four words",
242
- "three sentences",
243
- "one question",
244
- "one declaration",
245
- "six words",
246
- "ten words",
247
- "two words and a question"
248
- ],
236
+ creationaudio: [
237
+ "one word",
238
+ "two sentences",
239
+ "three sentences",
240
+ "five words",
241
+ "two words",
242
+ "three words",
243
+ "four words",
244
+ "three sentences",
245
+ "one question",
246
+ "one declaration",
247
+ "six words",
248
+ "ten words",
249
+ "two words and a question",
250
+ ],
249
251
 
250
- creationadjective: [
251
- "hilarious",
252
- "mindblowing",
253
- "scarily-accurate",
254
- "heartwrenching",
255
- "tearjerking",
256
- "saddening",
257
- "shocking",
258
- "amazing",
259
- "awe-inspiring",
260
- "troubling",
261
- "jaw-dropping",
262
- "brain-exploding",
263
- "tear-inducing",
264
- "outrageous",
265
- "pioneering",
266
- "revolutionary",
267
- "ridiculous",
268
- "sobering"
269
- ],
252
+ creationadjective: [
253
+ "hilarious",
254
+ "mindblowing",
255
+ "scarily-accurate",
256
+ "heartwrenching",
257
+ "tearjerking",
258
+ "saddening",
259
+ "shocking",
260
+ "amazing",
261
+ "awe-inspiring",
262
+ "troubling",
263
+ "jaw-dropping",
264
+ "brain-exploding",
265
+ "tear-inducing",
266
+ "outrageous",
267
+ "pioneering",
268
+ "revolutionary",
269
+ "ridiculous",
270
+ "sobering",
271
+ ],
270
272
 
271
- actor: [
272
- "new mom",
273
- "seventh-grader",
274
- "physicist",
275
- "bullied teen",
276
- "science teacher",
277
- "eight year-old",
278
- "man",
279
- "woman",
280
- "comedian",
281
- "former model",
282
- "single dad",
283
- "former drug addict",
284
- "veteran",
285
- "Holocaust survivor",
286
- "trailblazer",
287
- "mother of three",
288
- "LGBT activist",
289
- "NBA coach",
290
- "converted racist",
291
- "former klansman",
292
- "witness to a murder",
293
- "tween",
294
- "high schooler",
295
- "cheerleader",
296
- "late night host",
297
- "teacher",
298
- "actor",
299
- "oscar winner",
300
- "millennial",
301
- "doctor",
302
- "talk show host",
303
- "actress",
304
- "stand-up comedian",
305
- "child star",
306
- "beauty queen",
307
- "model",
308
- "blogger",
309
- "mommy blogger",
310
- "criminologist",
311
- "sociologist",
312
- "cancer survivor",
313
- "cancer patient",
314
- "father of three",
315
- "teacher",
316
- "kindergartener",
317
- "author",
318
- "poet",
319
- "teenager",
320
- "criminal",
321
- "convict",
322
- "police officer",
323
- "plastic surgeon",
324
- "mayor",
325
- "city councilman",
326
- "senator",
327
- "animal rights activist",
328
- "community organizer",
329
- "music teacher",
330
- "pianist",
331
- "director",
332
- "fashonista"
333
- ],
273
+ actor: [
274
+ "new mom",
275
+ "seventh-grader",
276
+ "physicist",
277
+ "bullied teen",
278
+ "science teacher",
279
+ "eight year-old",
280
+ "man",
281
+ "woman",
282
+ "comedian",
283
+ "former model",
284
+ "single dad",
285
+ "former drug addict",
286
+ "veteran",
287
+ "Holocaust survivor",
288
+ "trailblazer",
289
+ "mother of three",
290
+ "LGBT activist",
291
+ "NBA coach",
292
+ "converted racist",
293
+ "former klansman",
294
+ "witness to a murder",
295
+ "tween",
296
+ "high schooler",
297
+ "cheerleader",
298
+ "late night host",
299
+ "teacher",
300
+ "actor",
301
+ "oscar winner",
302
+ "millennial",
303
+ "doctor",
304
+ "talk show host",
305
+ "actress",
306
+ "stand-up comedian",
307
+ "child star",
308
+ "beauty queen",
309
+ "model",
310
+ "blogger",
311
+ "mommy blogger",
312
+ "criminologist",
313
+ "sociologist",
314
+ "cancer survivor",
315
+ "cancer patient",
316
+ "father of three",
317
+ "teacher",
318
+ "kindergartener",
319
+ "author",
320
+ "poet",
321
+ "teenager",
322
+ "criminal",
323
+ "convict",
324
+ "police officer",
325
+ "plastic surgeon",
326
+ "mayor",
327
+ "city councilman",
328
+ "senator",
329
+ "animal rights activist",
330
+ "community organizer",
331
+ "music teacher",
332
+ "pianist",
333
+ "director",
334
+ "fashonista",
335
+ ],
334
336
 
335
- actoradjective: [
336
- "homeless",
337
- "bullied",
338
- "disgraced",
339
- "trailblazing",
340
- "transgender",
341
- "fearless",
342
- "introverted",
343
- "legendary",
344
- "forgotten",
345
- "iconic",
346
- "disabled",
347
- "blind",
348
- "autistic",
349
- "gay",
350
- "queer",
351
- "famous",
352
- "extroverted",
353
- "angry",
354
- "nostalgic",
355
- "slandered",
356
- "iconoclastic",
357
- "outraged",
358
- "unstoppable",
359
- "barrier-smashing",
360
- "unknown",
361
- "inspiring",
362
- "",
363
- "",
364
- ""
365
- ],
337
+ actoradjective: [
338
+ "homeless",
339
+ "bullied",
340
+ "disgraced",
341
+ "trailblazing",
342
+ "transgender",
343
+ "fearless",
344
+ "introverted",
345
+ "legendary",
346
+ "forgotten",
347
+ "iconic",
348
+ "disabled",
349
+ "blind",
350
+ "autistic",
351
+ "gay",
352
+ "queer",
353
+ "famous",
354
+ "extroverted",
355
+ "angry",
356
+ "nostalgic",
357
+ "slandered",
358
+ "iconoclastic",
359
+ "outraged",
360
+ "unstoppable",
361
+ "barrier-smashing",
362
+ "unknown",
363
+ "inspiring",
364
+ "",
365
+ "",
366
+ "",
367
+ ],
366
368
 
367
- action: [
368
- "won't give up",
369
- "doesn't take no for an answer",
370
- "says what none of us will",
371
- "lays it all out",
372
- "talks about the elephant in the room",
373
- "gets real about the biggest problem in America",
374
- "refuses to be silent",
375
- "starts a revolution",
376
- "doesn't worry about what anyone thinks",
377
- "stands up to the critics",
378
- "doesn't accept bullying",
379
- "throws political correctness out the window",
380
- "says what we've all thought",
381
- "speaks up for the voiceless",
382
- "stands up for the people who can't",
383
- "knows when it's time to make a stand",
384
- "won't retreat"
385
- ],
369
+ action: [
370
+ "won't give up",
371
+ "doesn't take no for an answer",
372
+ "says what none of us will",
373
+ "lays it all out",
374
+ "talks about the elephant in the room",
375
+ "gets real about the biggest problem in America",
376
+ "refuses to be silent",
377
+ "starts a revolution",
378
+ "doesn't worry about what anyone thinks",
379
+ "stands up to the critics",
380
+ "doesn't accept bullying",
381
+ "throws political correctness out the window",
382
+ "says what we've all thought",
383
+ "speaks up for the voiceless",
384
+ "stands up for the people who can't",
385
+ "knows when it's time to make a stand",
386
+ "won't retreat",
387
+ ],
386
388
 
387
- createdsynonym: [
388
- "made",
389
- "wrote",
390
- "created",
391
- "found",
392
- "delighted the internet with",
393
- "came up with"
394
- ]
395
- }
389
+ createdsynonym: [
390
+ "made",
391
+ "wrote",
392
+ "created",
393
+ "found",
394
+ "delighted the internet with",
395
+ "came up with",
396
+ ],
397
+ }.freeze
396
398
 
397
- # Generates a new clickbait headline.
398
- # @example
399
- # Upworthy.headline # => "Watch an extroverted police officer become a legend with six words"
400
- # @return [String] the headline
401
- def self.headline
402
- content = Hash[CONTENT.map { |k, v| [k, v.sample] }]
399
+ # Generates a new clickbait headline.
400
+ # @example
401
+ # Upworthy.headline # => "Watch an extroverted police officer become a legend with six words"
402
+ # @return [String] the headline
403
+ def self.headline
404
+ content = Hash[CONTENT.map { |k, v| [k, v.sample] }]
403
405
 
404
- (HEADLINES.sample % content).gsub(' ', ' ')
405
- end
406
+ (HEADLINES.sample % content).gsub(" ", " ")
407
+ end
406
408
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-upworthy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Woodruff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-07 00:00:00.000000000 Z
11
+ date: 2018-08-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A Ruby translation of http://www.upworthygenerator.com/.
14
14
  email: william@tuffbizz.com
@@ -34,7 +34,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
34
34
  requirements:
35
35
  - - ">="
36
36
  - !ruby/object:Gem::Version
37
- version: 1.9.0
37
+ version: 2.3.0
38
38
  required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
@@ -42,9 +42,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
42
42
  version: '0'
43
43
  requirements: []
44
44
  rubyforge_project:
45
- rubygems_version: 2.4.5
45
+ rubygems_version: 2.7.6
46
46
  signing_key:
47
47
  specification_version: 4
48
48
  summary: ruby-upworthy - Generate clickbait titles.
49
49
  test_files: []
50
- has_rdoc: