pebbles-soreyuke 0.0.1 → 0.1.1
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.
- data/.gitignore +2 -0
- data/README.md +2 -1
- data/bin/soreyuke +25 -10
- data/lib/pebbles-soreyuke/version.rb +1 -1
- data/lib/pebbles-soreyuke.rb +54 -1
- metadata +3 -3
data/.gitignore
CHANGED
data/README.md
CHANGED
data/bin/soreyuke
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
#!/usr/bin/env ruby
|
|
2
2
|
# -*- encoding: utf-8 -*-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
|
|
4
|
+
require "pebbles-soreyuke"
|
|
5
|
+
require 'optparse'
|
|
6
|
+
|
|
7
|
+
Soreyuke = Pebbles::Soreyuke
|
|
8
|
+
Version = Soreyuke::VERSION
|
|
9
|
+
|
|
10
|
+
OPTS = {}
|
|
11
|
+
opt = OptionParser.new
|
|
12
|
+
|
|
13
|
+
opt.on('-c NAME', '--character=NAME', '(apm|cpm|spm)') { |name|
|
|
14
|
+
OPTS[:character] = name
|
|
15
|
+
}
|
|
16
|
+
opt.on('-m MESSAGE', '--message=MESSAGE', 'option') { |message|
|
|
17
|
+
OPTS[:message] = message
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
opt.parse!(ARGV)
|
|
21
|
+
|
|
22
|
+
if OPTS.size == 0
|
|
23
|
+
print opt.help
|
|
24
|
+
exit
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
print Soreyuke::AA(OPTS[:character], OPTS[:message])
|
data/lib/pebbles-soreyuke.rb
CHANGED
|
@@ -1,7 +1,60 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
1
2
|
require "pebbles-soreyuke/version"
|
|
2
3
|
|
|
3
4
|
module Pebbles
|
|
4
5
|
module Soreyuke
|
|
5
|
-
|
|
6
|
+
|
|
7
|
+
module_function
|
|
8
|
+
|
|
9
|
+
def AA(caracter, text)
|
|
10
|
+
case caracter
|
|
11
|
+
when 'apm'
|
|
12
|
+
apm(text)
|
|
13
|
+
when 'cpm'
|
|
14
|
+
cpm(text)
|
|
15
|
+
when 'spm'
|
|
16
|
+
spm(text)
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def apm(text = nil)
|
|
21
|
+
text ||= "I am APM!"
|
|
22
|
+
<<"EOS"
|
|
23
|
+
___
|
|
24
|
+
/ \ ________
|
|
25
|
+
/ ∧ ∧ \ /
|
|
26
|
+
| ・ ・ | < #{text}
|
|
27
|
+
| )●( | \________
|
|
28
|
+
\ ー ノ
|
|
29
|
+
\____/
|
|
30
|
+
EOS
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def cpm(text = nil)
|
|
34
|
+
text || "I am CPM!"
|
|
35
|
+
<<"EOS"
|
|
36
|
+
__ヘ_ヘ_ ________
|
|
37
|
+
/∴∵(・) (・)∴\ /
|
|
38
|
+
/∴∵∴∵ ○ ∴∵ ヽ < #{text}
|
|
39
|
+
(∵∴∵ ●~~~● ∴ ) \________
|
|
40
|
+
\∵∴∵∴∵∴∵ /
|
|
41
|
+
\∵∴∵∴ /
|
|
42
|
+
EOS
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def spm(text = nil)
|
|
46
|
+
text || "I am SPM!"
|
|
47
|
+
<<"EOS"
|
|
48
|
+
____
|
|
49
|
+
/ \
|
|
50
|
+
( ) ________
|
|
51
|
+
\ ∧ ∧ | /
|
|
52
|
+
| ・ ・ | < #{text}
|
|
53
|
+
| ○ || ○. | \________
|
|
54
|
+
| 凵 |
|
|
55
|
+
| ー |
|
|
56
|
+
|______|
|
|
57
|
+
EOS
|
|
58
|
+
end
|
|
6
59
|
end
|
|
7
60
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pebbles-soreyuke
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-12-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: print some charactors and messages
|
|
15
15
|
email:
|
|
@@ -48,7 +48,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
48
48
|
version: '0'
|
|
49
49
|
requirements: []
|
|
50
50
|
rubyforge_project:
|
|
51
|
-
rubygems_version: 1.8.
|
|
51
|
+
rubygems_version: 1.8.24
|
|
52
52
|
signing_key:
|
|
53
53
|
specification_version: 3
|
|
54
54
|
summary: a joke gem. let's SOREYUKE XXX-man!
|