holadobo 0.0.0 → 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.
- data/bin/holadobo +4 -0
- data/lib/holadobo.rb +15 -3
- data/lib/holadobo/translator.rb +14 -0
- metadata +5 -2
data/bin/holadobo
ADDED
data/lib/holadobo.rb
CHANGED
@@ -1,5 +1,17 @@
|
|
1
1
|
class Holadobo
|
2
|
-
|
3
|
-
|
2
|
+
# Say hi to the world!
|
3
|
+
#
|
4
|
+
# Example:
|
5
|
+
# >> Holadobo.hi("spanish")
|
6
|
+
# => hola mundo
|
7
|
+
#
|
8
|
+
# Arguments:
|
9
|
+
# language: (String)
|
10
|
+
|
11
|
+
def self.hi(language = english)
|
12
|
+
translator = Translator.new(language.to_sym)
|
13
|
+
translator.hi
|
4
14
|
end
|
5
|
-
end
|
15
|
+
end
|
16
|
+
|
17
|
+
require 'holadobo/translator'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: holadobo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,11 +13,14 @@ date: 2012-12-05 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
14
14
|
description: Simple Hello World gem
|
15
15
|
email: dobri87@gmail.com
|
16
|
-
executables:
|
16
|
+
executables:
|
17
|
+
- holadobo
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
20
21
|
- lib/holadobo.rb
|
22
|
+
- lib/holadobo/translator.rb
|
23
|
+
- bin/holadobo
|
21
24
|
homepage: http://rubygems.org/gems/holadobo
|
22
25
|
licenses: []
|
23
26
|
post_install_message:
|