hola_kshramt 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/bin/hola_kshramt +4 -0
  2. data/lib/hola_kshramt.rb +5 -2
  3. metadata +4 -2
data/bin/hola_kshramt ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola_kshramt'
4
+ puts HolaKshramt.hi(ARGV[0])
data/lib/hola_kshramt.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  class HolaKshramt
2
- def self.hi
3
- puts "Hello world!"
2
+ require 'hola_kshramt/translator'
3
+
4
+ def self.hi(language = :english)
5
+ translator = Translator.new(language)
6
+ translator.hi
4
7
  end
5
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hola_kshramt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,11 +13,13 @@ date: 2012-06-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple hello world gem
15
15
  email:
16
- executables: []
16
+ executables:
17
+ - hola_kshramt
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - lib/hola_kshramt.rb
22
+ - bin/hola_kshramt
21
23
  homepage:
22
24
  licenses: []
23
25
  post_install_message: