Pirateme 0.1.4 → 0.1.5
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/README.md +5 -4
- data/lib/Pirateme.rb +17 -7
- data/lib/Pirateme/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: 031b66794befc60a3da0135eed1015e45c5a4bc3
|
4
|
+
data.tar.gz: c31fb77ea56ac0b845ee21eded48a457962efce0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d48bf1bee2cb224bcb8ad6d0e4e675a2a54bfdb5ab0ece18116d3f4d01819f0e1445f313dedcc26fa72db1667462c0b4adc7f3f08c3aa26c2627fbe8e7698380
|
7
|
+
data.tar.gz: 91263a9d272e2feff3ed9f0b31298ffb0c8e01c3202ea48146cbfc3e88fda317a3220fee20ef82b1fae251783f711045189cd0c1f76c32e0aa74b82c6a2fe429
|
data/README.md
CHANGED
@@ -30,10 +30,6 @@ Pirateme.hello
|
|
30
30
|
|
31
31
|
"Welcome to the coolest pirate gem!"
|
32
32
|
|
33
|
-
eg.
|
34
|
-
Pirateme.translate("Hello there!")
|
35
|
-
|
36
|
-
"Ahoy there!"
|
37
33
|
|
38
34
|
Pirateme::Fake.captian
|
39
35
|
|
@@ -51,6 +47,11 @@ Pirateme::Fake.joke
|
|
51
47
|
|
52
48
|
Return a joke by random.
|
53
49
|
|
50
|
+
##This function isn't currently working at the moment. Please check back when it is completed
|
51
|
+
eg.
|
52
|
+
Pirateme.translate("Hello there!")
|
53
|
+
|
54
|
+
"Ahoy there!"
|
54
55
|
|
55
56
|
|
56
57
|
|
data/lib/Pirateme.rb
CHANGED
@@ -6,9 +6,18 @@ module Pirateme
|
|
6
6
|
"Welcome to the coolest pirate gem!"
|
7
7
|
end
|
8
8
|
|
9
|
-
def self.translate(arg)
|
10
|
-
|
11
|
-
end
|
9
|
+
# def self.translate(arg)
|
10
|
+
# arg.is_a?(String) ? translate(arg) : need_string
|
11
|
+
# end
|
12
|
+
|
13
|
+
# # private ############################
|
14
|
+
# def need_string
|
15
|
+
# "Needs to be in a string format"
|
16
|
+
# end
|
17
|
+
|
18
|
+
# def translate(sentence)
|
19
|
+
# "testing"
|
20
|
+
# end
|
12
21
|
|
13
22
|
module Fake
|
14
23
|
def self.captian
|
@@ -47,8 +56,9 @@ module Pirateme
|
|
47
56
|
"What's the worse nightmare for a pirate on a blind date? a sunken chest with no booty"
|
48
57
|
].sample
|
49
58
|
end
|
50
|
-
end
|
59
|
+
end #end faker module
|
60
|
+
|
61
|
+
|
51
62
|
end
|
52
|
-
|
53
|
-
|
54
|
-
# p Pirateme::Fake.joke
|
63
|
+
p Pirateme.translate("Hello there!")
|
64
|
+
|
data/lib/Pirateme/version.rb
CHANGED