yifu 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. data/bin/yifu +4 -0
  2. data/lib/yifu.rb +6 -3
  3. metadata +5 -3
data/bin/yifu ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'yifu'
4
+ puts Yifu.say_hi(ARGV[0])
data/lib/yifu.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  class Yifu
2
- def self.say_hi
3
- puts "Hello world!"
2
+ def self.say_hi(language = :english)
3
+ translator = Translator.new(language)
4
+ translator.hi
4
5
  end
5
- end
6
+ end
7
+
8
+ require 'yifu/translator'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yifu
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:
@@ -9,15 +9,17 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-06 00:00:00.000000000 Z
12
+ date: 2013-04-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple hello world gem
15
15
  email: yvesfu@gmail.com
16
- executables: []
16
+ executables:
17
+ - yifu
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
20
21
  - lib/yifu.rb
22
+ - bin/yifu
21
23
  homepage: http://rubygems.org/gems/yifu
22
24
  licenses: []
23
25
  post_install_message: