haha_rando 0.0.0
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/lib/haha_rando.rb +26 -0
- metadata +43 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 883467963b2878fadb98b703a3699783e44bec4495e6cdb01062620f67f71f63
|
4
|
+
data.tar.gz: '022628d25ca7b95a0bb46a2ea2223abf8ae6ec88acdeaa9c05a13f10dc555a8a'
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 6ba55bd003204adaaf683bd3357ea7f01d330ca88082980ea7acf426edeb28517dfb49567398f841f38fb5a311c63c20c8ee464eb893942412795700ccd754bd
|
7
|
+
data.tar.gz: 3ec23289712e8d5101405c6f974edba7e301ad14ecab5f1d501662bcfc6fea7d912d5cadc66a14e77c1fca35156eed62956be1645fdeae5e316fe65d27b32c2e
|
data/lib/haha_rando.rb
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# module that contains a class == namespace
|
2
|
+
module HahaRando
|
3
|
+
class Coin
|
4
|
+
def self.flip_coin
|
5
|
+
arr = ["heads", "tails"]
|
6
|
+
puts arr.sample
|
7
|
+
return arr.sample
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
class Kush
|
12
|
+
def self.generate
|
13
|
+
prefix = ["OG", "", ""]
|
14
|
+
arr1 = ["sour", "durban", "canadian", "purple", "dreamy", "afghani", "special", "jamaican", "thai", "naboo", "california", "kashyyyk", "rainforest", "desert", "Tatooine", "mountain", "watermelon", "lemon", "orange", "strawberry", "cherry", "yucca"]
|
15
|
+
arr2 = ["lamb", "rabbit", "hammer", "spirit", "cactus", "headband", "moon rock", "crescent", "salmon", "desert", "watermelon", "haze", "cloud", "cafe", "ice", "scientist", "cookies", "glue", "cheese", "alfalfa", "acorn", "bud", "blossom", "flambe"]
|
16
|
+
string = prefix.sample + " " + arr1.sample + " " + arr2.sample
|
17
|
+
puts string
|
18
|
+
return string
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
# HahaRando::Coin.flip_coin
|
26
|
+
# HahaRando::Kush.generate
|
metadata
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: haha_rando
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mark Francisco
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-03-07 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description:
|
14
|
+
email:
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/haha_rando.rb
|
20
|
+
homepage:
|
21
|
+
licenses:
|
22
|
+
- MIT
|
23
|
+
metadata: {}
|
24
|
+
post_install_message:
|
25
|
+
rdoc_options: []
|
26
|
+
require_paths:
|
27
|
+
- lib
|
28
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - ">="
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
34
|
+
requirements:
|
35
|
+
- - ">="
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
requirements: []
|
39
|
+
rubygems_version: 3.2.3
|
40
|
+
signing_key:
|
41
|
+
specification_version: 4
|
42
|
+
summary: haha_rando is a gem that helps you generate random data
|
43
|
+
test_files: []
|