insult_clinic 0.1.1
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 +7 -0
- data/bin/insult_clinic +5 -0
- data/lib/insult_clinic.rb +30 -0
- metadata +74 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 9cb471500f38a39fdad30d792d161c05e6f55370
|
4
|
+
data.tar.gz: 1b8ec49b2f30f164fc49c384e0f36c9b50571109
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5ad215bd76da098051728cab38235f583566e3386712f432a6cae48f07667e1a8a4fc3650891200f5af5d7837c2c8d2873285967bc46ed541d0f98d3976379f5
|
7
|
+
data.tar.gz: b1ae9e21106d9610aa761a36a42fe4f40bce22ec7a1183f62307f4f36eaa5231da416504da9733f21efbc37e81ab44739377dd238e9b62b00a6998a876afbac1
|
data/bin/insult_clinic
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
|
2
|
+
class InsultClinic
|
3
|
+
attr_reader :adjective, :noun, :target
|
4
|
+
def initialize
|
5
|
+
@target = ["You", "Your mother is a", "Your father is a"]
|
6
|
+
@noun = ["canoe", "banana", "pillock", "snollygoster", "cockalorum", "lickspittle", "smellfungus", "ninnyhammer", "mumpsimus", "milksop", "hobbledehoy", "pettifogger", "mooncalf", "heap of parrot droppings", "gob", "pervert", "food trough", "trollop", "tart", "fairy", "tosser", "ponce", "son of a silly person", "surrender monkey", "choir boy", "carriage ride participant", "bedwetting type", "abdycomoist", "bedswerver", "bespawler", "bobolyne", "cumberworld", "dalcop", "dew beater", "dorbel", "drate poke", "driggle draggle", "fustylugs", "fustilarian", "gillie wet foot", "gnashgab", "gobermouch", "gowpenful-o'-anything", "klazomaniac", "lubberwort", "muck spout", "mumblecrust", "quisby", "raggabrash", "rakefire", "roiderbanks", "saddle goose", "scobberlotcher", "skelpie limmer", "smell feast", "snoutband", "sorner", "stampcrab", "stymphalist", "tallowcatch", "triptaker", "wandought", "whiffle whaffle", "yaldson", "zoilist"]
|
7
|
+
@adjective = ["truculent", "fatuous", "vainglorious", "petulant", "moribund", "jejune", "feckless", "antiquated", "rambunctious", "mundane", "misshapen", "glib", "dreary", "dopey", "devoid", "deleterious", "degrading", "empty headed", "clammy", "brazen", "indiscreet", "flatulent", "cheese eating", "prancing", "indecorous", "cromulent", "noodle-armed", "imbecilic", "dysfunctional", "dubious", "drunken", "disreputable", "dismal", "dim", "deficient", "deceitful", "damned", "daft", "contrary", "churlish", "catty", "banal", "asinine", "infantile", "lurid", "morbid", "repugnant", "unkempt", "vapid", "decrepit", "malevolent", "impertinent", "grotesque", "puerile", "snotty-faced", "festering", "vacuous", "toffee-nosed", "malodorous"]
|
8
|
+
@num_of_adjs = rand(1..5)
|
9
|
+
end
|
10
|
+
|
11
|
+
def random_insult
|
12
|
+
adjs = @adjective.sample(@num_of_adjs)
|
13
|
+
if adjs.length == 1
|
14
|
+
adjs = adjs.join('')
|
15
|
+
else
|
16
|
+
adjs = adjs.join(', ')
|
17
|
+
end
|
18
|
+
|
19
|
+
target = @target.sample
|
20
|
+
if target != "You" && adjs[0] =~ /[aeiou]/i
|
21
|
+
target += "n"
|
22
|
+
end
|
23
|
+
"#{target} #{adjs} #{@noun.sample}"
|
24
|
+
end
|
25
|
+
|
26
|
+
def split(args)
|
27
|
+
self.random_insult.split(args)
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
metadata
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: insult_clinic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Noah Milstein
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.12'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.12'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.4'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.4'
|
41
|
+
description: Returns a random silly insult
|
42
|
+
email: noahamilstein@gmail.com
|
43
|
+
executables:
|
44
|
+
- insult_clinic
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- bin/insult_clinic
|
49
|
+
- lib/insult_clinic.rb
|
50
|
+
homepage: https://github.com/mihaowei/insult_clinic
|
51
|
+
licenses:
|
52
|
+
- MIT
|
53
|
+
metadata: {}
|
54
|
+
post_install_message:
|
55
|
+
rdoc_options: []
|
56
|
+
require_paths:
|
57
|
+
- lib
|
58
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
63
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - ">="
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '0'
|
68
|
+
requirements: []
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 2.6.6
|
71
|
+
signing_key:
|
72
|
+
specification_version: 4
|
73
|
+
summary: insult clinic
|
74
|
+
test_files: []
|