jaimaharashtra 0.0.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 +15 -0
- data/Rakefile +8 -0
- data/bin/jaimaharashtra +4 -0
- data/lib/jaimaharashtra.rb +8 -0
- data/lib/jaimaharashtra/translator.rb +16 -0
- data/test/test_jaimaharashtra.rb +16 -0
- metadata +48 -0
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NDYzOWQ1MTc2ZGVmNTEzM2VkZDRjMTJlMGUyMGRjMTQ0MTQxMzY5Mw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NTEyZGM5YWU4Nzc5YzU2MTQyZWJkNzc2NWY5Mjk3Yjc5ZjM2YTllMg==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZWFkNzIyOWRiZjYzODBkZTc0YjQ0NWUzNmZjNzhiNjlmMmJkOGM0YWE3YTQy
|
10
|
+
NGZjMzNmMGY0OTg5MzJkOTI5MTgxNjVmYzg1NzQ4MjhjZDY4MTZkZTUyMGYy
|
11
|
+
MDE0ZWUyMjk5YTQ5MmMxYzJmNWZlNmYwNDUyMzdhZWViMDBjYmU=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YzVlM2U4ODZkZjhmY2RmMDVkZTcwMGQwNjUxYzg2ODJhMThlMGQyZWUzOGFh
|
14
|
+
ZGIxZGI0MjQ5OTk1OWMxMTAyZjdiOTU3MzEzODYxZmI0NjllMDAxNWZkMzQx
|
15
|
+
NWMxNGIxYzBmOWI2YTdkYmQ2NGQwNTAzODg4YmY0NDlkMjNhMDk=
|
data/Rakefile
ADDED
data/bin/jaimaharashtra
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
class JaiMaharashtra::Translator
|
2
|
+
def initialize(language = "english")
|
3
|
+
@language = language
|
4
|
+
end
|
5
|
+
|
6
|
+
def hi
|
7
|
+
case @language
|
8
|
+
when "marathi"
|
9
|
+
"Jai Maharashtra"
|
10
|
+
when "hindi"
|
11
|
+
"Maharashtra Jindabad"
|
12
|
+
else
|
13
|
+
"hello Maharashtra"
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'test/unit'
|
2
|
+
require 'jaimaharashtra'
|
3
|
+
|
4
|
+
class JaiMaharashtraTest < Test::Unit::TestCase
|
5
|
+
def test_english_hello
|
6
|
+
assert_equal "hello Maharashtra", JaiMaharashtra.hi("english")
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_any_hello
|
10
|
+
assert_equal "hello Maharashtra", JaiMaharashtra.hi("ruby")
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_marathi_hello
|
14
|
+
assert_equal "Jai Maharashtra", JaiMaharashtra.hi("marathi")
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jaimaharashtra
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Shashikant Jagtap
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: A simple maharshtra gem
|
14
|
+
email: shashikant.jagtap@aol.co.uk
|
15
|
+
executables: []
|
16
|
+
extensions: []
|
17
|
+
extra_rdoc_files: []
|
18
|
+
files:
|
19
|
+
- Rakefile
|
20
|
+
- lib/jaimaharashtra.rb
|
21
|
+
- lib/jaimaharashtra/translator.rb
|
22
|
+
- bin/jaimaharashtra
|
23
|
+
- test/test_jaimaharashtra.rb
|
24
|
+
homepage: http://rubygems.org/gems/jaimaharashtra
|
25
|
+
licenses: []
|
26
|
+
metadata: {}
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ! '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 2.1.4
|
44
|
+
signing_key:
|
45
|
+
specification_version: 3
|
46
|
+
summary: jaimaharashtra!
|
47
|
+
test_files:
|
48
|
+
- test/test_jaimaharashtra.rb
|