hola_dylang 0.0.1 → 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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +8 -0
  3. data/test/test_hola.rb +19 -0
  4. metadata +3 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fb457ce2ea7063ca50a4492bbdabc4f2b86a97b
4
- data.tar.gz: 9c17d7c22b8c080115678091ada6cee4f8b8e218
3
+ metadata.gz: 0519b6cb3712a189fdd8fa30205bbd2401d30d29
4
+ data.tar.gz: 937da7f1e6e48ebca2b4cf24cfef8f98b438e8f6
5
5
  SHA512:
6
- metadata.gz: 69fd40bc4fb88c5a160b3dd8ca672b8f3c2cdc13139279d536c9c4522b5ecc663df4eb4ce482afd4aa50cd2e81e7161b93b2c9742143ad58f73ab850a71a6a78
7
- data.tar.gz: 81e7ffbb5ce82ce6cc5c128fb13afe4b542d543e3d2d033fdd5c22a0e7473508a8a049cdf94415ad1da0f8741317cc48063a3bd32cb0e80c7d275e77be46f3d0
6
+ metadata.gz: b8b6c5b9757bb0646cccd9c8accc35d6584ceda2cfbea0f5c4c4eda4f95d9f52f1ff3a899f21709764712c42224723e8d9df354d58a98d6d46371eb4b88a23cf
7
+ data.tar.gz: 70ee3b3c0ac5cca7945dcef93059692a06c9fe5ae0d787dad1e37a49fcce76ee051bf1ab554f2b2e8df9d2cde9f8eca1112f81d879c4926155c0cd9563bac254
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
data/test/test_hola.rb ADDED
@@ -0,0 +1,19 @@
1
+ require 'test/unit'
2
+ require 'hola'
3
+
4
+ class HolaTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "Hello World",
7
+ Hola.hi("English")
8
+ end
9
+
10
+ def test_any_hello
11
+ assert_equal "Hello World",
12
+ Hola.hi("Greek")
13
+ end
14
+
15
+ def test_spanish_hello
16
+ assert_equal "Hola Mundo",
17
+ Hola.hi("Spanish")
18
+ end
19
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_dylang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Grant
@@ -19,6 +19,8 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - lib/hola.rb
21
21
  - lib/hola/translator.rb
22
+ - Rakefile
23
+ - test/test_hola.rb
22
24
  - bin/hola
23
25
  homepage: http://rubygems.org/gems/hola
24
26
  licenses: