a1447ll_mini_test 0.0.1 → 0.0.2

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: 07e6f5594a5da6fe1205733b633316083769713d
4
- data.tar.gz: 61e4658224245df2ad8883e5bd527ba0dcbbfe9f
3
+ metadata.gz: 61ab46c3ae1098979e4e055bc25aa618c05f2b5c
4
+ data.tar.gz: d72063a32d707fe184288ec76cf48672f4be8552
5
5
  SHA512:
6
- metadata.gz: ebcfec2f6c40c55afb799b7f754b03bcc3e7e3cb8afee55436c10823e07c1d0c4e62c51e84c20bec6d8b7a745be417937210429258460019b4d6f37b8d5a16d7
7
- data.tar.gz: 836d2b6d482c0fe0bfc0f67ba3807f330d65156e92ad6fd941fab3fada45416e1f81b8f7fbc3f65b14ab66238b1f0f5705aac0fc51f8cb7bd1ab6cfbe39f2600
6
+ metadata.gz: 9016d1a842d507ded891a2932c5d7b039b0b6511e754bc277b76bd906255a069c11b2708f7ca97dca2765eead20ab3b167e8f66b92e3c3be7b830134bdc4aecf
7
+ data.tar.gz: e46caccfd2d347d5779cc767161041e53192f5ed3f8cbc5c9d31527365c2ed65e7ebbd3e6e66a00077f6c4e23e7cfaaf9baf8536ea6c634852805cf0e7e67a7c
@@ -29,10 +29,8 @@ module A1447llMiniTest
29
29
  end
30
30
 
31
31
  def hello (string)
32
- str = string.downcase
33
- if str == "hello"
34
- "Hello"
35
- end
32
+ name = string.split.map{|word| word.capitalize}.join(' ')
33
+ "Hello, " + name + "!"
36
34
  end
37
35
  end
38
36
  end
@@ -1,3 +1,3 @@
1
1
  module A1447llMiniTest
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -44,9 +44,7 @@ class TestA1447llMiniTest < MiniTest::Unit::TestCase
44
44
  end
45
45
 
46
46
  def test_hello
47
- assert_equal "Hello", @my_class.hello("hello")
48
- assert_equal "Hello", @my_class.hello("HELLO")
49
- assert_equal "Hello", @my_class.hello("heLLo")
47
+ assert_equal "Hello, Bao Linh!", @my_class.hello("bAo LiNH")
50
48
  end
51
49
 
52
50
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: a1447ll_mini_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Le Bao Linh