Pirateme 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69f7fb5a61371ba6b62cdd51dbb8f7c57341e6f1
4
- data.tar.gz: 56ba4c18eaa82828107bf77f5f56a99a2215ab8d
3
+ metadata.gz: b04c4a267d3a517f718bb94c4a54fe6eeabcd252
4
+ data.tar.gz: 77a952281245293039ffa1858a52f499f2045f38
5
5
  SHA512:
6
- metadata.gz: 91ba8c0b9d3d977800ad75c98c1aec5c91f0cd4b4931397d3708632e059126367f174aff71c890552117a0c2e758793dabe27ebbc28d979c42352f9b75c581bb
7
- data.tar.gz: 4b0c14876559b87f05f6d3fb408b8f559e48b92719e15a2204aa02d2e52596f44d8730f58909ca3483456f47265bd022e754017677e13f1069e221a6c43d9917
6
+ metadata.gz: 40851a533afb0e093bcbd4859bb55ed727f42583cb5bfb5395039eff1dca505dff37c65f014967f893e99f227940912e7c0881224a4a1987923bfb2e4d9a605f
7
+ data.tar.gz: 3e8081a2d616f6dce5f138278c8c7bde91d18504c0dcecc00367867715b38f90baf4fd8310662928bb297cb2fa38de37968aa47e551addc36b4d00e56fb1b36f
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in Pirateme.gemspec
4
4
  gemspec
5
+
6
+ gem 'talk_like_a_pirate'
data/README.md CHANGED
@@ -1,8 +1,10 @@
1
1
  # Pirateme
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/Pirateme`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to the PirateMe gem.
4
4
 
5
- TODO: Delete this and the text above, and describe your gem
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
- TODO: Write usage instructions here
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.captian
9
- ["Captian Morgan", "Portgas D. Ace", "Captain Jessamiah", "Morgan Adams", "Captian America", "Captian Henry Avery", "Tom Ayrton", "Captain Barrett"].sample
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
@@ -1,3 +1,3 @@
1
1
  module Pirateme
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Pirateme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron1515