cowsay 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +20 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +23 -0
- data/README.md +21 -0
- data/Rakefile +1 -0
- data/bin/cowsay +6 -0
- data/cowsay.gemspec +22 -0
- data/lib/cowsay.rb +11 -0
- data/lib/cowsay/character.rb +9 -0
- data/lib/cowsay/character/base.rb +71 -0
- data/lib/cowsay/character/beavis.rb +31 -0
- data/lib/cowsay/character/bunny.rb +17 -0
- data/lib/cowsay/character/cheese.rb +30 -0
- data/lib/cowsay/character/cow.rb +17 -0
- data/lib/cowsay/character/daemon.rb +31 -0
- data/lib/cowsay/character/dragon.rb +27 -0
- data/lib/cowsay/character/elephant.rb +22 -0
- data/lib/cowsay/character/frogs.rb +19 -0
- data/lib/cowsay/character/ghostbusters.rb +33 -0
- data/lib/cowsay/character/kitty.rb +19 -0
- data/lib/cowsay/character/koala.rb +19 -0
- data/lib/cowsay/character/moose.rb +19 -0
- data/lib/cowsay/character/ren.rb +29 -0
- data/lib/cowsay/character/sheep.rb +20 -0
- data/lib/cowsay/character/stegosaurus.rb +26 -0
- data/lib/cowsay/character/stimpy.rb +26 -0
- data/lib/cowsay/character/template.rb +12 -0
- data/lib/cowsay/character/turkey.rb +33 -0
- data/lib/cowsay/character/turtle.rb +27 -0
- data/lib/cowsay/character/tux.rb +21 -0
- data/lib/cowsay/version.rb +3 -0
- metadata +99 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
Copyright (c) 2012 JohnnyT
|
2
|
+
Copyright (C) 2012 Cowsay contributors https://github.com/johnnyt/cowsay/contributors
|
3
|
+
|
4
|
+
MIT License
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
7
|
+
a copy of this software and associated documentation files (the
|
8
|
+
"Software"), to deal in the Software without restriction, including
|
9
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
10
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
11
|
+
permit persons to whom the Software is furnished to do so, subject to
|
12
|
+
the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be
|
15
|
+
included in all copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
18
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
19
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
20
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
21
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
22
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
23
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Cowsay
|
2
|
+
|
3
|
+
ASCII art avatars emote your messages
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem install cowsay
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ cowsay 'Hello world!'
|
14
|
+
|
15
|
+
## Contributing
|
16
|
+
|
17
|
+
1. Fork it
|
18
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
19
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
20
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
21
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/bin/cowsay
ADDED
data/cowsay.gemspec
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'cowsay/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = 'cowsay'
|
8
|
+
gem.version = Cowsay::VERSION
|
9
|
+
gem.authors = ['JohnnyT']
|
10
|
+
gem.email = ['johnnyt@moneydesktop.com']
|
11
|
+
gem.description = %q{ASCII art avatars emote your messages}
|
12
|
+
gem.summary = gem.description
|
13
|
+
gem.homepage = 'https://github.com/johnnyt/cowsay'
|
14
|
+
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ['lib']
|
19
|
+
|
20
|
+
gem.add_development_dependency 'rake'
|
21
|
+
# gem.add_development_dependency 'rspec-pride'
|
22
|
+
end
|
data/lib/cowsay.rb
ADDED
@@ -0,0 +1,71 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Base
|
5
|
+
MAX_LINE_LENGTH = 36
|
6
|
+
|
7
|
+
def self.say(message)
|
8
|
+
new.say(message)
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@thoughts = '\\'
|
13
|
+
end
|
14
|
+
|
15
|
+
def say(message)
|
16
|
+
render_balloon(message) + render_character
|
17
|
+
end
|
18
|
+
|
19
|
+
def template
|
20
|
+
raise '#template should be subclassed'
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
def render_character
|
26
|
+
template
|
27
|
+
end
|
28
|
+
|
29
|
+
def render_balloon(message)
|
30
|
+
message_lines = format_message(message)
|
31
|
+
line_length = message_lines.max{ |a,b| a.length <=> b.length }.length
|
32
|
+
|
33
|
+
output_lines = []
|
34
|
+
|
35
|
+
output_lines << " #{'_' * (line_length + 2)} "
|
36
|
+
|
37
|
+
message_lines.each do |line|
|
38
|
+
# 'Here is your message: %s' % 'hello world'
|
39
|
+
# is the same as
|
40
|
+
# printf('Here is your message: %s', 'hello world')
|
41
|
+
output_lines << "| %-#{line_length}s |" % line
|
42
|
+
end
|
43
|
+
|
44
|
+
output_lines << " #{'-' * (line_length + 2)} "
|
45
|
+
output_lines << ''
|
46
|
+
|
47
|
+
output_lines.join("\n")
|
48
|
+
end
|
49
|
+
|
50
|
+
def format_message(message)
|
51
|
+
return [message] if message.length <= MAX_LINE_LENGTH
|
52
|
+
|
53
|
+
lines = []
|
54
|
+
words = message.split(/\s/).reject{ |word| word.length.zero? }
|
55
|
+
new_line = ''
|
56
|
+
|
57
|
+
words.each do |word|
|
58
|
+
new_line << "#{word} "
|
59
|
+
|
60
|
+
if new_line.length > MAX_LINE_LENGTH
|
61
|
+
lines << new_line.chomp
|
62
|
+
new_line = ''
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
lines
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
71
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Beavis < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} __------~~-,
|
8
|
+
#{@thoughts} ,' ,
|
9
|
+
/ \\
|
10
|
+
/ :
|
11
|
+
| '
|
12
|
+
| |
|
13
|
+
| |
|
14
|
+
| _-- |
|
15
|
+
_| =-. .-. ||
|
16
|
+
o|/o/ _. |
|
17
|
+
/ ~ \\ |
|
18
|
+
(____\@) ___~ |
|
19
|
+
|_===~~~.` |
|
20
|
+
_______.--~ |
|
21
|
+
\\________ |
|
22
|
+
\\ |
|
23
|
+
__/-___-- -__
|
24
|
+
/ _ \\
|
25
|
+
|
26
|
+
TEMPLATE
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Cheese < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts}
|
8
|
+
#{@thoughts}
|
9
|
+
_____ _________
|
10
|
+
/ \\_/ |
|
11
|
+
| ||
|
12
|
+
| ||
|
13
|
+
| ###\\ /### | |
|
14
|
+
| 0 \\/ 0 | |
|
15
|
+
/| | |
|
16
|
+
/ | < |\\ \\
|
17
|
+
| /| | | |
|
18
|
+
| | \\_______/ | | |
|
19
|
+
| | | / /
|
20
|
+
/|| /|||
|
21
|
+
----------------|
|
22
|
+
| | | |
|
23
|
+
*** ***
|
24
|
+
/___\\ /___\\
|
25
|
+
TEMPLATE
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Daemon < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} , ,
|
8
|
+
#{@thoughts} /( )`
|
9
|
+
#{@thoughts} \\ \\___ / |
|
10
|
+
/- _ `-/ '
|
11
|
+
(/\\/ \\ \\ /\\
|
12
|
+
/ / | ` \\
|
13
|
+
O O ) / |
|
14
|
+
`-^--'`< '
|
15
|
+
(_.) _ ) /
|
16
|
+
`.___/` /
|
17
|
+
`-----' /
|
18
|
+
<----. __ / __ \\
|
19
|
+
<----|====O)))==) \\) /====
|
20
|
+
<----' `--' `.__,' \\
|
21
|
+
| |
|
22
|
+
\\ /
|
23
|
+
______( (_ / \\______
|
24
|
+
,' ,-----' | \\
|
25
|
+
`--{__________) \\/
|
26
|
+
TEMPLATE
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Dragon < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} / \\ //\\
|
8
|
+
#{@thoughts} |\\___/| / \\// \\\\
|
9
|
+
/0 0 \\__ / // | \\ \\
|
10
|
+
/ / \\/_/ // | \\ \\
|
11
|
+
\@_^_\@'/ \\/_ // | \\ \\
|
12
|
+
//_^_/ \\/_ // | \\ \\
|
13
|
+
( //) | \\/// | \\ \\
|
14
|
+
( / /) _|_ / ) // | \\ _\\
|
15
|
+
( // /) '/,_ _ _/ ( ; -. | _ _\\.-~ .-~~~^-.
|
16
|
+
(( / / )) ,-{ _ `-.|.-~-. .~ `.
|
17
|
+
(( // / )) '/\\ / ~-. _ .-~ .-~^-. \\
|
18
|
+
(( /// )) `. { } / \\ \\
|
19
|
+
(( / )) .----~-.\\ \\-' .~ \\ `. \\^-.
|
20
|
+
///.----..> \\ _ -~ `. ^-` ^-_
|
21
|
+
///-._ _ _ _ _ _ _}^ - - - - ~ ~-- ,.-~
|
22
|
+
TEMPLATE
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Elephant < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} /\\ ___ /\\
|
8
|
+
#{@thoughts} // \\/ \\/ \\\\
|
9
|
+
(( O O ))
|
10
|
+
\\\\ / \\ //
|
11
|
+
\\/ | | \\/
|
12
|
+
| | | |
|
13
|
+
| | | |
|
14
|
+
| o |
|
15
|
+
| | | |
|
16
|
+
|m| |m|
|
17
|
+
TEMPLATE
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Frogs < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts}
|
8
|
+
#{@thoughts}
|
9
|
+
oO)-. .-(Oo
|
10
|
+
/__ _\\ /_ __\\
|
11
|
+
\\ \\( | ()~() | )/ /
|
12
|
+
\\__|\\ | (-___-) | /|__/
|
13
|
+
' '--' ==`-'== '--' '
|
14
|
+
TEMPLATE
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Ghostbusters < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts}
|
8
|
+
#{@thoughts}
|
9
|
+
#{@thoughts} __---__
|
10
|
+
_- /--______
|
11
|
+
__--( / \\ )XXXXXXXXXXX\\v.
|
12
|
+
.-XXX( O O )XXXXXXXXXXXXXXX-
|
13
|
+
/XXX( U ) XXXXXXX\\
|
14
|
+
/XXXXX( )--_ XXXXXXXXXXX\\
|
15
|
+
/XXXXX/ ( O ) XXXXXX \\XXXXX\\
|
16
|
+
XXXXX/ / XXXXXX \\__ \\XXXXX
|
17
|
+
XXXXXX__/ XXXXXX \\__---->
|
18
|
+
---___ XXX__/ XXXXXX \\__ /
|
19
|
+
\\- --__/ ___/\\ XXXXXX / ___--/=
|
20
|
+
\\-\\ ___/ XXXXXX '--- XXXXXX
|
21
|
+
\\-\\/XXX\\ XXXXXX /XXXXX
|
22
|
+
\\XXXXXXXXX \\ /XXXXX/
|
23
|
+
\\XXXXXX > _/XXXXX/
|
24
|
+
\\XXXXX--__/ __-- XXXX/
|
25
|
+
-XXXXXXXX--------------- XXXXXX-
|
26
|
+
\\XXXXXXXXXXXXXXXXXXXXXXXXXX/
|
27
|
+
""VXXXXXXXXXXXXXXXXXXV""
|
28
|
+
TEMPLATE
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Kitty < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts}
|
8
|
+
#{@thoughts}
|
9
|
+
("`-' '-/") .___..--' ' "`-._
|
10
|
+
` *_ * ) `-. ( ) .`-.__. `)
|
11
|
+
(_Y_.) ' ._ ) `._` ; `` -. .-'
|
12
|
+
_.. `--'_..-_/ /--' _ .' ,4
|
13
|
+
( i l ),-'' ( l i),' ( ( ! .-'
|
14
|
+
TEMPLATE
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Moose < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts}
|
8
|
+
#{@thoughts} \\_\\_ _/_/
|
9
|
+
#{@thoughts} \\__/
|
10
|
+
(oo)\\_______
|
11
|
+
(__)\\ )\\/\\
|
12
|
+
||----w |
|
13
|
+
|| ||
|
14
|
+
TEMPLATE
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Ren < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts}
|
8
|
+
#{@thoughts}
|
9
|
+
____
|
10
|
+
/# /_\\_
|
11
|
+
| |/o\\o\\
|
12
|
+
| \\\\_/_/
|
13
|
+
/ |_ |
|
14
|
+
| ||\\_ ~|
|
15
|
+
| ||| \\/
|
16
|
+
| |||_
|
17
|
+
\\// |
|
18
|
+
|| |
|
19
|
+
||_ \\
|
20
|
+
\\_| o|
|
21
|
+
/\\___/
|
22
|
+
/ ||||__
|
23
|
+
(___)_)
|
24
|
+
TEMPLATE
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
end
|
29
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Sheep < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts}
|
8
|
+
#{@thoughts}
|
9
|
+
__
|
10
|
+
UooU\\.'\@\@\@\@\@\@`.
|
11
|
+
\\__/(\@\@\@\@\@\@\@\@\@\@)
|
12
|
+
(\@\@\@\@\@\@\@\@)
|
13
|
+
`YY~~~~YY'
|
14
|
+
|| ||
|
15
|
+
TEMPLATE
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Stegosaurus < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} . .
|
8
|
+
#{@thoughts} / `. .' "
|
9
|
+
#{@thoughts} .---. < > < > .---.
|
10
|
+
#{@thoughts} | \\ \\ - ~ ~ - / / |
|
11
|
+
_____ ..-~ ~-..-~
|
12
|
+
| | \\~~~\\.' `./~~~/
|
13
|
+
--------- \\__/ \\__/
|
14
|
+
.' O \\ / / \\ "
|
15
|
+
(_____, `._.' | } \\/~~~/
|
16
|
+
`----. / } | / \\__/
|
17
|
+
`-. | / | / `. ,~~|
|
18
|
+
~-.__| /_ - ~ ^| /- _ `..-'
|
19
|
+
| / | / ~-. `-. _ _ _
|
20
|
+
|_____| |_____| ~ - . _ _ _ _ _>
|
21
|
+
TEMPLATE
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Stimpy < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} . _ .
|
8
|
+
#{@thoughts} |\\_|/__/|
|
9
|
+
/ / \\/ \\ \\
|
10
|
+
/__|O||O|__ \\
|
11
|
+
|/_ \\_/\\_/ _\\ |
|
12
|
+
| | (____) | ||
|
13
|
+
\\/\\___/\\__/ //
|
14
|
+
(_/ ||
|
15
|
+
| ||
|
16
|
+
| ||\\
|
17
|
+
\\ //_/
|
18
|
+
\\______//
|
19
|
+
__ || __||
|
20
|
+
(____(____)
|
21
|
+
TEMPLATE
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Turkey < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} ,+*^^*+___+++_
|
8
|
+
#{@thoughts} ,*^^^^ )
|
9
|
+
#{@thoughts} _+* ^**+_
|
10
|
+
#{@thoughts} +^ _ _++*+_+++_, )
|
11
|
+
_+^^*+_ ( ,+*^ ^ \\+_ )
|
12
|
+
{ ) ( ,( ,_+--+--, ^) ^\\
|
13
|
+
{ (\@) } f ,( ,+-^ __*_*_ ^^\\_ ^\\ )
|
14
|
+
{:;-/ (_+*-+^^^^^+*+*<_ _++_)_ ) ) /
|
15
|
+
( / ( ( ,___ ^*+_+* ) < < \\
|
16
|
+
U _/ ) *--< ) ^\\-----++__) ) ) )
|
17
|
+
( ) _(^)^^)) ) )\\^^^^^))^*+/ / /
|
18
|
+
( / (_))_^)) ) ) ))^^^^^))^^^)__/ +^^
|
19
|
+
( ,/ (^))^)) ) ) ))^^^^^^^))^^) _)
|
20
|
+
*+__+* (_))^) ) ) ))^^^^^^))^^^^^)____*^
|
21
|
+
\\ \\_)^)_)) ))^^^^^^^^^^))^^^^)
|
22
|
+
(_ ^\\__^^^^^^^^^^^^))^^^^^^^)
|
23
|
+
^\\___ ^\\__^^^^^^))^^^^^^^^)\\\\
|
24
|
+
^^^^^\\uuu/^^\\uuu/^^^^\\^\\^\\^\\^\\^\\^\\^\\
|
25
|
+
___) >____) >___ ^\\_\\_\\_\\_\\_\\_\\)
|
26
|
+
^^^//\\\\_^^//\\\\_^ ^(\\_\\_\\_\\)
|
27
|
+
^^^ ^^ ^^^ ^
|
28
|
+
TEMPLATE
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
end
|
33
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Cowsay
|
2
|
+
module Character
|
3
|
+
|
4
|
+
class Turtle < Base
|
5
|
+
def template
|
6
|
+
<<-TEMPLATE
|
7
|
+
#{@thoughts} ___-------___
|
8
|
+
#{@thoughts} _-~~ ~~-_
|
9
|
+
#{@thoughts} _-~ /~-_
|
10
|
+
/^\\__/^\\ /~ \\ / \\
|
11
|
+
/| O|| O| / \\_______________/ \\
|
12
|
+
| |___||__| / / \\ \\
|
13
|
+
| \\ / / \\ \\
|
14
|
+
| (_______) /______/ \\_________ \\
|
15
|
+
| / / \\ / \\
|
16
|
+
\\ \\^\\\\ \\ / \\ /
|
17
|
+
\\ || \\______________/ _-_ //\\__//
|
18
|
+
\\ ||------_-~~-_ ------------- \\ --/~ ~\\ || __/
|
19
|
+
~-----||====/~ |==================| |/~~~~~
|
20
|
+
(_(__/ ./ / \\_\\ \\.
|
21
|
+
(_(___/ \\_____)_)
|
22
|
+
TEMPLATE
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: cowsay
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- JohnnyT
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-09-18 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rake
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
30
|
+
description: ASCII art avatars emote your messages
|
31
|
+
email:
|
32
|
+
- johnnyt@moneydesktop.com
|
33
|
+
executables:
|
34
|
+
- cowsay
|
35
|
+
extensions: []
|
36
|
+
extra_rdoc_files: []
|
37
|
+
files:
|
38
|
+
- .gitignore
|
39
|
+
- Gemfile
|
40
|
+
- LICENSE.txt
|
41
|
+
- README.md
|
42
|
+
- Rakefile
|
43
|
+
- bin/cowsay
|
44
|
+
- cowsay.gemspec
|
45
|
+
- lib/cowsay.rb
|
46
|
+
- lib/cowsay/character.rb
|
47
|
+
- lib/cowsay/character/base.rb
|
48
|
+
- lib/cowsay/character/beavis.rb
|
49
|
+
- lib/cowsay/character/bunny.rb
|
50
|
+
- lib/cowsay/character/cheese.rb
|
51
|
+
- lib/cowsay/character/cow.rb
|
52
|
+
- lib/cowsay/character/daemon.rb
|
53
|
+
- lib/cowsay/character/dragon.rb
|
54
|
+
- lib/cowsay/character/elephant.rb
|
55
|
+
- lib/cowsay/character/frogs.rb
|
56
|
+
- lib/cowsay/character/ghostbusters.rb
|
57
|
+
- lib/cowsay/character/kitty.rb
|
58
|
+
- lib/cowsay/character/koala.rb
|
59
|
+
- lib/cowsay/character/moose.rb
|
60
|
+
- lib/cowsay/character/ren.rb
|
61
|
+
- lib/cowsay/character/sheep.rb
|
62
|
+
- lib/cowsay/character/stegosaurus.rb
|
63
|
+
- lib/cowsay/character/stimpy.rb
|
64
|
+
- lib/cowsay/character/template.rb
|
65
|
+
- lib/cowsay/character/turkey.rb
|
66
|
+
- lib/cowsay/character/turtle.rb
|
67
|
+
- lib/cowsay/character/tux.rb
|
68
|
+
- lib/cowsay/version.rb
|
69
|
+
homepage: https://github.com/johnnyt/cowsay
|
70
|
+
licenses: []
|
71
|
+
post_install_message:
|
72
|
+
rdoc_options: []
|
73
|
+
require_paths:
|
74
|
+
- lib
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ! '>='
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
version: '0'
|
81
|
+
segments:
|
82
|
+
- 0
|
83
|
+
hash: -3959670294971125840
|
84
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
86
|
+
requirements:
|
87
|
+
- - ! '>='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
segments:
|
91
|
+
- 0
|
92
|
+
hash: -3959670294971125840
|
93
|
+
requirements: []
|
94
|
+
rubyforge_project:
|
95
|
+
rubygems_version: 1.8.24
|
96
|
+
signing_key:
|
97
|
+
specification_version: 3
|
98
|
+
summary: ASCII art avatars emote your messages
|
99
|
+
test_files: []
|