simplytech_hola 0.0.3

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 ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ NjYxMmI4MjI5NTc2MTcxMGI4M2U2ZmM3MDA1NGM4YmQ2ZjUxNTIyZA==
5
+ data.tar.gz: !binary |-
6
+ MDdlYzhhMWNhMTJmNjhjODRiNGU3MzY4MmI1ODcxNDU2ZGQ4MGY1ZQ==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ YjgzZjI2ZTAzODQ5YjUzZmVmZGZlNTA4MjU2OTNmYjU0MzFlMTlhMTNhMGIz
10
+ ZmM5YjYzNWRlZWRhMzhmYzg1ODEyZTkzMTBiYzcwMjNkY2UwY2QzYTY0M2U5
11
+ NmY1YmFhOTY5M2VjYWVkOTRhYjk5MDIwNmI3OTBkMTRkOWFhMDY=
12
+ data.tar.gz: !binary |-
13
+ MGU3YzdmMTE5MDI1YjQ4NjdiZGEyYmE4NzBjYjkzZWMzNzE2NTZlYWI3ZWI0
14
+ YjBlZDIwMDA1YTI0ODdiMjJkODE0ZWFiMGMyMWIwOTM0NjcxZmRlN2EzNDQz
15
+ YTBkMWE3ZmRkZTMxY2NiNTgyNDkwMWM0NzEzYTY4ZDlkMDlhZTI=
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'simplytech_hola'
4
+ puts Hola.hi(ARGV[0])
@@ -0,0 +1,19 @@
1
+ # The main Simplytech Hola driver
2
+
3
+ class Hola
4
+ # Say hi to the world!
5
+ #
6
+ # Example:
7
+ # >> Hola.hi("spanish")
8
+ # => Hola mundo!!!!!
9
+ #
10
+ # Arguments:
11
+ # language: (String)
12
+
13
+ def self.hi(language = "english")
14
+ translator = Translator.new(language)
15
+ translator.hi
16
+ end
17
+ end
18
+
19
+ require 'simplytech_hola/translator'
@@ -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
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: simplytech_hola
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - Alain Achkar
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-07-08 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: aa@simplytech.com
15
+ executables:
16
+ - simplytech_hola
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/simplytech_hola.rb
21
+ - lib/simplytech_hola/translator.rb
22
+ - !binary |-
23
+ YmluL3NpbXBseXRlY2hfaG9sYQ==
24
+ homepage: http://rubygems.org/gems/simplytech_hola
25
+ licenses: []
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.0.3
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: hola
47
+ test_files: []