hola_everybody 0.0.0 → 0.0.2

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: f164d3a0359eb65844cc3d013b0f40f933c8d7189214de1ba435c28ccb8341d4
4
- data.tar.gz: b1c2517ecbd8e9de8d83c6fd626dbe2506db7325392f8d062a6125c0be0822fc
3
+ metadata.gz: daff63b502f6d5a63771a17a7f801c2a97ddd4d933a9e8d7746d482e070f0111
4
+ data.tar.gz: 645903532268013cbde77360eb8773eae81ddf184b1ebd3e02dd29a8e617e9be
5
5
  SHA512:
6
- metadata.gz: 72dafb09761bba9c8d746fa65cd83a083047b46d620dd225c4c0050b0a051b57bdb8d0c042aede265f540ba1d3f2b701d8ed2313b687d54717291686a0e2676a
7
- data.tar.gz: d03c1d0d6eac94c2399d587d41c5c6c231bb7eeaa5e29b0e08673b3e9b3b4ba0ce7bb02441d7a861ce33ce9c2ff369e4c707f504db848b08d5bf9d9f9cdd3560
6
+ metadata.gz: 0f43e391ea5ad641685059c96690fa44b7dc1023aa9069833ba79ae9d3a818e586995735f3a528e0ecdb2c881066d88975dff1ca972ea27a247656d17150ab39
7
+ data.tar.gz: f0a2fad87a6109c764d39336f3b02088cffec61e966f555ce6b22d8101a617cac6ed954639e86d7670e4368a0e18a92bdeb5b425a99859af906189fcbd15d33b
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_everybody'
4
+ puts HolaEverybody.hi(ARGV[0])
@@ -1,7 +1,8 @@
1
- class HolaEverybody
1
+ require 'hola_everybody/translator'
2
2
 
3
- def self.hi
4
- puts "Hola Everybody"
3
+ class HolaEverybody
4
+ def self.hi(language = "english")
5
+ translator = Translator.new(language)
6
+ translator.hi
5
7
  end
6
-
7
8
  end
@@ -0,0 +1,17 @@
1
+
2
+ class HolaEverybody
3
+ class Translator
4
+ def initialize(language)
5
+ @language = language
6
+ end
7
+
8
+ def hi
9
+ case @language
10
+ when "spanish"
11
+ "hola todos"
12
+ else
13
+ "hello everybody"
14
+ end
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_everybody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Jackson
@@ -9,14 +9,45 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2018-09-05 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: minitest
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10'
13
41
  description: A simple hello world gem
14
42
  email: kj31428@gmail.com
15
- executables: []
43
+ executables:
44
+ - hola_everybody
16
45
  extensions: []
17
46
  extra_rdoc_files: []
18
47
  files:
48
+ - bin/hola_everybody
19
49
  - lib/hola_everybody.rb
50
+ - lib/hola_everybody/translator.rb
20
51
  homepage: http://rubygems.org/gems/hola_everybody
21
52
  licenses:
22
53
  - MIT