hola_will3 0.0.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: a0485c739675fdfaa3822d68e2b43e7b7d0f93c4
4
+ data.tar.gz: 662e00975b900c8c7b12f238ba57f7bb7e61057f
5
+ SHA512:
6
+ metadata.gz: 6c196c363ac03737dc49fca05486b7d0f8e8860b971e730b10b41666af5d371f5a96a61da4e51ca41fa9c1a3db76099857d008ef92e2ad600e09d44b16b0f113
7
+ data.tar.gz: 806fcbc26dbef10be1438095193e48ac3dd9ae48632889a496102e89e25e824532b91f5f5866e4b0261a16e6f35d9adf1c65d84631589e4f7aa5c2858704c056
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_will3'
4
+ puts Hola.hi(ARGV[0])
@@ -0,0 +1,8 @@
1
+ class Hola
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ end
6
+ end
7
+
8
+ require 'hola_will3/translator'
@@ -0,0 +1,15 @@
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
15
+
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hola_will3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Will
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2010-10-10 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: will@example.org
15
+ executables:
16
+ - hola_will3
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - bin/hola_will3
21
+ - lib/hola_will3.rb
22
+ - lib/hola_will3/translator.rb
23
+ homepage: http://rubygems.org/gems/hola_will3
24
+ licenses:
25
+ - MIT
26
+ metadata: {}
27
+ post_install_message:
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '0'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubyforge_project:
43
+ rubygems_version: 2.4.6
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Hola!
47
+ test_files: []