a1447ll_hpbd 1.0.0 → 1.0.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.
- checksums.yaml +4 -4
- data/a1447ll_hpbd.gemspec +2 -2
- data/lib/a1447ll_hpbd.rb +13 -14
- data/lib/a1447ll_hpbd/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1431ac2cc4c3a2acd410c29e7c62264e36f78124
|
4
|
+
data.tar.gz: e3f4619c1bdb69b4fc82fe3629782381b4283242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a9e925cbde452833b88776002a2f2dd2f7522c99f4ef2b24a4474085e4ddaebcf84d37a914ee38f46308ab1ab05d504d349c035c8c121142f2f95c1f703750a
|
7
|
+
data.tar.gz: dcba50afcf917213cf9fe12f94b69a85b8847d442adaee3fe545679969437fbb8e02927990f1b43271ab48c1934be5d77a70c50c551d2187a55502dd330ce454
|
data/a1447ll_hpbd.gemspec
CHANGED
@@ -7,8 +7,8 @@ Gem::Specification.new do |spec|
|
|
7
7
|
spec.name = "a1447ll_hpbd"
|
8
8
|
spec.version = A1447llHpbd::VERSION
|
9
9
|
spec.authors = ["Le Bao Linh"]
|
10
|
-
spec.email = [
|
11
|
-
spec.summary = "A simple happy birthday
|
10
|
+
spec.email = ['a1447ll@aiit.ac.jp']
|
11
|
+
spec.summary = "A simple happy birthday message"
|
12
12
|
spec.description = ""
|
13
13
|
spec.homepage = ""
|
14
14
|
spec.license = "MIT"
|
data/lib/a1447ll_hpbd.rb
CHANGED
@@ -2,19 +2,18 @@ require "a1447ll_hpbd/version"
|
|
2
2
|
require "a1447ll_hpbd/message"
|
3
3
|
|
4
4
|
module A1447llHpbd
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
end
|
13
|
-
name = ".:" + name + s[-1] + ":."
|
14
|
-
msg = Message.new name
|
15
|
-
puts ""
|
16
|
-
msg.draw
|
17
|
-
puts ""
|
18
|
-
return "Wish you a happy birthday! <3"
|
5
|
+
print "Input the someone's name who has birthday today: "
|
6
|
+
n = gets.chomp
|
7
|
+
s = n.upcase.split(%r{\s*})
|
8
|
+
|
9
|
+
name = ""
|
10
|
+
for i in 0 .. s.length-2 do
|
11
|
+
name = name + s[i] + "."
|
19
12
|
end
|
13
|
+
name = ".:" + name + s[-1] + ":."
|
14
|
+
|
15
|
+
msg = Message.new name
|
16
|
+
puts ""
|
17
|
+
msg.draw
|
18
|
+
puts "\n>> Wish you a happy birthday! <3"
|
20
19
|
end
|
data/lib/a1447ll_hpbd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: a1447ll_hpbd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Le Bao Linh
|
@@ -77,5 +77,5 @@ rubyforge_project:
|
|
77
77
|
rubygems_version: 2.2.2
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
|
-
summary: A simple happy birthday
|
80
|
+
summary: A simple happy birthday message
|
81
81
|
test_files: []
|