explora 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
  SHA256:
3
- metadata.gz: 434eeb9f03705ef2b7f19a602a1c27b5e74cb95eb96d241b311826c662aa7b6e
4
- data.tar.gz: 184cb23f92df479373d1bcf851a8ea62c997bec81295cf6ce33e4e6c2737aea2
3
+ metadata.gz: e93a17bd761e699f587bd97b0ddac3289ea4902e5f18f0ebc22e4e2bafd11db9
4
+ data.tar.gz: 8453c422b24005c85385b04fed5f6338ac159b783634a04b45d3e7ef3634783b
5
5
  SHA512:
6
- metadata.gz: ba08285abc2d92ac5e6d52d2914e3c4357cb07889252a80bda5b083b017a487cb189fc3adb75b7fe07e674345b2568cf7860f5088c2039130946404bc4cd3eaa
7
- data.tar.gz: 6623965703934f60cb6b399f2e0c0974df7b7a62192f964dc7ca71d21830386a9f099eac214e995f3e94ca64802b68956fe08f89cd1767eb8d497d4a7f115967
6
+ metadata.gz: 0ef76ac1d7875acaece0facf47e7e5166f635278cbcf352e3523b18494a061b32dd89f2b8e466daa03696a03a848aae2b42d6e210427b733c2d2e0a11330ca37
7
+ data.tar.gz: c31dd8f2fe711d23867aa28338bb9f4f22447f700f027bbbf55e408969e4d061e1b4a0ecac9a38203381a9c91d7347b690e66840568dd0b38de600c2e5cb215a
data/lib/explora.rb CHANGED
@@ -1,9 +1,10 @@
1
1
  class Explora
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
2
7
 
3
- def self.hi
4
8
 
5
- puts "Hello world from Exlora!"
6
9
 
7
- end
8
-
9
- end
10
+ require 'explora/translator'
@@ -0,0 +1,16 @@
1
+ class Explora::Translator
2
+
3
+ def initialize(language)
4
+ @language = language
5
+ end
6
+
7
+ def hi
8
+ case @language
9
+ when "spanish"
10
+ "hola mundo desde Explora"
11
+ else
12
+ "hello world from Explora"
13
+ end
14
+ end
15
+
16
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explora
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
  - Diego Carrera
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-10 00:00:00.000000000 Z
11
+ date: 2021-04-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple hello world gem
14
14
  email: diegocarrera2000@gmail.com
@@ -17,6 +17,7 @@ extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
19
  - lib/explora.rb
20
+ - lib/explora/translator.rb
20
21
  homepage: https://rubygems.org/gems/explora
21
22
  licenses:
22
23
  - MIT