madlibber 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +49 -4
- data/lib/madlibber.rb +1 -0
- data/lib/madlibber/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f816e2d1d57d05502badae77832e595bad61eb23
|
4
|
+
data.tar.gz: 56ffa9dc87e43c700631f9adb399f14c6ad6f251
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 951e4fb9ee1bf903f0456b5238f7371929d4b6576612153f8d9a0e98da9c10e9bc338e4a93c4fd37c7664e3bc648da10658532c9506e3223f757aca9d85b667d
|
7
|
+
data.tar.gz: fc8be7edab5e089a977d3c4c8f5e905e68eb0fb494329cb12d24ef5030c9ffe8d42161971bb15003b6a0114740c394e9bbb1533ca14933990d2db43ffe317dae
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# MadLibber
|
2
2
|
|
3
|
-
|
3
|
+
Ruby gem that can convert any body of text into a Mad Lib.
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -20,26 +20,71 @@ Or install it yourself as:
|
|
20
20
|
```ruby
|
21
21
|
require 'madlibber'
|
22
22
|
|
23
|
-
text = "At Indiegogo you’ll find a welcoming, supportive community
|
23
|
+
text = "At Indiegogo you’ll find a welcoming, supportive community
|
24
|
+
that embraces collaboration, fearlessness and authenticity. We
|
25
|
+
are a rapidly growing organization and our platform is used by
|
26
|
+
people all over the world to raise money for their creative,
|
27
|
+
cause-related, or entrepreneurial ideas. Our customers are
|
28
|
+
passionate about their funding campaigns, and so are we! We are a
|
29
|
+
team of passionate, results-driven, team-players who are lucky
|
30
|
+
enough to be able to call “helping people achieve their dream”
|
31
|
+
work. We love our dogs, good food, coffee, and post-it notes!
|
32
|
+
Lots of post-it notes!"
|
24
33
|
|
25
34
|
MadLibber.libberfy text
|
26
35
|
```
|
36
|
+
EXAMPLE OUTPUT:
|
37
|
+
```
|
38
|
+
At Indiegogo you'll find a welcoming , supportive community that
|
39
|
+
embraces collaboration , fearlessness and authenticity . We are a
|
40
|
+
rapidly growing organization and our <noun> is used by people all
|
41
|
+
over the world to raise money for their <adjective> , cause-related ,
|
42
|
+
or <adjective> ideas . Our customers are passionate about their
|
43
|
+
funding <plural_noun> , and <adverb> are we ! We are a team of
|
44
|
+
passionate , <adjective> , team-players who are lucky enough to be
|
45
|
+
<adjective> to call helping people achieve their dream <noun> . We
|
46
|
+
love our dogs , good food , <noun> , and post-it notes ! <plural_noun>
|
47
|
+
of post-it notes !
|
48
|
+
```
|
27
49
|
|
28
50
|
By default, it generates a Mad Lib with 10 fillable fields if 10 fillable fields are available. The following example illustrates how you could specify how many fillable fields that you would like:
|
29
51
|
|
30
52
|
```ruby
|
31
53
|
require 'madlibber'
|
32
54
|
|
33
|
-
text = "At Indiegogo you’ll find a welcoming, supportive community
|
55
|
+
text = "At Indiegogo you’ll find a welcoming, supportive community
|
56
|
+
that embraces collaboration, fearlessness and authenticity. We
|
57
|
+
are a rapidly growing organization and our platform is used by
|
58
|
+
people all over the world to raise money for their creative,
|
59
|
+
cause-related, or entrepreneurial ideas. Our customers are
|
60
|
+
passionate about their funding campaigns, and so are we! We are a
|
61
|
+
team of passionate, results-driven, team-players who are lucky
|
62
|
+
enough to be able to call “helping people achieve their dream”
|
63
|
+
work. We love our dogs, good food, coffee, and post-it notes!
|
64
|
+
Lots of post-it notes!"
|
34
65
|
|
35
66
|
MadLibber.libberfy text, { num_of_blanks: 15 }
|
36
67
|
```
|
68
|
+
EXAMPLE OUTPUT:
|
69
|
+
```
|
70
|
+
At Indiegogo you'll <verb> a welcoming , supportive community that
|
71
|
+
embraces collaboration , fearlessness and <noun> . We are a
|
72
|
+
<adverb> growing organization and our platform is used by people
|
73
|
+
all over the <noun> to <verb> <noun> for their <adjective> ,
|
74
|
+
<adjective> , or entrepreneurial ideas . Our <plural_noun> are
|
75
|
+
passionate about their funding campaigns , and <adverb> are we !
|
76
|
+
We are a team of passionate , <adjective> , <noun> who are lucky
|
77
|
+
enough to be able to call helping people achieve their dream work .
|
78
|
+
We love our dogs , good food , <noun> , and post-it <plural_noun> !
|
79
|
+
Lots of post-it <plural_noun> !
|
80
|
+
```
|
37
81
|
|
38
82
|
## Available fillable fields
|
39
83
|
Right now the following fillable fields randomly populate the Mad Lib.
|
40
84
|
|
41
85
|
```
|
42
|
-
<noun>, <plural_noun>, <proper_noun>, <verb>, <verb_past_tense>,
|
86
|
+
<noun>, <plural_noun>, <proper_noun>, <verb>, <verb_past_tense>,
|
87
|
+
<verb_ending_with_ing>, <adjective>, <adverb> and <interjection>
|
43
88
|
```
|
44
89
|
|
45
90
|
## Contributing
|
data/lib/madlibber.rb
CHANGED
data/lib/madlibber/version.rb
CHANGED