elo-world 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 68e742df4e529f040b8cf975b8b8455df1135988
4
- data.tar.gz: 510e0613694ad315b51443c4ea370d2e415792fc
3
+ metadata.gz: 40e624072ed8358ca92b59fb6edc3e7e1bd78fde
4
+ data.tar.gz: be5a2f631d87818d80a8d217e240775fd43af1d3
5
5
  SHA512:
6
- metadata.gz: cf5157d0849646c4b9f09d86f3fe42f36b94a6b198bfc57601f5db0e6e076013c589301ae8a26952f9935eb373a0253891dedb05423fec23d5cf4fe1d3b556ac
7
- data.tar.gz: a18ba4a7d8f6f91e4bed899800f639fab13b9d623b977563fa473407f087b5402595bcd4dd27e7336683d2e85c2cec2d647c8911a9c6ade4b14981a9c22022cd
6
+ metadata.gz: 47cd4dfbb409210c45aac0c586f616aee3309f081af67736ec6e22db798fcb8dda26dc87ef29dd922e9f7021f95f1bb361e286f2c711f2372c8f9b9968b44766
7
+ data.tar.gz: b33501f479552f26a65333f197d84636e0da2998b5ec8a0d433a1b6b526a98bbeaf859ee9b59c86e7db69d58b9e2b5a9eaa84bec6f78303899b68d7cfcc9a8fd
data/bin/elo-world ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'elo-world'
4
+ puts Hola.hi(ARGV[0])
@@ -0,0 +1,18 @@
1
+ class Hola::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 "german"
11
+ "hallo Welt"
12
+ when "korean"
13
+ "anyoung ha se yo"
14
+ else
15
+ "elo world"
16
+ end
17
+ end
18
+ end
data/lib/elo-world.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  class Hola
2
- def self.hi
3
- puts "Elo world!"
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
6
  end
7
+
8
+ require 'elo-world/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elo-world
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jen Lijó
@@ -12,12 +12,15 @@ date: 2017-08-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple elo world gem
14
14
  email: jvarelalijo@gmail.com
15
- executables: []
15
+ executables:
16
+ - elo-world
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/elo-world
19
21
  - lib/elo-world.rb
20
- homepage: http://rubygems.org/gems/elo
22
+ - lib/elo-world/translator.rb
23
+ homepage: https://github.com/jen-v/elo-world-gem
21
24
  licenses:
22
25
  - MIT
23
26
  metadata: {}