gim 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 (4) hide show
  1. data/bin/gim +4 -0
  2. data/lib/gim.rb +4 -2
  3. data/lib/gim/translator.rb +9 -0
  4. metadata +5 -2
data/bin/gim ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'gim'
4
+ puts Gim.hi(ARGV[0])
data/lib/gim.rb CHANGED
@@ -1,5 +1,7 @@
1
+ require "gim/translator"
2
+
1
3
  class Gim
2
- def self.hi
3
- puts "Hello world!"
4
+ def self.hi(lang = "english")
5
+ puts Translator.hi(lang)
4
6
  end
5
7
  end
@@ -0,0 +1,9 @@
1
+ class Translator
2
+ def self.hi(lang)
3
+ if lang == "english"
4
+ "Hello"
5
+ else
6
+ "Hola"
7
+ end
8
+ end
9
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,11 +13,14 @@ date: 2012-11-28 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple hello world gem
15
15
  email: ykas.gg@gmail.com
16
- executables: []
16
+ executables:
17
+ - gim
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - lib/gim.rb
22
+ - lib/gim/translator.rb
23
+ - bin/gim
21
24
  homepage: http://rubygems.org/gems/gim
22
25
  licenses: []
23
26
  post_install_message: