xiaoXbao 9.5.5 → 9.5.6

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/Rakefile +8 -0
  2. data/bin/hola +4 -0
  3. data/lib/hola/translator.rb +17 -0
  4. metadata +6 -2
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ require 'rake/testtask'
2
+
3
+ Rake::TestTask.new do |t|
4
+ t.libs << 'test'
5
+ end
6
+
7
+ desc "Run tests"
8
+ task :default => :test
data/bin/hola ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'hola'
4
+ puts Hola.hi(ARGV[0])
@@ -0,0 +1,17 @@
1
+ class Hola::Translator
2
+ def initialize(language)
3
+ @language = language
4
+ end
5
+
6
+
7
+
8
+ def hi
9
+ puts "asdfads"
10
+ case @language
11
+ when "spanish"
12
+ "hola mundo"
13
+ else
14
+ "hello world"
15
+ end
16
+ end
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xiaoXbao
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.5.5
4
+ version: 9.5.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,11 +13,15 @@ date: 2012-10-20 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A simple hello world gem
15
15
  email: zhuoxiaolong@gmail.com
16
- executables: []
16
+ executables:
17
+ - hola
17
18
  extensions: []
18
19
  extra_rdoc_files: []
19
20
  files:
21
+ - Rakefile
20
22
  - lib/hola.rb
23
+ - lib/hola/translator.rb
24
+ - bin/hola
21
25
  homepage: http://rubygems.org/gems/hola
22
26
  licenses: []
23
27
  post_install_message: