pirate_command 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/History.txt +6 -0
- data/LICENSE +20 -0
- data/Manifest.txt +9 -0
- data/README.md +65 -0
- data/Rakefile +14 -0
- data/lib/dictionaries/pirate_actions +39 -0
- data/lib/dictionaries/pirate_exclamations +7 -0
- data/lib/dictionaries/pirate_things +54 -0
- data/lib/pirate_command.rb +29 -0
- metadata +86 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NWZkMGJiYzAwZWIyNjZlMGNjNzMxYWNlZGIwNDJkODcxZGFhN2M0YQ==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YjgwOTAyNzI5YTdiOGQ3NGI5ZTVjZDI0MTc2NGFkNWU3MjA5ZTQ2ZA==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjNiYzU3ZGViNjUzNWY0MThiZDQ2ZDFlMDlhZmM0Nzk4ZWQ3ODNhOWVjOTFk
|
10
|
+
ZjUyMDc4NWI4YjE4ZjFkYzk5YzFhMWMwZjhlMTE4Y2ZjY2IwNGEwMDYzMDM0
|
11
|
+
NmU0ZmY2YTBkODhjMzY0YzUyYTdkZmFlZTNhZmNjNTVlNTdkZTE=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
NTAzZGY2OGNiMWFhMTVlNmMyY2U2M2MwNDlkNGIyODYzNWU3Yzg2NDllNWUz
|
14
|
+
ZDBiOWM4OTA1YWRjNjZiNzI0NTA0NjRkMzgzZWFiYTAwNWY0MmI4NWUzNmNl
|
15
|
+
Y2IyMmVhYzc5NGZlYzc2YzI1MjkyOGNmMjNjYTMwNDliYmNlMzk=
|
data/History.txt
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2013 Davy Stevenson
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
7
|
+
the Software without restriction, including without limitation the rights to
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
10
|
+
subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
ADDED
data/README.md
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
# pirate_command
|
2
|
+
|
3
|
+
* http://github.com/davy/pirate_command
|
4
|
+
|
5
|
+
## DESCRIPTION:
|
6
|
+
|
7
|
+
Randomly generates Pirate actions, things, exclamations or simple commands.
|
8
|
+
|
9
|
+
## SYNOPSIS:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
PirateCommand.generate
|
13
|
+
=> "Swab the Poop Deck"
|
14
|
+
|
15
|
+
PirateCommand.action
|
16
|
+
=> "Batten"
|
17
|
+
|
18
|
+
PirateCommand.thing
|
19
|
+
=> "Main Sail"
|
20
|
+
|
21
|
+
PirateCommand.exclaim
|
22
|
+
=> "Ahoy"
|
23
|
+
|
24
|
+
PirateCommand.exclaim!
|
25
|
+
=> "Shiver me Timbers!"
|
26
|
+
|
27
|
+
```
|
28
|
+
|
29
|
+
## INSTALL:
|
30
|
+
|
31
|
+
* FIX (sudo gem install, anything else)
|
32
|
+
|
33
|
+
## DEVELOPERS:
|
34
|
+
|
35
|
+
After checking out the source, run:
|
36
|
+
|
37
|
+
$ rake newb
|
38
|
+
|
39
|
+
This task will install any missing dependencies, run the tests/specs,
|
40
|
+
and generate the RDoc.
|
41
|
+
|
42
|
+
## LICENSE:
|
43
|
+
|
44
|
+
(The MIT License)
|
45
|
+
|
46
|
+
Copyright (c) 2013 Davy Stevenson
|
47
|
+
|
48
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
49
|
+
a copy of this software and associated documentation files (the
|
50
|
+
'Software'), to deal in the Software without restriction, including
|
51
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
52
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
53
|
+
permit persons to whom the Software is furnished to do so, subject to
|
54
|
+
the following conditions:
|
55
|
+
|
56
|
+
The above copyright notice and this permission notice shall be
|
57
|
+
included in all copies or substantial portions of the Software.
|
58
|
+
|
59
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
60
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
61
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
62
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
63
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
64
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
65
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
|
3
|
+
require "rubygems"
|
4
|
+
require "hoe"
|
5
|
+
|
6
|
+
Hoe.spec 'pirate_command' do
|
7
|
+
developer 'Davy Stevenson', 'davy.stevenson@gmail.com'
|
8
|
+
|
9
|
+
self.readme_file = 'README.md'
|
10
|
+
|
11
|
+
license 'MIT' # this should match the license in the README
|
12
|
+
end
|
13
|
+
|
14
|
+
# vim: syntax=ruby
|
@@ -0,0 +1,39 @@
|
|
1
|
+
Abandon
|
2
|
+
Anchor
|
3
|
+
Assault
|
4
|
+
Attack
|
5
|
+
Batten
|
6
|
+
Behead
|
7
|
+
Bury
|
8
|
+
Capsize
|
9
|
+
Capture
|
10
|
+
Confiscate
|
11
|
+
Dig Up
|
12
|
+
Drink
|
13
|
+
Escape
|
14
|
+
Explore
|
15
|
+
Fasten
|
16
|
+
Fight
|
17
|
+
Gibbet
|
18
|
+
Haul
|
19
|
+
Heave
|
20
|
+
Hijack
|
21
|
+
Hoist
|
22
|
+
Hold
|
23
|
+
Hook
|
24
|
+
Kidnap
|
25
|
+
Lash
|
26
|
+
Loot
|
27
|
+
Menace
|
28
|
+
Plunder
|
29
|
+
Raid
|
30
|
+
Ransack
|
31
|
+
Rig
|
32
|
+
Sabotage
|
33
|
+
Steal
|
34
|
+
Swab
|
35
|
+
Swashbuckle
|
36
|
+
Torture
|
37
|
+
Vandalize
|
38
|
+
Vanquish
|
39
|
+
Walk
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Anchor
|
2
|
+
Barrel
|
3
|
+
Bilge
|
4
|
+
Boom
|
5
|
+
Booty
|
6
|
+
Cannon
|
7
|
+
Chest
|
8
|
+
Coins
|
9
|
+
Compass
|
10
|
+
Crow's Nest
|
11
|
+
Deck
|
12
|
+
Eye Patch
|
13
|
+
Flag
|
14
|
+
Galleon
|
15
|
+
Gangplank
|
16
|
+
Gangway
|
17
|
+
Gold
|
18
|
+
Gunpowder
|
19
|
+
Head
|
20
|
+
High Seas
|
21
|
+
Hook
|
22
|
+
Hull
|
23
|
+
Island
|
24
|
+
Jewels
|
25
|
+
Keel
|
26
|
+
Landlubber
|
27
|
+
Lines
|
28
|
+
Lookout
|
29
|
+
Loot
|
30
|
+
Main Sail
|
31
|
+
Map
|
32
|
+
Mast
|
33
|
+
Musket
|
34
|
+
Ocean
|
35
|
+
Parrot
|
36
|
+
Pegleg
|
37
|
+
Pistol
|
38
|
+
Plank
|
39
|
+
Poop Deck
|
40
|
+
Quarters
|
41
|
+
Rat
|
42
|
+
Rigging
|
43
|
+
Rope
|
44
|
+
Rudder
|
45
|
+
Rum
|
46
|
+
Sail
|
47
|
+
Sextant
|
48
|
+
Ship
|
49
|
+
Shore
|
50
|
+
Skiff
|
51
|
+
Spirits
|
52
|
+
Sword
|
53
|
+
Treasure
|
54
|
+
Vessel
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require 'forgery'
|
2
|
+
|
3
|
+
Forgery.load_paths << File.dirname(__FILE__)
|
4
|
+
|
5
|
+
class PirateCommand < Forgery
|
6
|
+
|
7
|
+
VERSION = '0.0.1'
|
8
|
+
|
9
|
+
def self.action
|
10
|
+
dictionaries[:pirate_actions].random
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.thing
|
14
|
+
dictionaries[:pirate_things].random
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.generate
|
18
|
+
"#{self.action} the #{self.thing}"
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.exclaim
|
22
|
+
dictionaries[:pirate_exclamations].random
|
23
|
+
end
|
24
|
+
|
25
|
+
def self.exclaim!
|
26
|
+
"#{self.exclaim}!"
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
metadata
ADDED
@@ -0,0 +1,86 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pirate_command
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Davy Stevenson
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-26 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rdoc
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: hoe
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.7'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.7'
|
41
|
+
description: Randomly generates Pirate actions, things, exclamations or simple commands.
|
42
|
+
email:
|
43
|
+
- davy.stevenson@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files:
|
47
|
+
- History.txt
|
48
|
+
- Manifest.txt
|
49
|
+
- README.md
|
50
|
+
files:
|
51
|
+
- History.txt
|
52
|
+
- LICENSE
|
53
|
+
- Manifest.txt
|
54
|
+
- README.md
|
55
|
+
- Rakefile
|
56
|
+
- lib/dictionaries/pirate_actions
|
57
|
+
- lib/dictionaries/pirate_exclamations
|
58
|
+
- lib/dictionaries/pirate_things
|
59
|
+
- lib/pirate_command.rb
|
60
|
+
homepage: http://github.com/davy/pirate_command
|
61
|
+
licenses:
|
62
|
+
- MIT
|
63
|
+
metadata: {}
|
64
|
+
post_install_message:
|
65
|
+
rdoc_options:
|
66
|
+
- --main
|
67
|
+
- README.md
|
68
|
+
require_paths:
|
69
|
+
- lib
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - ! '>='
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '0'
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ! '>='
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
requirements: []
|
81
|
+
rubyforge_project: pirate_command
|
82
|
+
rubygems_version: 2.1.10
|
83
|
+
signing_key:
|
84
|
+
specification_version: 4
|
85
|
+
summary: Randomly generates Pirate actions, things, exclamations or simple commands.
|
86
|
+
test_files: []
|