hola_mhurta 0.0.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 4f94a58f2a561310e255135f27db263f7870ef29d2c9fa018e54e4cc53fef43a
4
+ data.tar.gz: 15611af53674b8256f216aa309d94f7409b9ce83822890fb70fe8608b91226a5
5
+ SHA512:
6
+ metadata.gz: 063e28d0fa017a845d11593eff65118fa8529cb04ed9d8dba7355210d7d86ee20621b20daee4c5e78cbb49ba03b30685c5866e9669604f3097123989bf6299cd
7
+ data.tar.gz: f12315b9cda44aa6cabe7888f775fa8743c987744b4f1adedfa8d913225cef3c6e0c1c1f98c0ef91f37e15209846a1c40519d4464415f81bd01fc9702f54cdfc
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/bin/hola_mhurta ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_mhurta'
4
+ puts HolaMhurta.hi(ARGV[0])
@@ -0,0 +1,16 @@
1
+ class Hola::Translator
2
+ def initialize(language = "english")
3
+ @language = language
4
+ end
5
+
6
+ def hi
7
+ case @language
8
+ when "spanish"
9
+ "hola mundo"
10
+ when "korean"
11
+ "anyoung ha se yo"
12
+ else
13
+ "hello world"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,5 @@
1
+ module HolaMhurta
2
+ VERSION = "0.0.1"
3
+ end
4
+
5
+
@@ -0,0 +1,8 @@
1
+ require 'hola_mhurta/version'
2
+
3
+ module HolaMhurta
4
+ def self.hi
5
+ puts "Hello world!"
6
+ end
7
+ end
8
+
@@ -0,0 +1,16 @@
1
+ require 'test/unit'
2
+ require 'hola'
3
+
4
+ class HolaTest < Test::Unit::TestCase
5
+ def test_english_hello
6
+ assert_equal "hello world", Hola.hi("english")
7
+ end
8
+
9
+ def test_any_hello
10
+ assert_equal "hello world", Hola.hi("ruby")
11
+ end
12
+
13
+ def test_spanish_hello
14
+ assert_equal "hola mundo", Hola.hi("spanish")
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,48 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: hola_mhurta
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Marj Hurtado
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2010-04-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: A simple hello world gem
14
+ email: marjorie.hurtado@basis.com
15
+ executables: []
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - Rakefile
20
+ - bin/hola_mhurta
21
+ - lib/hola_mhurta.rb
22
+ - lib/hola_mhurta/translator.rb
23
+ - lib/hola_mhurta/version.rb
24
+ - test/test_hola_mhurta.rb
25
+ homepage:
26
+ licenses: []
27
+ metadata: {}
28
+ post_install_message:
29
+ rdoc_options: []
30
+ require_paths:
31
+ - lib
32
+ required_ruby_version: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: '0'
37
+ required_rubygems_version: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ version: '0'
42
+ requirements: []
43
+ rubygems_version: 3.3.27
44
+ signing_key:
45
+ specification_version: 3
46
+ summary: Hola!
47
+ test_files:
48
+ - test/test_hola_mhurta.rb