awelvor 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: f96a9b138cf5bf4e07a6aa31465ddd13d755edbc3aa987a0665624744a3102e6
4
- data.tar.gz: 801cb8438736896a5439e7c13b9614a9a717c7bab0af550e98dbc3f5e51659aa
3
+ metadata.gz: fd8613ffc270a95d2ec256147cd44b63c4adef8e58656f46495cbad6914275b2
4
+ data.tar.gz: 82f02926d410cf344635915685a407f193d7405f7319496c6397f561d3030d51
5
5
  SHA512:
6
- metadata.gz: 042e4f5f3e823ade09500ac3ba18ab6676c45ca2b9b6a00928e79e2966c5d8c46aceb76684f2863399eb938f7b83da317e1c3b796a8691bb8af14c46649df741
7
- data.tar.gz: 41356be4e6816996ac69fd673b3fd9343e20c79a50a4f09fa0af5bb9a8f81588201993cee6c339440f7f0ff0357f08ca6a795f8fa17837ea6b5da760361eaedf
6
+ metadata.gz: 95431cb2dd9d97706233059e8883f4409a7ffd5ff74f888541521d6f09dfbf876cc796a5c830f434de5bc6343171da36df61595ae635a56988f4d11b7dd7ed59
7
+ data.tar.gz: 9c11084d05843eba53a79c3ac84ed22739b1526252fab5625d7cdce984a1bc6377c4f5ebba507d45589e366dabfcd456521034f07ad2ecb55e8608a2261a348d
data/bin/awelvor ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'awelvor'
4
+ puts Awelvor.hi(ARGV[0])
@@ -0,0 +1,14 @@
1
+ class Awelvor::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/awelvor.rb CHANGED
@@ -1,5 +1,9 @@
1
1
  class Awelvor
2
- def self.hi
3
- puts "Hello world!"
2
+
3
+ def self.hi(language = "english")
4
+ translator = Translator.new(language)
5
+ translator.hi
4
6
  end
5
- end
7
+ end
8
+
9
+ require 'awelvor/translator'
metadata CHANGED
@@ -1,22 +1,25 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awelvor
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
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2024-10-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple hello world gem
14
14
  email: nick@quaran.to
15
- executables: []
15
+ executables:
16
+ - awelvor
16
17
  extensions: []
17
18
  extra_rdoc_files: []
18
19
  files:
20
+ - bin/awelvor
19
21
  - lib/awelvor.rb
22
+ - lib/awelvor/translator.rb
20
23
  homepage: https://rubygems.org/gems/awelvor
21
24
  licenses:
22
25
  - MIT