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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e68e9fdf0569df34130fd979ac0678b585df197
4
- data.tar.gz: 3b29a6bf7aa6f29231ad807a0f6c782a36b952d7
3
+ metadata.gz: 640c927548fcb2e455391da3b6932357f999a273
4
+ data.tar.gz: 85968fa8c6ae16107d25e2fe4fec1f6dac55e1e9
5
5
  SHA512:
6
- metadata.gz: be7dd862c3bedcedfb7d158158b1101996b540fa958a72de90ba2405d3c271e7a2f7c391880ed755bc0e204cf69ea52af9b80c3ce884a29fb6ccb7f6e3401fcd
7
- data.tar.gz: 3b82f24c0a49cf09a260128ccb205f56623ab013e350e45c87f56e59b685b2d082003607897bfd55532a4a36f8702fc4ac2e25a21f57a3e747994f4701d2440d
6
+ metadata.gz: b8f17f2f9fa1cff5903f27ee46c1f9bbd9a07bdc805174cbe870c9e8e5787bafbb71f6670599e94b1e0bf5b8256408e5337358a46993174fe4a0e79c87aaae67
7
+ data.tar.gz: 030dae463b4c16e57f4f6561ec9a42c216867d7bf00f2d026f7095e369bbd21e473104720233513efd143cd410b0dde798d5adbe019124af97400ed846164245
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
@@ -6,7 +6,7 @@ class Hola_Wazynski::Translator
6
6
  def hi
7
7
  case @language
8
8
  when "spanish"
9
- "hola mndo"
9
+ "hola mundo"
10
10
  else
11
11
  "hello world"
12
12
  end
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.2
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