Hola_hashimoto 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -0
- data/hola_hashimoto.gemspec +1 -1
- data/lib/hola_hashimoto.rb +11 -1
- data/test/test_hola_hashimoto.rb +19 -0
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7e23480af0764ce6cb405451d65193bb6c408e16
|
4
|
+
data.tar.gz: 213be7ea311af88a538692ad7578291f418ef7fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de1932277c18bb953a4f3edc427c416591584c97b8147200748278c1c453af3498be6c18e22bcf32ccc65d33da3f476918f45a9f8db4a0cbef39ad542d9eebaa
|
7
|
+
data.tar.gz: abaaad09effa43e126192b5cdfb596b76c97b5205c08e142a31866502d19b28c449640d37a5102b14d0f2ecbf8e325e39e6f84db1718186c96fb0b3cc6464ed2
|
data/Rakefile
ADDED
data/hola_hashimoto.gemspec
CHANGED
data/lib/hola_hashimoto.rb
CHANGED
@@ -1,6 +1,16 @@
|
|
1
|
-
|
2
1
|
require 'hola_hashimoto/translator'
|
2
|
+
|
3
|
+
# Test Hola
|
3
4
|
class Hola_hashimoto
|
5
|
+
|
6
|
+
# Say hi to the world!
|
7
|
+
#
|
8
|
+
# Example:
|
9
|
+
# >> Hola.hi("spanish")
|
10
|
+
# => hola mundo
|
11
|
+
#
|
12
|
+
# Arguments:
|
13
|
+
# language: (String)
|
4
14
|
def self.hi(language = "english")
|
5
15
|
translator = Translator.new(language)
|
6
16
|
translator.hi
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'minitest/unit'
|
2
|
+
require 'hola_hashimoto'
|
3
|
+
|
4
|
+
Minitest::Unit.autorun
|
5
|
+
|
6
|
+
class Hola_hashimotoTest < MiniTest::Unit::TestCase
|
7
|
+
|
8
|
+
def test_english_hello
|
9
|
+
assert_equal "hello world", Hola_hashimoto.hi("english")
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_any_hello
|
13
|
+
assert_equal "hello world", Hola_hashimoto.hi
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_spanish_hello
|
17
|
+
assert_equal "hola mundo", Hola_hashimoto.hi("spanish")
|
18
|
+
end
|
19
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Hola_hashimoto
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chihiro Hashimoto @ aiit
|
@@ -19,10 +19,12 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- ".gitignore"
|
21
21
|
- ".ruby-version"
|
22
|
+
- Rakefile
|
22
23
|
- bin/hola_hashimoto
|
23
24
|
- hola_hashimoto.gemspec
|
24
25
|
- lib/hola_hashimoto.rb
|
25
26
|
- lib/hola_hashimoto/translator.rb
|
27
|
+
- test/test_hola_hashimoto.rb
|
26
28
|
homepage: http://rubygems.org/gems/Hola_hashimoto
|
27
29
|
licenses:
|
28
30
|
- MIT
|