faker-stoked 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/VERSION +1 -1
- data/faker-stoked.gemspec +3 -2
- data/lib/stoke_bot.rb +25 -23
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef3f77585202335171b0a711c97e3fa8a1213f57
|
4
|
+
data.tar.gz: 6631cce2dfcdfbc73f6612877b7a1c832339ebb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ab97918fce234ea27c8b2e64fbe88ea6006750df79a3f454a2483a4f6eb43a55a462724b0bd8c444e44c4e788c5650075d5c8228ebe893bf8cbea629ae2b85e
|
7
|
+
data.tar.gz: f74d1147b8549ce421365e5e19e2ef12e4cbf931ed6d463d223b3ddb6654687c90aa03b3b2065467162f57028600a80a9688fa019ca48887b61d4ab065449b20
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.0.0-p247
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.4
|
data/faker-stoked.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "faker-stoked"
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Frederick D. Schoeneman"]
|
12
|
-
s.date = "2013-
|
12
|
+
s.date = "2013-12-05"
|
13
13
|
s.description = "This is an extension of the faker gem, allowing stoked bros and brodies to effortlessly generate stoked bios, that are both radical and awesome while simultaneously pitted. It also provides a rich, creamy variety of methods to generate bro words."
|
14
14
|
s.email = "fred.schoeneman@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".ruby-gemset",
|
22
|
+
".ruby-version",
|
22
23
|
".travis.yml",
|
23
24
|
"Gemfile",
|
24
25
|
"Gemfile.lock",
|
data/lib/stoke_bot.rb
CHANGED
@@ -4,34 +4,35 @@ module Faker
|
|
4
4
|
|
5
5
|
class << self
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
12
|
-
paragraphs.join(" ")
|
13
|
-
end
|
14
|
-
|
15
|
-
# a stoked developer brodie might want multiple stoked paragraphs for her bros
|
16
|
-
# and/or brodies, and can pass in the number of paragraphs she would
|
17
|
-
# like go generate as an argument. Output similar to sentences()
|
7
|
+
# A stoked developer might want multiple stoked paragraphs for her bros
|
8
|
+
# and/or brodies. Takes an argument for the desired number of paragraphs and
|
9
|
+
# sentences per paragraph with a default of two paragraphs with 3 sentences
|
10
|
+
# in each paragraph.
|
18
11
|
#
|
19
|
-
# Faker::StokeBot.paragraphs(2)
|
12
|
+
# Faker::StokeBot.paragraphs(2, 3)
|
20
13
|
# "Whoah? the athlete/groupie constructed intuition suffices to account
|
21
14
|
# for an important distinction in language use. By combining stoke and certain
|
22
15
|
# reformulations of the dominant extreme paradigm, the appearance of
|
23
|
-
# non-stoked gaps in domains relatively inaccessible to ordinary"
|
24
|
-
|
16
|
+
# non-stoked gaps in domains relatively inaccessible to ordinary..."
|
17
|
+
|
18
|
+
def paragraphs(paragraph_count = 2, sentence_count = 3)
|
19
|
+
paragraphs = []
|
20
|
+
paragraph_count.times do
|
21
|
+
paragraphs << paragraph(sentence_count)
|
22
|
+
end
|
23
|
+
paragraphs.join("\n ")
|
24
|
+
end
|
25
25
|
|
26
|
-
def paragraph
|
27
|
-
sentences(
|
26
|
+
def paragraph(sentence_count = 3)
|
27
|
+
sentences(sentence_count)
|
28
28
|
end
|
29
29
|
|
30
|
-
#
|
31
|
-
# in which case
|
32
|
-
#
|
30
|
+
# A stoked developer might want multiple stoked sentences for her bros and/or
|
31
|
+
# brokies, in which case would would pass in the desired number fof sentences
|
32
|
+
# as an argument. Shout out to chomskybot by John Lawler and Kevin McGowan
|
33
|
+
# (http://www-personal.umich.edu/~jlawler/foggy.faq.html)
|
33
34
|
#
|
34
|
-
# Faker::StokeBot.
|
35
|
+
# Faker::StokeBot.sentences(8)
|
35
36
|
# "Whoah? the athlete/groupie constructed intuition suffices to account
|
36
37
|
# for an important distinction in language use. By combining stoke and certain
|
37
38
|
# reformulations of the dominant extreme paradigm, the appearance of
|
@@ -55,11 +56,12 @@ module Faker
|
|
55
56
|
sentences.join(" ")
|
56
57
|
end
|
57
58
|
|
58
|
-
#
|
59
|
+
# A stoked developer bro might need a stoked sentence for his bros
|
59
60
|
#
|
60
61
|
# Faker::StokeBot.sentence
|
61
|
-
#
|
62
|
-
#
|
62
|
+
# "By combining stoke and certain reformulations of the dominant extreme
|
63
|
+
# paradigm, any broficient supporting stoke graph suffices to account
|
64
|
+
# for the system of base bro-words exclusive of the bro dialect."
|
63
65
|
def sentence
|
64
66
|
[intro, subject, verb, object].join(" ")
|
65
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: faker-stoked
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Frederick D. Schoeneman
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faker
|
@@ -120,6 +120,7 @@ extra_rdoc_files:
|
|
120
120
|
files:
|
121
121
|
- .document
|
122
122
|
- .ruby-gemset
|
123
|
+
- .ruby-version
|
123
124
|
- .travis.yml
|
124
125
|
- Gemfile
|
125
126
|
- Gemfile.lock
|