hola_wazynski 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Rakefile +8 -0
- data/lib/hola_wazynski/translator.rb +1 -1
- data/lib/hola_wazynski.rb +11 -0
- data/test/test_hola_wazynski.rb +21 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 640c927548fcb2e455391da3b6932357f999a273
|
4
|
+
data.tar.gz: 85968fa8c6ae16107d25e2fe4fec1f6dac55e1e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b8f17f2f9fa1cff5903f27ee46c1f9bbd9a07bdc805174cbe870c9e8e5787bafbb71f6670599e94b1e0bf5b8256408e5337358a46993174fe4a0e79c87aaae67
|
7
|
+
data.tar.gz: 030dae463b4c16e57f4f6561ec9a42c216867d7bf00f2d026f7095e369bbd21e473104720233513efd143cd410b0dde798d5adbe019124af97400ed846164245
|
data/Rakefile
ADDED
data/lib/hola_wazynski.rb
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
+
# The main Hola driver
|
1
2
|
class Hola_Wazynski
|
3
|
+
|
4
|
+
# Say hi to the world!
|
5
|
+
#
|
6
|
+
# Example:
|
7
|
+
# >> Hola.hi("spanish")
|
8
|
+
# => hola mundo
|
9
|
+
#
|
10
|
+
# Arguments:
|
11
|
+
# language: (String)
|
12
|
+
|
2
13
|
def self.hi(language = "english")
|
3
14
|
translator = Translator.new(language)
|
4
15
|
translator.hi
|
@@ -0,0 +1,21 @@
|
|
1
|
+
require 'minitest/autorun'
|
2
|
+
require 'hola_wazynski'
|
3
|
+
|
4
|
+
class HollaWazynskiTest < MiniTest::Test
|
5
|
+
def test_english_hello
|
6
|
+
assert_equal "hello world",
|
7
|
+
Hola_Wazynski.hi("english")
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_any_hello
|
11
|
+
assert_equal "hello world",
|
12
|
+
Hola_Wazynski.hi("english")
|
13
|
+
end
|
14
|
+
|
15
|
+
def test_spanish_hello
|
16
|
+
assert_equal "hola mundo",
|
17
|
+
Hola_Wazynski.hi("spanish")
|
18
|
+
end
|
19
|
+
|
20
|
+
|
21
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hola_wazynski
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Skarbek-Wazynski
|
@@ -13,14 +13,15 @@ date: 2015-03-04 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
14
14
|
description: A simple hello world gem
|
15
15
|
email: wazynski@gmail.com
|
16
|
-
executables:
|
17
|
-
- hola_wazynski
|
16
|
+
executables: []
|
18
17
|
extensions: []
|
19
18
|
extra_rdoc_files: []
|
20
19
|
files:
|
20
|
+
- Rakefile
|
21
21
|
- bin/hola_wazynski
|
22
22
|
- lib/hola_wazynski.rb
|
23
23
|
- lib/hola_wazynski/translator.rb
|
24
|
+
- test/test_hola_wazynski.rb
|
24
25
|
homepage: http://rubygems.org/gems/hola_wazynski
|
25
26
|
licenses:
|
26
27
|
- MIT
|
@@ -45,4 +46,5 @@ rubygems_version: 2.2.2
|
|
45
46
|
signing_key:
|
46
47
|
specification_version: 4
|
47
48
|
summary: Hola!
|
48
|
-
test_files:
|
49
|
+
test_files:
|
50
|
+
- test/test_hola_wazynski.rb
|