Hola_hashimoto 0.0.6 → 0.0.7

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: a7952d4b4fa80edd7114e1c9b681aed07123ca3c
4
- data.tar.gz: 19d1bc6cd791e5676aee37d9a811a9c056f574ec
3
+ metadata.gz: 6181663df3dd7bc0b28006b8c544d72223fea209
4
+ data.tar.gz: f722f545c4c16dfa2cebe8d989c35361f1b55b02
5
5
  SHA512:
6
- metadata.gz: ecfcd08d93fed05745a7885e2a54804cd146ae8f5c8f1628072d313adf3636ff111e70d9e28809c9e4500334f115d1dd5982daf8529aa366840aaf2128b11436
7
- data.tar.gz: 408a087f1e48d0d0e23e9a0ee4137fafba74fb2cc803349ae499cff6d852339921f5f47bbde0477a4c49edb7aa065de3889852d7ec5be6587154d7215dce5923
6
+ metadata.gz: 4fe9b166d2c2949354702a05094a6e0cab50c9d80a5af1205c97a665623fe3c3070aa20b3c04ba1fcf7624523ea0ed2144f8619504b748f743a915edd4cbc8fc
7
+ data.tar.gz: b30504b4c2ff4793f77b28f55afc78920e5ea26403dfe92a16559e8079b313638cac069afa180dda5e0b230aed5f8cde1755c8446400f7d343259b525ffc2253
data/.gitignore ADDED
@@ -0,0 +1 @@
1
+ *.gem
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.1.3
@@ -1,7 +1,7 @@
1
1
 
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "Hola_hashimoto"
4
- s.version = "0.0.6"
4
+ s.version = "0.0.7"
5
5
  s.executables = ["hola_hashimoto"]
6
6
  s.date = "2014-10-11"
7
7
  s.summary = "Hello wold"
@@ -9,6 +9,6 @@ Gem::Specification.new do |s|
9
9
  s.authors = ["Chihiro Hashimoto @ aiit"]
10
10
  s.email = "a14z6ch@aiit.ac.jp"
11
11
  s.files = `git ls-files`.split($/)
12
- s.homepage = "http://rubygems.org/gems/hola_hashimoto"
12
+ s.homepage = "http://rubygems.org/gems/Hola_hashimoto"
13
13
  s.license = "MIT"
14
14
  end
@@ -1,6 +1,8 @@
1
1
 
2
+ require 'hola_hashimoto/tranlator'
2
3
  class Hola_hashimoto
3
- def self.hi
4
- puts "Hello world!"
4
+ def self.hi(language = "english")
5
+ translator = Translator.new(language)
6
+ translator.hi
5
7
  end
6
8
  end
@@ -0,0 +1,14 @@
1
+ class Hola_hashimoto::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ 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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chihiro Hashimoto @ aiit
@@ -17,10 +17,13 @@ executables:
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - ".gitignore"
21
+ - ".ruby-version"
20
22
  - bin/hola_hashimoto
21
23
  - hola_hashimoto.gemspec
22
24
  - lib/hola_hashimoto.rb
23
- homepage: http://rubygems.org/gems/hola_hashimoto
25
+ - lib/hola_hashimoto/translator.rb
26
+ homepage: http://rubygems.org/gems/Hola_hashimoto
24
27
  licenses:
25
28
  - MIT
26
29
  metadata: {}