hola_ender 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/lib/hola_ender.rb CHANGED
@@ -1,4 +1,4 @@
1
- class Hola_Ender
1
+ class HolaEnder
2
2
  def self.hi(language = "english")
3
3
  translator = Translator.new(language)
4
4
  translator.hi
@@ -1,4 +1,4 @@
1
- class Hola_Ender::Translator
1
+ class HolaEnder::Translator
2
2
  def initialize(language)
3
3
  @language = language
4
4
  end
@@ -0,0 +1,18 @@
1
+ require 'hola_ender'
2
+
3
+ class HolaEnderTest < Minitest::Unit::TestCase
4
+ def test_english_hello
5
+ assert_equal "hello world",
6
+ HolaEnder.hi("english")
7
+ end
8
+
9
+ def test_any_hello
10
+ assert_equal "hello world",
11
+ HolaEnder.hi("ruby")
12
+ end
13
+
14
+ def test_spanish_hello
15
+ assert_equal "hola mundo",
16
+ HolaEnder.hi("spanish")
17
+ end
18
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_ender
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Anuta
@@ -17,8 +17,21 @@ cert_chain: []
17
17
 
18
18
  date: 2016-06-29 00:00:00 -07:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: minitest
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :development
34
+ version_requirements: *id001
22
35
  description: A simple hello world gem to test ruby gems
23
36
  email: qwertydraw@gmail.com
24
37
  executables: []
@@ -30,11 +43,12 @@ extra_rdoc_files: []
30
43
  files:
31
44
  - lib/hola_ender.rb
32
45
  - lib/hola_ender/translator.rb
46
+ - test/test_hola_ender.rb
33
47
  has_rdoc: true
34
48
  homepage: http://rubygems.org/gems/hola_ender
35
49
  licenses:
36
50
  - MIT
37
- post_install_message:
51
+ post_install_message: I don't know why you just installed something I'm using for testing... Thanks?
38
52
  rdoc_options: []
39
53
 
40
54
  require_paths: