hello_milind 0.0.0 → 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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/hello_milind.rb +25 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 89c531d4a6d335b3a4e6dfcde567ceb351be357b
4
- data.tar.gz: f0d9606e3c8cd06e5e22fd6467729ae094beeff3
3
+ metadata.gz: 8693170fa63fe32252ce623587cc5db42d77bfb8
4
+ data.tar.gz: 8d100ea5859693eff78ada76e84b8db3e61a25dc
5
5
  SHA512:
6
- metadata.gz: 3bf39d6f5110b615f6b1b7316730a3fcff46fe9ab3f02cf33949bcfac9a40ec2c7e6448340a72453c66428a62e0564e3e6578b5a3c96ad12860e1d113bf875f8
7
- data.tar.gz: 89dde9be040b226a4c9b5bc975fec58435bfd74b14046a30246eecf786fa076639f0e9ed40efb1e3195a6f04fb653d067d53bcd29eb35195b49ec34934fbdc9e
6
+ metadata.gz: a1f30092cecd312985d30caa868fd45a5e8a089a82f1a730b90ebe729011d50383e4bcfd71c0c59e9c72b13870cae0a112a940f8827fc5a399c83da32a14a153
7
+ data.tar.gz: 6e7faeb9bc0bdb63a3479b9473724c44b77dc954ef9499c9606956a7941bf36c9bdbc6950cc79d752b4e6c2786e21a252f8ca6214f8a5ee85fdcfd5f6ae729e4
@@ -1,5 +1,28 @@
1
1
  class HelloMilind
2
- def self.hi
3
- puts "Hi All!!! This is my first Gem!"
2
+ def self.hi(language = "english")
3
+ translator = Translator.new(language)
4
+ translator.hi
5
+ #puts "Hi All!!! This is my first Gem!"
6
+ end
7
+ end
8
+
9
+ class HelloMilind::Translator
10
+ def initialize(language)
11
+ @language = language
12
+ end
13
+
14
+ def hi
15
+ case @language
16
+ when "spanish"
17
+ "¡Hola a todos! Milind aquí! Esta es mi primera joya!"
18
+ when "hindi"
19
+ "नमस्ते! यहाँ मिलिंद! यह मेरा पहला रत्न है!"
20
+ when "japanese"
21
+ "こんにちは、みんな!ここに本部Milind!これが私の最初の逸品です!"
22
+ when "dutch"
23
+ "Dag Allemaal! Milind hier! Dit is mijn eerste juweeltje!"
24
+ else
25
+ "Hi All! Milind Here! This is my first gem!"
26
+ end
4
27
  end
5
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hello_milind
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Milind
@@ -10,7 +10,7 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-10-01 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A simple hello All gem
13
+ description: My first gem with language convertor
14
14
  email: 66.milind@gmail.com
15
15
  executables: []
16
16
  extensions: []
@@ -40,5 +40,5 @@ rubyforge_project:
40
40
  rubygems_version: 2.4.8
41
41
  signing_key:
42
42
  specification_version: 4
43
- summary: Hey All! How are you!
43
+ summary: Hey All! This is my first gem with different languages!
44
44
  test_files: []