madlibber 0.0.2 → 0.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c55386fec616206f2229c0425c6b919791aed463
4
- data.tar.gz: ba146e91ab280304b63d1db44fede6c2bce987f5
3
+ metadata.gz: f816e2d1d57d05502badae77832e595bad61eb23
4
+ data.tar.gz: 56ffa9dc87e43c700631f9adb399f14c6ad6f251
5
5
  SHA512:
6
- metadata.gz: a4f2d18e37dc54f37d696ff98255afbc0a6bae31ad12618277d0f978bb0f3e9de2ddd46e61c9c9a154c1df3d4e8fa8a7b17dee06e6352dcfc0e7671d9dafb1bc
7
- data.tar.gz: 97e5ede882d2d263b3341df4c9c88745052c13f1125fcc39c46469900ddf92ebcce9dfaffc47008ef86a3ad43a1111226460467895ca9607f653c85082089023
6
+ metadata.gz: 951e4fb9ee1bf903f0456b5238f7371929d4b6576612153f8d9a0e98da9c10e9bc338e4a93c4fd37c7664e3bc648da10658532c9506e3223f757aca9d85b667d
7
+ data.tar.gz: fc8be7edab5e089a977d3c4c8f5e905e68eb0fb494329cb12d24ef5030c9ffe8d42161971bb15003b6a0114740c394e9bbb1533ca14933990d2db43ffe317dae
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MadLibber
2
2
 
3
- TODO: Write a gem description
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 that embraces collaboration, fearlessness and authenticity. We are a a rapidly growing organization and our platform is used by people all over the world to raise money for their creative, cause-related, or entrepreneurial ideas. Our customers are passionate about their funding campaigns, and so are we! We are a team of passionate, results-driven, team-players who are lucky enough to be able to call “helping people achieve their dream” work. We love our dogs, good food, coffee, and post-it notes! Lots of post-it notes!"
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 that embraces collaboration, fearlessness and authenticity. We are a a rapidly growing organization and our platform is used by people all over the world to raise money for their creative, cause-related, or entrepreneurial ideas. Our customers are passionate about their funding campaigns, and so are we! We are a team of passionate, results-driven, team-players who are lucky enough to be able to call “helping people achieve their dream” work. We love our dogs, good food, coffee, and post-it notes! Lots of post-it notes!"
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>, <adjective>, <adverb> and <interjection>
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
@@ -15,6 +15,7 @@ module MadLibber
15
15
  "NNP" => "<proper_noun>",
16
16
  "VB" => "<verb>",
17
17
  "VBD" => "<verb_past_tense>",
18
+ "VBG" => "<verb_ending_with_ing>",
18
19
  "JJ" => "<adjective>",
19
20
  "RB" => "<adverb>",
20
21
  "UH" => "<interjection>"
@@ -1,3 +1,3 @@
1
1
  module Madlibber
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: madlibber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Samskies