hello_marshall 0.0.1

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,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 9724d9e4cdf5506ec4b1c7ccddde1b0cdb050922
4
+ data.tar.gz: 6d284f40be7ac2987537c997e6f0ab7cd00f7677
5
+ SHA512:
6
+ metadata.gz: f77874958341a450d23ac768eb1f1b3b4b83ff2f3aa2bdac7703ccad7926bf5c43bafdd2a1f9627cb966edef2ddbf7320bc6b67f3374e9f9fe5470714bf1cb53
7
+ data.tar.gz: 0a54bf57d3d11e4a9f6e3a1a4b139cd9037aec4b7ff395811c1ec08bf5d1e5a05daa69884f879b39afd1168bcd77e970311ee5ed66aed47b00cf53446fcc578e
@@ -0,0 +1,8 @@
1
+ require 'hola/translator.rb'
2
+
3
+ class Hola
4
+ def self.hello(language = 'english')
5
+ translator = Translator.new(language)
6
+ translator.hello
7
+ end
8
+ end
@@ -0,0 +1,15 @@
1
+ class Hola::Translator
2
+
3
+ def initialize(language)
4
+ @language = language
5
+ end
6
+
7
+ def hello
8
+ case @language
9
+ when 'spanish'
10
+ "Hola, marshall. persona tonta."
11
+ else
12
+ "hello, marshall. foolish human."
13
+ end
14
+ end
15
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hello_marshall
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Marshall Hattersley
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-06-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: a test hello world gem for me
14
+ email: mwhatters@gmail.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - lib/hello_marshall.rb
20
+ - lib/hola/translator.rb
21
+ homepage: http://rubygems.org/gems/hello_marshall
22
+ licenses:
23
+ - MIT
24
+ metadata: {}
25
+ post_install_message:
26
+ rdoc_options: []
27
+ require_paths:
28
+ - lib
29
+ required_ruby_version: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ required_rubygems_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ requirements: []
40
+ rubyforge_project:
41
+ rubygems_version: 2.2.2
42
+ signing_key:
43
+ specification_version: 4
44
+ summary: hello marshall!
45
+ test_files: []