Pirateme 0.1.2 → 0.1.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 +15 -0
- data/lib/Pirateme/version.rb +1 -1
- data/lib/Pirateme.rb +35 -3
- 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: baa02bd0c9a5c25565718c3040046f8ee6967438
|
4
|
+
data.tar.gz: ff122328739c58ea74248b6a2e4ccb73e448c2ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fbc01450df5a16d2b0c511fdf251d5bc49c3ce8ab2be7fd8f4c210358d2a083c7093b279ed6004a99fb61ce64dd751562136be545bca2bf542ddf577d5b1e64
|
7
|
+
data.tar.gz: 9df801772c2a91350ffa127c0735cc82ec4cc0c56ad18117e720403735f3d48d36180a904f4f1b965ae3abdbe2d791790210ca21032bf02090a349b92123cdac
|
data/README.md
CHANGED
@@ -37,6 +37,21 @@ Pirateme::Fake.captian
|
|
37
37
|
|
38
38
|
Return a name of a captian by random.
|
39
39
|
|
40
|
+
Pirateme::Fake.action
|
41
|
+
|
42
|
+
Return an action by random.
|
43
|
+
|
44
|
+
Pirateme::Fake.phrase
|
45
|
+
|
46
|
+
Return a phrase by random.
|
47
|
+
|
48
|
+
Pirateme::Fake.joke
|
49
|
+
|
50
|
+
Return a joke by random.
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
|
40
55
|
## Development
|
41
56
|
|
42
57
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/lib/Pirateme/version.rb
CHANGED
data/lib/Pirateme.rb
CHANGED
@@ -12,11 +12,43 @@ module Pirateme
|
|
12
12
|
|
13
13
|
module Fake
|
14
14
|
def self.captian
|
15
|
-
|
15
|
+
"Captian " + ["Morgan", "Portgas D. Ace", "Jessamiah", "Morgan Adams", "America", "Henry Avery", "Tom Ayrton", "Barrett", "Edward Teach - Blackbeard", "White Beard", "Black Beard", "Drake", "Ralegh", "Roberts", "Cook", "Nelson", "Silver", "Kirk", "Magellen", "Columbus", "Hook", "Long John Silver", "Bully Hayes", "Walker D. Plank", "Blood", "Jack Sparrow", "Hector Barbossa", "Black Bart", "George Booth", "Nathaniel Butler", "Diablitio", "Edward England", "Edward Newgate", "Sir Henry Morgan", "John Nutt", "Red Beard", ].sample
|
16
16
|
end
|
17
17
|
|
18
|
+
def self.attack
|
19
|
+
["stab", "jab", "kick", "heave ho", "scuttle"].sample
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.phrase
|
23
|
+
["Walk the plank.", "Aaaarrrrgggghhhh!", "Ahoy, Matey.", "Ahoy, me Hearties!", "Dead men tell no tales.", "Feed the fish.", "Hang 'im from the yardarm", "Son of a Biscuit Eater", "Thar she blows!", "Weigh anchor and hoist the mizzen!", "Yo Ho Ho" ].sample
|
24
|
+
end
|
18
25
|
|
26
|
+
def self.joke
|
27
|
+
[
|
28
|
+
"What does a pirate think happens at the end of time? Arrrrmageddon.",
|
29
|
+
"What's a pirate's favorite food? Arrrrrtichokes.",
|
30
|
+
"What's a pirate's favorite basketball move? Jump hook.",
|
31
|
+
"How do pirates make their money? By hook or by crook.",
|
32
|
+
"Why do pirates make excellent fishermen? They know how to hook the big ones.",
|
33
|
+
"Where do pirates find their birds? Parrots Without Partners.",
|
34
|
+
"Did you hear about the pirate's parrot that fell in love with a duck? The bird kept saying, \"Polly wants a quacker\".",
|
35
|
+
"Why couldn't the young pirate see the R-rated movie? There was no parrot-al guidance.",
|
36
|
+
"Why should pirates work for FedEx? They have the fastest ships in the shipping business.",
|
37
|
+
"What's it called when a pirate's sloop runs aground? It's ship out of luck.",
|
38
|
+
"Why don't pirates use a safe deposit box? They put their valuables in Davy Jones' Locker.",
|
39
|
+
"Why did the pirate refuse to say, \"Aye, Aye, Captain\"? Because he's only got one eye.",
|
40
|
+
"What's the pirate's favorite restaurant? Trick question because it's either Jolly Roger or Long John Silver's.",
|
41
|
+
"How could the pirate acquire the ship so cheaply? Because it was on sail.",
|
42
|
+
"Why did the pirate not learn how to bowl? He had a severe hook.",
|
43
|
+
"What are the only notes a pirate can sing? High C's [seas]",
|
44
|
+
"What shivers at the bottom of the sea? a nervous wreck",
|
45
|
+
"Why don't pirates take a bath before they walk the plank? They'll just wash up on shore later",
|
46
|
+
"What's the smelliest part of a pirate ship? the poop deck",
|
47
|
+
"What's the worse nightmare for a pirate on a blind date? a sunken chest with no booty"
|
48
|
+
].sample
|
49
|
+
end
|
19
50
|
end
|
20
51
|
end
|
21
|
-
p Pirateme.translate("Hello there!")
|
22
|
-
p Pirateme::Fake.captian
|
52
|
+
# p Pirateme.translate("Hello there!")
|
53
|
+
# p Pirateme::Fake.captian
|
54
|
+
# p Pirateme::Fake.joke
|