goest 0.0.4 → 0.0.5

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.
Files changed (3) hide show
  1. data/goest.gemspec +2 -2
  2. data/lib/goest/translator.rb +15 -0
  3. metadata +2 -1
data/goest.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "goest"
5
- s.version = "0.0.4"
5
+ s.version = "0.0.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Thomas"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.description = "A gem that illustrates how to build a gem.Formated for RDocs"
11
11
  s.email = "thomas.goes@ verizon.com"
12
12
  s.extra_rdoc_files = ["lib/goest.rb"]
13
- s.files = ["Rakefile", "lib/goest.rb", "Manifest", "goest.gemspec"]
13
+ s.files = ["Rakefile", "lib/goest.rb", "lib/goest/translator.rb", "Manifest", "goest.gemspec"]
14
14
  s.homepage = ""
15
15
  s.rdoc_options = ["--line-numbers", "--title", "Goest", "--main", "README.md"]
16
16
  s.require_paths = ["lib"]
@@ -0,0 +1,15 @@
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
15
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -21,6 +21,7 @@ extra_rdoc_files:
21
21
  files:
22
22
  - Rakefile
23
23
  - lib/goest.rb
24
+ - lib/goest/translator.rb
24
25
  - Manifest
25
26
  - goest.gemspec
26
27
  - bin/goest