hola_ali 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +8 -0
  3. data/test/test_hola_ali.rb +20 -0
  4. metadata +3 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- N2U2MzkyM2MyODg2ZTJiZjk2NzBhZjdhNmJlZDhhYWI1ZjE3ZDJkNw==
4
+ NGNjZDk3YWI4NGM4NzkzNDM5YzI3MzNjM2RhNTUyNmY0OGQ5NjBhNQ==
5
5
  data.tar.gz: !binary |-
6
- NDZmMDdlN2JhN2Y2YjRkMmY5ZTg5NGRkMzYwMzY1ZjIzNWFiNGM4Mg==
6
+ YjcxNWVmNDQzYzIxMGNjZGExNmI4NzZhMjZiODQ0NTg2ZTE0OGVkNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWFkZDhiZjBhYmIxN2JmNDUzMzk1MjFjYWUyNTFiNTdlMjkzMjc4ZGNlNjNi
10
- ZDY4ZmUzMGVhOTM1NWZhN2U0MWU0MGFjNzdmNzcyOTc3NmMyNGVjNmU0YTQ5
11
- NjIyMDMwODM1YWQyNGU5ZDcwZDEyYzIxYTQxMTdjMjU5NTcxOTM=
9
+ ZmY2NzlkOTg0YjA2MTA1MmEyNWEzYzA2ZTkxZGNmNjZiOTkwNzNjNWJiYTE0
10
+ MGYwZDNmMTEwMTlkM2I4ZmQwOTA5Y2Y4OGVhYWU4MzQ5ZDczNTQ3YzcxMTQ4
11
+ ZjYwOWYxODMxYjdiMDU3ZmViOThlOGM5ZDMxZjk1YmM5YjY1YWM=
12
12
  data.tar.gz: !binary |-
13
- ODhhYmJiZTMwYzRiNTQ3YmNjMDY2Y2U3MjYxMzY5ZWFhMGRlN2U5NzVjOTFl
14
- NGUzZDQ4ZDhkMDgzMGY3Njc4ZDQxYjM1YzZjZTM5OTNmOThjNDgxNDhkYTJk
15
- MmIyMjU3MGZkNTg4ZjZlNDliYzVlYThlNTU0ZjYxODk5NTQyMmU=
13
+ YWVjMDJhZTZlNDc0MTM1N2NiOTQzM2M2ODAzM2U0NjQ1ZmE5N2VmOGVhNmQ3
14
+ YmFhMmE4ZDUyYTNhZjlkMmZlNGJmY2VkZDQ3NWM3NGM2Yzg4YTY2MjFiN2Jk
15
+ ZDdjZjAwZWZkZDJmMDAzY2Y1ZTAwZDQ0N2UwYmIyNmI2YTA0MGI=
@@ -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
@@ -0,0 +1,20 @@
1
+ require 'hola_ali'
2
+ require 'minitest'
3
+ require 'minitest/autorun'
4
+
5
+ class HolaAliTest < Minitest::Test
6
+ def test_english_hello
7
+ assert_equal "hello world",
8
+ HolaAli.hi_ali("english")
9
+ end
10
+
11
+ def test_any_hello
12
+ assert_equal "hello world",
13
+ HolaAli.hi_ali("ruby")
14
+ end
15
+
16
+ def test_spanish_hello
17
+ assert_equal "hola mundo",
18
+ HolaAli.hi_ali("spanish")
19
+ end
20
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_ali
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ali Osm
@@ -17,9 +17,11 @@ executables:
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - Rakefile
20
21
  - bin/hola_ali
21
22
  - lib/hola_ali.rb
22
23
  - lib/hola_ali/translator.rb
24
+ - test/test_hola_ali.rb
23
25
  homepage: https://rubygems.org/gems/hola_ali
24
26
  licenses:
25
27
  - MIT