Pirateme 0.1.1 → 0.1.2
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/Gemfile +2 -0
- data/README.md +16 -3
- data/lib/Pirateme.rb +14 -3
- 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: b04c4a267d3a517f718bb94c4a54fe6eeabcd252
|
4
|
+
data.tar.gz: 77a952281245293039ffa1858a52f499f2045f38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40851a533afb0e093bcbd4859bb55ed727f42583cb5bfb5395039eff1dca505dff37c65f014967f893e99f227940912e7c0881224a4a1987923bfb2e4d9a605f
|
7
|
+
data.tar.gz: 3e8081a2d616f6dce5f138278c8c7bde91d18504c0dcecc00367867715b38f90baf4fd8310662928bb297cb2fa38de37968aa47e551addc36b4d00e56fb1b36f
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
# Pirateme
|
2
2
|
|
3
|
-
Welcome to
|
3
|
+
Welcome to the PirateMe gem.
|
4
4
|
|
5
|
-
|
5
|
+
The gem will allow you to translate any string into priate talk.
|
6
|
+
|
7
|
+
Also you can use it as a faker for names of pirate captians, some aren't even pirate captians, like Captian America. But you'll get a vew kicks and laughs out of it.
|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
@@ -21,8 +23,19 @@ Or install it yourself as:
|
|
21
23
|
$ gem install Pirateme
|
22
24
|
|
23
25
|
## Usage
|
26
|
+
To test if the gem is install.
|
27
|
+
Pirateme.hello
|
28
|
+
|
29
|
+
"Welcome to the coolest pirate gem!"
|
30
|
+
|
31
|
+
eg.
|
32
|
+
Pirateme.translate("Hello there!")
|
33
|
+
|
34
|
+
"Ahoy there!"
|
35
|
+
|
36
|
+
Pirateme::Fake.captian
|
24
37
|
|
25
|
-
|
38
|
+
Return a name of a captian by random.
|
26
39
|
|
27
40
|
## Development
|
28
41
|
|
data/lib/Pirateme.rb
CHANGED
@@ -1,11 +1,22 @@
|
|
1
1
|
require "Pirateme/version"
|
2
|
-
|
2
|
+
require 'talk_like_a_pirate'
|
3
3
|
module Pirateme
|
4
|
+
|
4
5
|
def self.hello
|
5
6
|
"Welcome to the coolest pirate gem!"
|
6
7
|
end
|
7
8
|
|
8
|
-
def self.
|
9
|
-
|
9
|
+
def self.translate(arg)
|
10
|
+
TalkLikeAPirate.translate(arg)
|
11
|
+
end
|
12
|
+
|
13
|
+
module Fake
|
14
|
+
def self.captian
|
15
|
+
["Captian Morgan", "Portgas D. Ace", "Captain Jessamiah", "Morgan Adams", "Captian America", "Captian Henry Avery", "Tom Ayrton", "Captain Barrett"].sample
|
16
|
+
end
|
17
|
+
|
18
|
+
|
10
19
|
end
|
11
20
|
end
|
21
|
+
p Pirateme.translate("Hello there!")
|
22
|
+
p Pirateme::Fake.captian
|
data/lib/Pirateme/version.rb
CHANGED