hola_soxface 0.0.0 → 0.0.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae13ac2682dc8587e467742a3d6bb45625d2c4d52070053d02ba2b368e908af5
4
- data.tar.gz: d5b46fb73b2beaed76b3e6dab3b0040d6873e18d64b8f35ec367529b3eb9384e
3
+ metadata.gz: 5f9e4ff8508f06dcea4c70f6e0ec4b1bda03c61c29fe017166a510fc7e199072
4
+ data.tar.gz: 6e7b01cbcc09c9f956ea72bcb5c2dba96e0a738aefd80051354db3c20a8004d6
5
5
  SHA512:
6
- metadata.gz: 100855baa5c674dbe46b1e1dca744e5a6dfe243bb003bc12a284a6f9992c2b5e13dd57d43186f71813b489cb375e329f8f893eaca84405b54532443949a3b2ea
7
- data.tar.gz: e6328356b7d100f49475d05b9186f2cb37c0fddbd680a4811d6cdbd6207097db97cc169678991c966fb8e1d96741885ef17a2971f9714f60d636897b19f44f65
6
+ metadata.gz: b822483d330a5920382d2425f7fece5a5e749cdb3d208e918ed2166248d96db0ce11622472af684a6ac4e429120a311f58f7e9f68ac8efc9bce82c9c4286ce6f
7
+ data.tar.gz: 64b95b11bd7a53c22edbfde5b824ba61c04026a46dedc0d7c957395a0b56aa7821259957ffe8bbcc0baefdbb71ba2b18a3888abfdf0c8f0714a19f6782c7ca21
data/bin/hola_soxface ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_soxface'
4
+ puts Hola.hi(ARGV[0])
@@ -0,0 +1,14 @@
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
+ else
11
+ "Hello world!"
12
+ end
13
+ end
14
+ end
data/lib/hola_soxface.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  class Hola
2
- def self.hi
3
- puts "Hello World!"
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
- end
6
+ end
7
+
8
+ require 'hola_soxface/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_soxface
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
  - Nick Quaranto, Sonya Corcoran
@@ -12,11 +12,14 @@ date: 2023-01-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Clone of Hola Gem Tutorial on Ruby Guides
14
14
  email: nick@quaran.to
15
- executables: []
15
+ executables:
16
+ - hola_soxface
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/hola_soxface
19
21
  - lib/hola_soxface.rb
22
+ - lib/hola_soxface/translator.rb
20
23
  homepage: https://rubygems.org/gems/hola_soxface
21
24
  licenses:
22
25
  - MIT