hola_ja 1.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/bin/hola +4 -0
- data/lib/hola.rb +18 -0
- metadata +45 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3782eb6f555b2efe5814256be553cfec3de23667
|
4
|
+
data.tar.gz: 9f2f6fef77a779c613b60712ed248478e9cf4b57
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 61207d70c6b3b154cbbb893128bf093261ca494d0713d0e3de2cdb038fe1b74e2eb7c3222bb79c7f1ce0c8ff632149c72e745b17406885bf373cb5ca6628037e
|
7
|
+
data.tar.gz: ed6569a439544742153b2e2393ac95d410be452e0bb404ac304bb5fb3e3b9fe3a6af942028476d0868801abe88a92ce37a73452ad1402641b3a8b82752260244
|
data/bin/hola
ADDED
data/lib/hola.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# The main Hola driver
|
2
|
+
class Hola
|
3
|
+
# Say hi to the world!
|
4
|
+
#
|
5
|
+
# Example:
|
6
|
+
# >> Hola.hi("japanese")
|
7
|
+
# => おはよう世界
|
8
|
+
#
|
9
|
+
# Arguments:
|
10
|
+
# language: (String)
|
11
|
+
|
12
|
+
def self.hi(language = :english)
|
13
|
+
translator = Translator.new(language)
|
14
|
+
translator.hi
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
require 'hola/translator'
|
metadata
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hola_ja
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Toshihiro Yokota
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-10-20 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple hello world gem
|
14
|
+
email: youkotoushi@gmail.com
|
15
|
+
executables:
|
16
|
+
- hola
|
17
|
+
extensions: []
|
18
|
+
extra_rdoc_files: []
|
19
|
+
files:
|
20
|
+
- lib/hola.rb
|
21
|
+
- bin/hola
|
22
|
+
homepage: http://rubygems.org/gems/hola
|
23
|
+
licenses: []
|
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.0.14
|
42
|
+
signing_key:
|
43
|
+
specification_version: 4
|
44
|
+
summary: Hola!
|
45
|
+
test_files: []
|