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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e85488f2189781e5a3b8a62066ba120ef82fa93
4
- data.tar.gz: 68dad6219e8a1fa8859d0ac4ac89d8f85d4f3109
3
+ metadata.gz: 1431ac2cc4c3a2acd410c29e7c62264e36f78124
4
+ data.tar.gz: e3f4619c1bdb69b4fc82fe3629782381b4283242
5
5
  SHA512:
6
- metadata.gz: 7adb27b524378d645df4b1b904d81b0f3893b55f7d9530e5d07ddd975a7bc0f9c04a3fb0d7f5982c565237ece26b38ba3a86d9de3c752f7f244f3bd0eb6afc94
7
- data.tar.gz: e91708618b9be0208c6451d91975036f2409a44eae05bc5dfc0aa5353a6c429d61e5c87344ceba958b005e3845551be1924b908776e0f4640481a0561ac8adee
6
+ metadata.gz: 4a9e925cbde452833b88776002a2f2dd2f7522c99f4ef2b24a4474085e4ddaebcf84d37a914ee38f46308ab1ab05d504d349c035c8c121142f2f95c1f703750a
7
+ data.tar.gz: dcba50afcf917213cf9fe12f94b69a85b8847d442adaee3fe545679969437fbb8e02927990f1b43271ab48c1934be5d77a70c50c551d2187a55502dd330ce454
@@ -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 = ["a1447ll@aiit.ac.jp"]
11
- spec.summary = "A simple happy birthday msg"
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"
@@ -2,19 +2,18 @@ require "a1447ll_hpbd/version"
2
2
  require "a1447ll_hpbd/message"
3
3
 
4
4
  module A1447llHpbd
5
- def self.run
6
- print "Input the someone's name who has birthday today: "
7
- n = gets.chomp
8
- s = n.upcase.split(%r{\s*})
9
- name = ""
10
- for i in 0 .. s.length-2 do
11
- name = name + s[i] + "."
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
@@ -1,3 +1,3 @@
1
1
  module A1447llHpbd
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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 msg
80
+ summary: A simple happy birthday message
81
81
  test_files: []