aiit_xiaoyong_hola 0.0.0
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 +7 -0
- data/lib/aiit_xiaoyong_hola.rb +21 -0
- data/lib/aiit_xiaoyong_hola/translator.rb +14 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 16aa0e91abbfe994d864e038d7c942ffd62ef126
|
4
|
+
data.tar.gz: 376eecba9efb0c36097dd1482db8796a2422c1fd
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f1f5882abae6caf17e495f7f1929996a789e06b88a85035afab92853ee504f304129a47d29da7e6aec2ac5487c2d6498035da10508d1a9f07aca33943a6bab92
|
7
|
+
data.tar.gz: a5eff9a09d789bde9ab25d4f9acc32b70c4e6a673dc049b3923d3f0058982587182a396b70c0229e1b7039ad6363d9776b82bc2b54486e1ddfe63d1b3e9a7313
|
@@ -0,0 +1,21 @@
|
|
1
|
+
class Hola
|
2
|
+
def self.hi(language = "english")
|
3
|
+
translator = Translator.new(language)
|
4
|
+
translator.hi
|
5
|
+
end
|
6
|
+
end
|
7
|
+
|
8
|
+
class Hola::Translator
|
9
|
+
def initialize(language)
|
10
|
+
@language = language
|
11
|
+
end
|
12
|
+
|
13
|
+
def hi
|
14
|
+
case @language
|
15
|
+
when "spanish"
|
16
|
+
"hola mundo"
|
17
|
+
else
|
18
|
+
"hello world"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: aiit_xiaoyong_hola
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Susumu Kongayoshi
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-06-27 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple hello world gem
|
14
|
+
email: konagayoshi@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- lib/aiit_xiaoyong_hola.rb
|
20
|
+
- lib/aiit_xiaoyong_hola/translator.rb
|
21
|
+
homepage: http://rubygems.org/gems/aiit_xiaoyong_hola
|
22
|
+
licenses:
|
23
|
+
- MIT
|
24
|
+
metadata: {}
|
25
|
+
post_install_message:
|
26
|
+
rdoc_options: []
|
27
|
+
require_paths:
|
28
|
+
- lib
|
29
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
requirements: []
|
40
|
+
rubyforge_project:
|
41
|
+
rubygems_version: 2.4.5
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: Hola!
|
45
|
+
test_files: []
|