madlibber 0.0.6 → 0.0.7
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/madlibber.rb +14 -3
- 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: faa1fe510bb421be20897505c21e12930f04699e
|
|
4
|
+
data.tar.gz: e0ae1418974c495cf5a38a6fac0ff7c2b23bea78
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8b8806f581f741466088e50322f019f19a5ede254e10733f82fe0fea1dad4b4a6c1a9b3dfde4de7a0432e68ee30561a61a30aff4a5402a873f27fc3a5c9d817f
|
|
7
|
+
data.tar.gz: 686f9b3abc3f02a3c02d2b88047eb74f37cf48b604e7a8cbb70f57b8b37d669911247b6a95a4790a1fa2ebc55b6081463817c15628552fa1351d20683e6eebe3
|
data/lib/madlibber.rb
CHANGED
|
@@ -34,8 +34,7 @@ module MadLibber
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
def libberfy text, options = OPTIONS
|
|
37
|
-
defaults = OPTIONS
|
|
38
|
-
defaults.merge! options
|
|
37
|
+
defaults = OPTIONS.merge options
|
|
39
38
|
tgr = EngTagger.new
|
|
40
39
|
tagged_text = tgr.get_readable(text)
|
|
41
40
|
return unless tagged_text
|
|
@@ -82,4 +81,16 @@ module MadLibber
|
|
|
82
81
|
|
|
83
82
|
end
|
|
84
83
|
|
|
85
|
-
|
|
84
|
+
text = "At Indiegogo you’ll find a welcoming, supportive community
|
|
85
|
+
that embraces collaboration, fearlessness and authenticity. We
|
|
86
|
+
are a rapidly growing organization and our platform is used by
|
|
87
|
+
people all over the world to raise money for their creative,
|
|
88
|
+
cause-related, or entrepreneurial ideas. Our customers are
|
|
89
|
+
passionate about their funding campaigns, and so are we! We are a
|
|
90
|
+
team of passionate, results-driven, team-players who are lucky
|
|
91
|
+
enough to be able to call “helping people achieve their dream”
|
|
92
|
+
work. We love our dogs, good food, coffee, and post-it notes!
|
|
93
|
+
Lots of post-it notes!"
|
|
94
|
+
|
|
95
|
+
puts MadLibber.libberfy text, { num_of_blanks: 1 }
|
|
96
|
+
puts MadLibber.libberfy text
|
data/lib/madlibber/version.rb
CHANGED