a1447ll_hpbd 0.1.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/a1447ll_hpbd.rb +1 -1
- data/lib/a1447ll_hpbd/message.rb +6 -3
- data/lib/a1447ll_hpbd/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e85488f2189781e5a3b8a62066ba120ef82fa93
|
4
|
+
data.tar.gz: 68dad6219e8a1fa8859d0ac4ac89d8f85d4f3109
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7adb27b524378d645df4b1b904d81b0f3893b55f7d9530e5d07ddd975a7bc0f9c04a3fb0d7f5982c565237ece26b38ba3a86d9de3c752f7f244f3bd0eb6afc94
|
7
|
+
data.tar.gz: e91708618b9be0208c6451d91975036f2409a44eae05bc5dfc0aa5353a6c429d61e5c87344ceba958b005e3845551be1924b908776e0f4640481a0561ac8adee
|
data/lib/a1447ll_hpbd.rb
CHANGED
data/lib/a1447ll_hpbd/message.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class Message
|
2
2
|
def initialize name
|
3
3
|
@width = name.length < 31 ? 33 : name.length + 9 - name.length%4
|
4
|
-
@height =
|
4
|
+
@height = 11
|
5
5
|
@name = name
|
6
6
|
end
|
7
7
|
|
@@ -19,9 +19,12 @@ class Message
|
|
19
19
|
("x" + " " * (@width - 2) + "x")
|
20
20
|
end
|
21
21
|
|
22
|
+
time = "[ " + Time.now.strftime("%Y/%m/%d") + " ]"
|
23
|
+
|
22
24
|
insert ">>> HAPPY BIRTHDAY! <<<", msg[2]
|
23
|
-
insert
|
24
|
-
insert
|
25
|
+
insert time, msg[4]
|
26
|
+
insert @name, msg[6]
|
27
|
+
insert "\\(*^ 3 ^*)/", msg[8]
|
25
28
|
|
26
29
|
for i in 0 .. msg.size-1
|
27
30
|
puts msg[i]
|
data/lib/a1447ll_hpbd/version.rb
CHANGED