ola-mundo-novo 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: 12b6992747fa9dd86f109f0c6c76a158686740a2
4
- data.tar.gz: 506bbe7e352f3f90eac1af3e53596482e31a2ece
3
+ metadata.gz: 0cd460327e9bc85253f2b037dc378bdaa0a3cfc7
4
+ data.tar.gz: 568093ba578f0ce74ad9e3bdd566c7d4cf82738c
5
5
  SHA512:
6
- metadata.gz: 960850e34aec3925c26682bdb76b1825705cb1d87813f96b7ad59a00ae2cb92328aa2a2b0d5d28cb52dc34fe5546085764ef8cf687f67e3c14f352de36ebb50d
7
- data.tar.gz: 7c927992524b0ad3260abb880f070568740bed0618bfb5fdc44e43c7acda68248ed5cf32efaf2cc132e203107501a1fffe24cfcb08cfe2d81a9dbb0e0e1be4e5
6
+ metadata.gz: 0d4d3b54813cc5a314dc7966e6a1f5e25cf4f7013b4d4689d901a90531c7eb0337e0d78ff404ae557eff96da5534514738502bd5dd35bcd07855b58426a2a3bc
7
+ data.tar.gz: 951e0c09c31961db88240605a7278b862a8337aea432fa83fcbb5f2801c81809e29286ebe621680e17ec12d7d2799edf9284f09bb00d68028d073c9e4416e8e1
@@ -1,5 +1,9 @@
1
- class Hola
2
- def self.hi
3
- puts "Olá Mundo Novo de Ruby!"
1
+ class Hello
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
- end
6
+ end
7
+
8
+ #Like import
9
+ require 'ola-mundo-novo/translator'
@@ -0,0 +1,14 @@
1
+ class Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "pt-BR"
9
+ "Olá Mundo Ruby o/!"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ola-mundo-novo
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
  - André Luis
@@ -17,6 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/ola-mundo-novo.rb
20
+ - lib/ola-mundo-novo/translator.rb
20
21
  homepage: http://rubygems.org/gems/ola-mundo-novo
21
22
  licenses:
22
23
  - MIT