hola-ujun 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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 57c6cbdcc510be46568d7287c96fb149c07d3770
4
+ data.tar.gz: e4e5b35ed7c007e5bb5a3565625d060f11eb0128
5
+ SHA512:
6
+ metadata.gz: c9c1fda03099692b76d9733ee9e64e79a08a873099e0b2c753f8e91e072c3dba15e4f3b8ab781d9c21b833c6ec07a1fbd44bdb316a8057285b5a6c17773a70ca
7
+ data.tar.gz: fd4bf8838cb9aa831cf36016c7f63911ae6f0eee7b13d4567dbf892fae2ad4b64321894c0750d91474845071c049643966ecaa9bdef98f9bedaaa1f91e89e529
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola-ujun'
4
+ puts HolaUjun.hi(ARGV[0])
@@ -0,0 +1,8 @@
1
+ class HolaUjun
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'hola-ujun/translator'
@@ -0,0 +1,16 @@
1
+ class HolaUjun::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ when "chinese"
11
+ "你好"
12
+ else
13
+ "hello world"
14
+ end
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hola-ujun
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - luyujun
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2015-10-03 00:00:00 Z
13
+ dependencies: []
14
+
15
+ description: A simple hello world gem
16
+ email: luyujun87@gmail.com
17
+ executables:
18
+ - hola-ujun
19
+ extensions: []
20
+
21
+ extra_rdoc_files: []
22
+
23
+ files:
24
+ - bin/hola-ujun
25
+ - lib/hola-ujun.rb
26
+ - lib/hola-ujun/translator.rb
27
+ homepage: http://rubygems.org/gems/hola-ujun
28
+ licenses:
29
+ - MIT
30
+ metadata: {}
31
+
32
+ post_install_message:
33
+ rdoc_options: []
34
+
35
+ require_paths:
36
+ - lib
37
+ required_ruby_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - &id001
40
+ - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: "0"
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - *id001
46
+ requirements: []
47
+
48
+ rubyforge_project:
49
+ rubygems_version: 2.2.0
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: HolaUjun!
53
+ test_files: []
54
+