ola 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ola/tradutor.rb +14 -0
  3. data/lib/ola.rb +6 -3
  4. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 19029278b31f06dd5f98341513a236dcb3335387
4
- data.tar.gz: 9245a836f887b99a3415a00cbd3c7977bfab1537
3
+ metadata.gz: 3f8cf91f8042803e34da60d3cae1979339f23615
4
+ data.tar.gz: 014bbf8eecbe52e71afca5d5fb51c306a1529229
5
5
  SHA512:
6
- metadata.gz: d231b1c443ea8183d9598204d8f2fd4836d1f2eea162b614f64b18c2468282e33067f9b490118f90c5724a9abba23c484e77380254032958fb19c313061e1d44
7
- data.tar.gz: 9553399823fd4f7a7d23764ca9acf43157f5f518ed256715ba3cb64f72d82a11b4a87dbede4641331551349e601b6d8cf30562b4c7a1a6eccdc27981fe48c3de
6
+ metadata.gz: 07d49dc2dcb468a2ed9013eff9cdf5f67b7bca41d3a61c6a08202044cdd93b8a53b8822da5290db708c0c975d618c71c751e4f5d27b71e1b175963db93eebae3
7
+ data.tar.gz: 2a0220fadfde987b87ab62feffce43cf5001ad57d5ecbf60090060033e1a8844f0f0df79151fba3fe9750d35dc458730a4d0401cdf2dade425104ded05304770
@@ -0,0 +1,14 @@
1
+ class Tradutor
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "pt"
9
+ "alô mundão"
10
+ else
11
+ "hello world"
12
+ end
13
+ end
14
+ end
data/lib/ola.rb CHANGED
@@ -1,5 +1,8 @@
1
- class Ola
2
- def self.hi
3
- puts "Alô mundão!"
1
+ class Hola
2
+ def self.hi(language = "pt")
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
6
  end
7
+
8
+ require 'hola/tradutor'
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ola
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
- - Nick Quaranto
7
+ - Cass
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
@@ -17,6 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/ola.rb
20
+ - lib/ola/tradutor.rb
20
21
  homepage: http://rubygems.org/gems/ola
21
22
  licenses:
22
23
  - MIT