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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fac86ddbecd5c96955edb817c297752c99ff7149
4
- data.tar.gz: b400363a2728218d11fa058775eeef976a2292db
3
+ metadata.gz: 7e23480af0764ce6cb405451d65193bb6c408e16
4
+ data.tar.gz: 213be7ea311af88a538692ad7578291f418ef7fb
5
5
  SHA512:
6
- metadata.gz: 5ea0c8d899e01bddd105178080a69e894a7ebea58fa977d91a22709f5ecad657f6dc17e108885566d6065fa5b3c414da2cb5a2bba34ce0227682c1102bf67eac
7
- data.tar.gz: 4c1e5b9054bfbc7c330d31c18873e0e7a4d37489b7d440b7e146b1a83dce219f710bff0456b9d33d63d81a76f103e42f09537b7a2de5085e70543c4dae55b7d7
6
+ metadata.gz: de1932277c18bb953a4f3edc427c416591584c97b8147200748278c1c453af3498be6c18e22bcf32ccc65d33da3f476918f45a9f8db4a0cbef39ad542d9eebaa
7
+ data.tar.gz: abaaad09effa43e126192b5cdfb596b76c97b5205c08e142a31866502d19b28c449640d37a5102b14d0f2ecbf8e325e39e6f84db1718186c96fb0b3cc6464ed2
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do | t |
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run Tests"
8
+ task :default => :test
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "Hola_hashimoto"
4
- s.version = "0.0.9"
4
+ s.version = "0.0.10"
5
5
  s.executables = ["hola_hashimoto"]
6
6
  s.date = "2014-10-11"
7
7
  s.summary = "Hello wold"
@@ -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.9
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