Pirateme 0.1.6 → 0.1.7

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: 02d15a33e85d8608ecae92d0d47324b0539f1a9b
4
- data.tar.gz: a133bc60c540868cd0c8244990cd36d398df4678
3
+ metadata.gz: 2eb2961878e90575fe4c114031c40dcecb3d1093
4
+ data.tar.gz: af1fd3bda87a1713f771ba3d84ee8b360ca59328
5
5
  SHA512:
6
- metadata.gz: 8e4f167bd07dc9dbee8135e369dbcf5b2e073b0454e9bb4f28ad799feeba8835bf4154ebf9c3a63fe4b93af55bb2824eea1941e40d1c8dc0a22f58a124c8b3d3
7
- data.tar.gz: 910fff5ad945a81e71e38c1deeea011801c5ae0c16c2a8c3cd556718df796cf2fe970936650c5d1f006fcd424488815d7ab25c8985edd69124e8cf2cf902a102
6
+ metadata.gz: 58c233bd7390beb57125cce47ed50904e470f3498f757b7dd74ef6589f4e54c38c02132a68af9d2122902c98c6b003394eaac82348fd94221e8156495e9f1c51
7
+ data.tar.gz: 5da8d2e47128c42e4c05039cbc356f40e12f792f1576c292ab77209e7b2f07f589b27df220079f36613c47be63b30451de9c3ce723895f8ab917c87a1c936e0b
data/README.md CHANGED
@@ -10,19 +10,24 @@ Also you can use it as a faker for names of pirate captians, some aren't even pi
10
10
 
11
11
  ## Installation
12
12
 
13
- Add this line to your application's Gemfile:
14
13
 
15
- ```ruby
16
- gem 'Pirateme'
17
- ```
14
+ #### Option 1 - Rails Application Installation
18
15
 
19
- And then execute:
16
+ <code>Gemfile</code> file add:
20
17
 
21
- $ bundle
18
+ gem 'Pirateme'
22
19
 
23
- Or install it yourself as:
20
+ And then execute in command line:
24
21
 
25
- $ gem install Pirateme
22
+ bundle install
23
+
24
+ #### Option 2 - Ruby Installation
25
+
26
+ Installing Pirateme in your computer
27
+
28
+ Excute in your command line:
29
+
30
+ gem install Pirateme
26
31
 
27
32
  ## Usage
28
33
  To test if the gem is install.
@@ -51,7 +56,9 @@ Pirateme::Fake.joke
51
56
 
52
57
  Return a joke by random.
53
58
 
59
+ Pirateme::Fake.bio
54
60
 
61
+ Return a Pirate's name and a quick bio by random.
55
62
 
56
63
 
57
64
  ## Development
data/lib/Pirateme.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "Pirateme/version"
2
+ require_relative 'library'
2
3
 
3
4
  module Pirateme
4
5
 
@@ -17,7 +18,8 @@ module Pirateme
17
18
  def self.piratize(arg)
18
19
 
19
20
  # translator library
20
- translator = {
21
+ translator =
22
+ {
21
23
  "address" => "port o' call",
22
24
  "admin" => "helm",
23
25
  "am" => "be",
@@ -34,7 +36,6 @@ module Pirateme
34
36
  "boss" => "admiral",
35
37
  "bourbon" => "rum",
36
38
  "box" => "barrel",
37
- "bring" => "bring",
38
39
  "business" => "company",
39
40
  "businesses" => "companies",
40
41
  "calling" => "callin'",
@@ -131,10 +132,8 @@ module Pirateme
131
132
  "you're" => "you be",
132
133
  "you've" => "ye",
133
134
  "your" => "yer"
134
- }
135
-
135
+ }
136
136
  pirate_change = []
137
-
138
137
  arg.split(" ").map do |word|
139
138
  if word.downcase!
140
139
  end
@@ -148,7 +147,7 @@ module Pirateme
148
147
  end
149
148
  end
150
149
  pirate_change.join(" ").capitalize
151
- end
150
+ end #end the translator module
152
151
 
153
152
  module Fake
154
153
  def self.captian
@@ -187,9 +186,26 @@ module Pirateme
187
186
  "What's the worse nightmare for a pirate on a blind date? a sunken chest with no booty"
188
187
  ].sample
189
188
  end
190
- end #end faker module
191
189
 
190
+ def self.bio
191
+ [
192
+ "William Kidd - A stylish Scotsman who had been a leading citizen of New York City, actively involved in the building of Trinity Church, Captain Kidd began his career as a privateer, originally commissioned to rid the seas of pirates. Only reluctantly, did he cross bounds into piracy (having been elected pirate captain by his crew), although his piracy itself may be questionable as his exploits may have been sensationalized. His greatest misfortune was attacking an East India Company vessel. When he learned that he was hunted for that deed, he buried some of his treasure on Gardiners Island, anticipating its usefulness as a bargaining tool. But, captured in Boston along with his wife, William Kidd was eventually sent to England for trial. He was sentenced to death, some said unjustly, and suffered a wretched execution - the noose by which he was hung broke twice, and after he was killed on the third hanging his body was doused in tar and hung by chains along the Thames River.",
193
+ "Edward Teach 'Blackbeard' - Though there have been more successful pirates, Blackbeard is one of the best-known and widely-feared of his time. He commanded four ships and had a pirate army of 300 at the height of his career, and defeated the famous warship, HMS “Scarborough” in sea-battle. He was known for barreling into battle clutching two swords, with several knives and pistols at the ready. He captured over forty merchant ships in the Caribbean, and without flinching killed many prisoners. Though he had many unofficial wives, he was “officially” married to a 16 year old girl - whom legend has it he offered as a gift to his crew after she tried to reform him. After a fierce battle in which he made a stand with candle smoke rising from his beard, he was overtaken by the Royal Navy and beheaded. His head was then raised upon a stake as a warning to other pirates near Virginia’s Hampton River.",
194
+ "Bartholomew Roberts 'Black Bart' - Roberts’ crew admired his adventurist courage, calling him “pistol proof” - though he had been forced into piracy, having once been an officer on board a ship that was captured by the pirate Howell Davis. After taking over, Roberts’ navigational skills, charisma, and bravado painted him golden the eyes of his men. He plundered over 400 ships, a grandiose record to be sure, and captained well-armored ships in every endeavor. He died in a vigorous battle against British Captain Chaloner Ogle; his death left many of his faithful followers and admirers reeling. Even the Royal Navy itself was stunned.",
195
+ "Henry Every 'Long Ben' - Every began his naval career in the British Royal Navy. He served on various ships before he joined a venture known as the Spanish Expedition Shipping in 1693. He became pirate captain through mutiny, leading to his renown as one of the most feared and successful pirates of the Red Sea. Though he didn’t take many ships, the two that he did capture were among the finest in the Indian Ocean (one of them being India’s treasure ship, bulging with gold and jewels). Upon his great wealth (he was the richest pirate in the world), Every retired - but he continued to be hunted far and wide, and his true whereabouts at the time of his death remain unknown.",
196
+ "Anne Bonny - Having traveled to the New World with her family, Anne fell in love and married a poor sailor named James Bonny. But when she grew increasingly disappointed by her husband’s lack of valor, she began seeking out the company of many different men in Nassau. Among these men, was “Calico Jack” Rackham, captain of a pirate ship. She joined his crew whilst acting and dressing like a man (including drinking and fighting profusely). Thus, she fought under his command, and along with fellow female pirate Mary Read, she coaxed the crew onto even greater bloodshed and violence and became a formidable pirate herself. However, she was captured with Rackham’s crew and sentenced to death. Both she and Mary Read claimed pregnancy in prison, and their death sentences weren’t carried out (but Mary had the misfortune of dying in prison). No one is sure how the famous female pirate died, though there is speculation that she returned home to her husband or her father.",
197
+ "Sir Henry Morgan - Captain Morgan is one of the most famous pirates who terrorized Spain’s Caribbean colonies in the late 1600s. Inconspicuously sanctioned by England, Morgan became the head of the Jamaican fleet and successfully undermined Spanish rule, hampering normalcy in the West Indies. He may have pillaged upwards of four hundred ships throughout his piracy career. His greatest achievement was capturing the very wealthy Panama City with thirty ships and 1,200 men, acquiring his largest plunder yet. It was due to his raid on Panama City that he was arrested and brought back to England, but because battle resumed between England and Spain, King Charles II knighted Morgan and released him as deputy governor of Jamaica. There, he lived a very well respected planter until his death.",
198
+ "Francois l'Olonnais - l’Olonnais humbly began as a poor man, working on a plantation in America as an indentured servant. After he turned to piracy, the Frenchman was known for the viciousness he showed to his vanquished, as well as his success in raiding many towns (he was one of the most successful pirates on land attacks) and capturing many ships. Amongst his most successful plunders was the town of Maracaibo, Venezuela, where he ravaged and stole his way into historical infamy, gaining some 200,000 Spanish dollars. His sadistic, bloodthirsty streak was predominant in his career, for he is said to have eaten a Spanish soldier’s heart during one of his many attacks. His own death, however, was equally as gruesome. l’Olonnais and his crew lodged their ship on a sandbar off the coast of Panama and weren’t able to break free. Upon venturing onto land in search of food, they were captured by the local tribe and devoured.",
199
+ "Sir Francis Drake - The most celebrated privateer of his time, Captain Drake sacked the Spanish army many times, often on the order of Queen Elizabeth I herself. Spain, his life-long, starkest foe, saw repeated devastation for he relentlessly sacked and plundered Spanish cities off the coast of Florida. He also sailed to North America and claimed new land on the Pacific coast for Queen Elizabeth, becoming the first Englishman to circumnavigate the globe. He even rescued the unsuccessful English colonists of Roanoke Island off the coast of the Carolinas and gave them passage to England aboard his vessel. After an illustrious career, Drake died off the coast of Panama to something as mundane as dysentery.",
200
+ "Cheung Po Tsai - Cheung Po Tsai was a fisherman’s son, captured by a pirate and his wife to later be adopted by them and become a pirate himself. In the height of his “career”, he commanded an army of over 50,000 men and several hundred ships (Caribbean pirates seem to pale in comparison). He terrorized the Guangdong coastline, amassing great treasure, which he hid in a small cave that is today named after him. Eventually the Chinese government managed to catch him, though he struck a deal with them and became enlisted as a captain in the Qing Imperial Navy. He was appointed to the rank of colonel and spent the rest of his life aiding the Chinese government in capturing other pirates.",
201
+ "Ching Shih - Also known as Cheng I Sao, Ching Shih is not only the most successful of all female pirates, she is also the most fascinating. She gained equality to her husband, the pirate Cheng and took over his operation upon his demise. She ordained her husband’s second-in-command, her adopted son, Cheung Po Tsai, the captain of her fleet (which equaled that of all the other most successful pirates combined). Beautiful and a former prostitute, Captain Sao controlled more than 1,500 ships with 80,000 men, and robbed and taxed towns, plundering ships along the coast of the South China Sea, all the while enforcing a strict code of conduct upon her men. She also married her adopted son, Chang Pao. When the Chinese government offered her universal pirate amnesty in exchange for peace, she accepted. Her pirates, on the other hand, were able to keep their riches and were given military jobs. She lived out her 69 years in charge of a casino and brothel with her husband."
202
+ ].sample
203
+ end
204
+
205
+ end #end faker module
192
206
 
193
207
  end
194
208
 
195
209
 
210
+
211
+ p Pirateme::Fake.bio
@@ -1,3 +1,3 @@
1
1
  module Pirateme
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
data/lib/library.rb ADDED
@@ -0,0 +1 @@
1
+ tester = "something"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Pirateme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron1515
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-05-11 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -71,6 +71,7 @@ files:
71
71
  - bin/setup
72
72
  - lib/Pirateme.rb
73
73
  - lib/Pirateme/version.rb
74
+ - lib/library.rb
74
75
  homepage: https://github.com/Aaron1515/Pirateme
75
76
  licenses:
76
77
  - MIT