hola_minimaru 0.0.1
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/bin/hola_minimaru +4 -0
- data/lib/hola_minimaru/translator.rb +19 -0
- data/lib/hola_minimaru.rb +8 -0
- metadata +46 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: d6981a9e40302229b73517aa3b45c0a3f71f2611
|
|
4
|
+
data.tar.gz: 7f088b66b7863025c5149139f3429ef586ee6f01
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: a5af6b27178556001af7674b858f862f6afe4d3250c3ae8938a88f0e53e2827fdc73c4a966e9f769c05872db6eaaba51c0d4ace550424f6e77de733556a3601c
|
|
7
|
+
data.tar.gz: 98ff2847542094a83c451c45b8042c36496271b00ce541b440bc0b966d63ec68b361058ebd60382a6b7735b7210f4e0127bccaf126d65153474756a0c4a8041e
|
data/bin/hola_minimaru
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
class HolaMinimaru::Translator
|
|
3
|
+
def initialize(language = "english")
|
|
4
|
+
@language = language
|
|
5
|
+
end
|
|
6
|
+
|
|
7
|
+
def hi
|
|
8
|
+
case @language
|
|
9
|
+
when "japanese"
|
|
10
|
+
"ハローワールド"
|
|
11
|
+
when "spanish"
|
|
12
|
+
"hola mundo"
|
|
13
|
+
when "korean"
|
|
14
|
+
"anyoung ha se yo"
|
|
15
|
+
else
|
|
16
|
+
"hello world"
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: hola_minimaru
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Hiroyuki Nakayama
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-07-02 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: A simple hello world gem
|
|
14
|
+
email: minimaru@example.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- bin/hola_minimaru
|
|
20
|
+
- lib/hola_minimaru.rb
|
|
21
|
+
- lib/hola_minimaru/translator.rb
|
|
22
|
+
homepage:
|
|
23
|
+
licenses:
|
|
24
|
+
- MIT
|
|
25
|
+
metadata: {}
|
|
26
|
+
post_install_message:
|
|
27
|
+
rdoc_options: []
|
|
28
|
+
require_paths:
|
|
29
|
+
- lib
|
|
30
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
31
|
+
requirements:
|
|
32
|
+
- - ">="
|
|
33
|
+
- !ruby/object:Gem::Version
|
|
34
|
+
version: '0'
|
|
35
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - ">="
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '0'
|
|
40
|
+
requirements: []
|
|
41
|
+
rubyforge_project:
|
|
42
|
+
rubygems_version: 2.4.5.1
|
|
43
|
+
signing_key:
|
|
44
|
+
specification_version: 4
|
|
45
|
+
summary: Hola Hola!
|
|
46
|
+
test_files: []
|