rapsum 0.0.1 → 0.0.2
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 +4 -4
- data/lib/rapsum.rb +9 -24
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d947e410e6a9965c4869825990d1308131e20684
|
4
|
+
data.tar.gz: af1739ce14469845253ff384b7425baba48e2246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49b8a28e19223b600a64dd3a5a82f5f65a629468616c843560c63c28b4ad7ff902d62184fc440a30c571cde6b917eeb71bf90c64362796ec736cdf2c457f5dce
|
7
|
+
data.tar.gz: 6150feabbf17d1828a8a9fdaafef8226cd2f584d1397c4ef71c2a042da89cc539ed4400966c4fbd4ea0c3fb257af54ddfaa44723c281b1c245f5b81a402322a7
|
data/lib/rapsum.rb
CHANGED
@@ -1,6 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
@short_sentence_samples = [
|
1
|
+
SHORT_SENTENCE_SAMPLES = [
|
4
2
|
|
5
3
|
# 7-11 - Beyonce
|
6
4
|
"Smack it in the air.",
|
@@ -52,11 +50,10 @@ module Rapsum # rap lyric faker!
|
|
52
50
|
|
53
51
|
# Left Right - YG
|
54
52
|
"Left, left right.",
|
55
|
-
"Right",
|
56
53
|
|
57
|
-
|
54
|
+
]
|
58
55
|
|
59
|
-
|
56
|
+
LONG_SENTENCE_SAMPLES = [
|
60
57
|
|
61
58
|
# Ms. Holy Water - Luke Christopher
|
62
59
|
"Not to mention that the booty's almost better than the face.",
|
@@ -77,36 +74,24 @@ module Rapsum # rap lyric faker!
|
|
77
74
|
"But I'm big on the west like I'm big in the south.",
|
78
75
|
"I would pinky swear but my pinky ring too big.",
|
79
76
|
|
77
|
+
]
|
80
78
|
|
81
|
-
|
82
|
-
|
79
|
+
module Rapsum
|
83
80
|
|
84
|
-
# generate short sentences
|
85
81
|
def self.short_sentence
|
86
|
-
|
82
|
+
SHORT_SENTENCE_SAMPLES.sample
|
87
83
|
end
|
88
84
|
|
89
|
-
|
90
|
-
# generate long sentences
|
91
85
|
def self.long_sentence
|
92
|
-
|
86
|
+
LONG_SENTENCE_SAMPLES.sample
|
93
87
|
end
|
94
88
|
|
95
|
-
|
96
|
-
# generate paragraphs
|
97
|
-
# between 7 and 15 sentences - rand short and long sentences
|
98
89
|
def self.paragraph
|
99
90
|
paragraph = []
|
100
91
|
rand(7..15).times do
|
101
|
-
paragraph << (
|
92
|
+
paragraph << (SHORT_SENTENCE_SAMPLES + LONG_SENTENCE_SAMPLES).sample
|
102
93
|
end
|
103
94
|
paragraph.join(' ')
|
104
95
|
end
|
105
96
|
|
106
|
-
end
|
107
|
-
|
108
|
-
puts Rapsum.short_sentence
|
109
|
-
puts '---'
|
110
|
-
puts Rapsum.long_sentence
|
111
|
-
puts '---'
|
112
|
-
puts Rapsum.paragraph
|
97
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rapsum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victoria Chuang
|
@@ -17,7 +17,7 @@ extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
19
|
- lib/rapsum.rb
|
20
|
-
homepage:
|
20
|
+
homepage: https://rubygems.org/gems/rapsum
|
21
21
|
licenses:
|
22
22
|
- MIT
|
23
23
|
metadata: {}
|