holabad 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +1 -0
  3. data/lib/hola/translator.rb +16 -0
  4. data/lib/hola.rb +8 -0
  5. metadata +47 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: e320876bdd8462efbe5e332e808e189bf8917557994179eaea9808521c57494f
4
+ data.tar.gz: a382d96692bcc59af94976369ed781d12c514fa55fd12f821c52e463c80cf7a5
5
+ SHA512:
6
+ metadata.gz: d189cea86597ec2adf2459b999b52d68aebbb1328d4302c5021c6ea8298068ece55e126ea31b6bf9834761e34776a5baf2c84971fab9a7b68ddde135684790f3
7
+ data.tar.gz: 477696daa58379b5da753b99d8a6b4804d7d7f3ae46454619cce373e4a6fbe07742498860a2bcd475d6d0c0d05ebf6b2975d6645509659ed700c45fa41d698a3
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,16 @@
1
+ class Hola::Translator
2
+ def initialize(language = "english")
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ when "korean"
11
+ "anyoung ha se yo"
12
+ else
13
+ "hello world"
14
+ end
15
+ end
16
+ end
data/lib/hola.rb ADDED
@@ -0,0 +1,8 @@
1
+ class Hola
2
+ def self.hi(language)
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'hola/translator'
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: holabad
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - leastbad
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: hello@leastbad.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - Rakefile
20
+ - lib/hola.rb
21
+ - lib/hola/translator.rb
22
+ homepage:
23
+ licenses:
24
+ - MIT
25
+ metadata: {}
26
+ post_install_message: |2-
27
+
28
+ Heck yeah.
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.4.2
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Hola!
47
+ test_files: []