basic_betch 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/basic_betch +1 -1
- data/lib/basic_betch.rb +107 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb8d20c287a29131294db328fef27e18260815d5
|
4
|
+
data.tar.gz: 30a01042d140d7a7185766aea4399e37a4b52d57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23476206c578c4489d5fee5b46679fd7757c36cc832057b9db6de5c529c1c3589f9dbe84864fe146c6051467323a6485e6d787fec62763f47b95dd6e41c1769a
|
7
|
+
data.tar.gz: 39ff5e74aa713edc906ec45f38c2de45a9f4ecb5af656bfb1196b460bc54a2a05dd4879eab3b22b3b048c667aa2933925bf4034d928879c29d803d834ec287c4
|
data/bin/basic_betch
CHANGED
data/lib/basic_betch.rb
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
# require "basic_betch/version"
|
2
|
+
|
3
|
+
class Basicbetch
|
4
|
+
attr_reader :name, :starbucks_order, :uggs, :instafood, :north_face, :yoga_pants, :role_model, :tv_show
|
5
|
+
attr_accessor :basic_items
|
6
|
+
|
7
|
+
def initialize
|
8
|
+
@basic_items = []
|
9
|
+
basic_name
|
10
|
+
basic_drink
|
11
|
+
basic_uggs
|
12
|
+
basic_north_face
|
13
|
+
basic_instagram
|
14
|
+
basic_yoga_pants
|
15
|
+
basic_role_model
|
16
|
+
basic_tv_show
|
17
|
+
is_basic?
|
18
|
+
end
|
19
|
+
|
20
|
+
def basic_name
|
21
|
+
print "What's your name?: "
|
22
|
+
@name = gets.chomp.downcase
|
23
|
+
basic_name = /(jessica|lauren|ashley|samantha)/
|
24
|
+
if !basic_name.match(name).nil?
|
25
|
+
@basic_items.push(name)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
def basic_drink
|
30
|
+
print "What is your Starbucks order?: "
|
31
|
+
@starbucks_order = gets.chomp.downcase
|
32
|
+
basic_starbucks = /pumpkin|spice|soy|triple|foam|extra|skinny|venti/
|
33
|
+
if !basic_starbucks.match(starbucks_order).nil?
|
34
|
+
@basic_items.push(starbucks_order)
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
def basic_uggs
|
39
|
+
print "Do you own a pair of Uggs?: "
|
40
|
+
@uggs = gets.chomp.downcase
|
41
|
+
basic_uggs = /yes|duh|lots|loads|course|yeah/
|
42
|
+
if !basic_uggs.match(uggs).nil?
|
43
|
+
@basic_items.push("owns uggs")
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def basic_instagram
|
48
|
+
print "Do you LOVE instagramming pictures of food?: "
|
49
|
+
@instafood = gets.chomp.downcase
|
50
|
+
basic_insta = /yes|maybe|duh|everyday|yeah|sometimes/
|
51
|
+
if !basic_insta.match(instafood).nil?
|
52
|
+
@basic_items.push("instragrams food")
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def basic_north_face
|
57
|
+
print "Do you LOVE the North Face?: "
|
58
|
+
@north_face = gets.chomp.downcase
|
59
|
+
basic_north_face = /yes|maybe|duh|yeah|kinda/
|
60
|
+
if !basic_north_face.match(north_face).nil?
|
61
|
+
@basic_items.push("north face")
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
def basic_yoga_pants
|
66
|
+
print "Do you wear yoga pants when not doing yoga?: "
|
67
|
+
@yoga_pants = gets.chomp.downcase
|
68
|
+
basic_yoga = /yes|maybe|duh|yeah|sometimes|kind*/
|
69
|
+
if !basic_yoga.match(yoga_pants).nil?
|
70
|
+
@basic_items.push("yoga pants")
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
def basic_role_model
|
75
|
+
print "Who is your role model?: "
|
76
|
+
@role_model = gets.chomp.downcase
|
77
|
+
basic_role_model = /oprah|victoria|middelton|kardashian|god|model|selena|swift|lively|gosling/
|
78
|
+
if !basic_role_model.match(role_model).nil?
|
79
|
+
@basic_items.push(role_model)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
def basic_tv_show
|
84
|
+
print "What is your favorite TV show?: "
|
85
|
+
@tv_show = gets.chomp.downcase
|
86
|
+
basic_tv = /jersey|housewives|view|kardashians|e!|friends|liars|anatomy/
|
87
|
+
if !basic_tv.match(tv_show).nil?
|
88
|
+
@basic_items.push(tv_show)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
def is_basic?
|
93
|
+
if @basic_items.size <= 1
|
94
|
+
print "\nCongrats, you're not a basic betch!\n"
|
95
|
+
elsif @basic_items.size > 1 && basic_items.size <= 2
|
96
|
+
print "\nWhomp whomp, you're kinda basic\n"
|
97
|
+
elsif @basic_items.size > 2 && basic_items.size <= 3
|
98
|
+
print "\nSorry, you're pretty basic\n"
|
99
|
+
elsif @basic_items.size > 3 && basic_items.size <= 4
|
100
|
+
print "\nYou're a super basic betch\n"
|
101
|
+
else
|
102
|
+
print "\nYou couldn't be more of a basic betch...\n"
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# Basicbetch.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: basic_betch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julie Graceffa
|
@@ -19,6 +19,7 @@ extensions: []
|
|
19
19
|
extra_rdoc_files: []
|
20
20
|
files:
|
21
21
|
- bin/basic_betch
|
22
|
+
- lib/basic_betch.rb
|
22
23
|
homepage:
|
23
24
|
licenses:
|
24
25
|
- MIT
|