hellomic 0.1.0
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 +7 -0
- data/Rakefile +8 -0
- data/bin/hola +4 -0
- data/lib/hola.rb +8 -0
- data/lib/hola/translator.rb +16 -0
- data/test/test_hola.rb +16 -0
- metadata +49 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4a26404052bde505d14a49317d0a2e918321bb48
|
4
|
+
data.tar.gz: 8c6a48bee77eb93a1c0585ac53b850bbbd223ad7
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: fe9e6c12966e78faaef622713c30cbc260c9b9df12dbf5aa3b48d97f0234c148fc2a47e97b7a7057c2709bf737641e6bf75b1179536f48944099d5f482112e96
|
7
|
+
data.tar.gz: 5e5b5ff83ccde544c92ee5a94f33e3df8a4cb8a9d4ef88e9e12733975246ae9e506f5579c22451bba0af7d586fe46df33f6768d5f0478083b05cd4d8aecfaf1c
|
data/Rakefile
ADDED
data/bin/hola
ADDED
data/lib/hola.rb
ADDED
data/test/test_hola.rb
ADDED
@@ -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,49 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hellomic
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Fan
|
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: hello@gmail.com
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- Rakefile
|
20
|
+
- lib/hola.rb
|
21
|
+
- lib/hola/translator.rb
|
22
|
+
- bin/hola
|
23
|
+
- test/test_hola.rb
|
24
|
+
homepage: http://rubygems.org/gems/hellomic
|
25
|
+
licenses:
|
26
|
+
- Hello,foo,bar
|
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
|
+
rubyforge_project:
|
44
|
+
rubygems_version: 2.0.14
|
45
|
+
signing_key:
|
46
|
+
specification_version: 3
|
47
|
+
summary: Hello, mic!
|
48
|
+
test_files:
|
49
|
+
- test/test_hola.rb
|