wrichman 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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 4aaee9e44821e3c6526915530a38f6bb7396720d
4
+ data.tar.gz: f3c7deb572d2b82a33c075283a543e7899e9aa49
5
+ SHA512:
6
+ metadata.gz: 92a943aebaf8bdefb1ff8eadb0622c06de96396c043173bd5df72887eab50a4bc43242bd518ad64047a25916f1048c6d5b8360b799d1d2dd5629fbc4d92cf03d
7
+ data.tar.gz: fbf207ddf43e2e2fb5190530aa4a5b141cfbfe6a139f845fa43f4fcfd6f19843ff674276f0e3174790e0e57f4c9aa497ebc53498b36ffeee31fbac74a6cbae62
data/bin/wrichman ADDED
@@ -0,0 +1,4 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ require 'wrichman'
4
+ puts Hola.hi(ARGV[0])
@@ -0,0 +1,14 @@
1
+ class 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/wrichman.rb ADDED
@@ -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_relative 'wrichman/translator'
metadata ADDED
@@ -0,0 +1,47 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wrichman
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Will Richman
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-09-21 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: will@bitmakerlabs.com
15
+ executables:
16
+ - wrichman
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/wrichman.rb
21
+ - lib/wrichman/translator.rb
22
+ - bin/wrichman
23
+ homepage: http://rubygems.org/gems/hola
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.0.5
44
+ signing_key:
45
+ specification_version: 4
46
+ summary: Hola!
47
+ test_files: []