hola_motheas 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: 671e50875a285c283daa3aa4a93a9077b45f895c5b1cb98e379c94adf99b172e
4
- data.tar.gz: 20f57b9e997ebe82d17bc84b3c2b7499d0cef66d0780ba383d5f23223f98d2ba
3
+ metadata.gz: 66a8edfe2e94472f137f9a140f39bceaf60c00c33bfcc48e126083d26a608234
4
+ data.tar.gz: 93635b42ef4050e8f78720c40a3b1ecef4265037ff3807f3065f12804ffd208e
5
5
  SHA512:
6
- metadata.gz: 0dba364622cd80fb534bb9bcd281531cd9b4604fe3d69b6552e5a041625bb1e24ff4339d7513e97c166671d6ea81e65499c65aed9992737a3012fbe7038dd40c
7
- data.tar.gz: 8f5b7e81bd2ac7224cc3dd8845d47f8ab14ac548265dd31036f007955fd761c9fac9224904d45ffcff1459631829b6c7acede22d178f4f4da8207f07866ec3ba
6
+ metadata.gz: ac2a89cc3638ecf6cda872632105b30c6833b53764e578ba9bd0476e4facc84df2aeaa09a9dbaf6caa820c7432acafe47b3ff16f520607a47f03975c1fd47a55
7
+ data.tar.gz: d08c83f14f064ba2ba762521fd3004c62bf4c5bcc58745373fa8229f2977e6d0c896dc19f3fcb514db25144d3cca043350459f0e78972cb316bad992aac718b4
data/bin/hola_motheas ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_motheas'
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_motheas.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_motheas/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_motheas
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
  - Salah Alaoui
@@ -12,11 +12,14 @@ date: 2021-12-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple hello world gem
14
14
  email: salaoui.alaoui@pm.me
15
- executables: []
15
+ executables:
16
+ - hola_motheas
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/hola_motheas
19
21
  - lib/hola_motheas.rb
22
+ - lib/hola_motheas/translator.rb
20
23
  homepage: https://rubygems.org/gems/hola_motheas
21
24
  licenses:
22
25
  - MIT
@@ -39,5 +42,5 @@ requirements: []
39
42
  rubygems_version: 3.2.32
40
43
  signing_key:
41
44
  specification_version: 4
42
- summary: Hola!
45
+ summary: Hola
43
46
  test_files: []