sishen-hbase-ruby 0.2.5 → 0.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  require 'hoe'
3
3
 
4
- Hoe.new('hbase-ruby', '0.1') do |p|
4
+ Hoe.new('hbase-ruby', '0.2.6') do |p|
5
5
  p.rubyforge_name = 'hbase-ruby'
6
6
  p.author = 'Ye Dingding'
7
7
  p.email = 'yedingding@gmail.com'
data/hbase-ruby.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{hbase-ruby}
3
- s.version = "0.2.5"
3
+ s.version = "0.2.6"
4
4
 
5
5
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
6
6
  s.authors = ["Ye Dingding"]
@@ -22,14 +22,14 @@ module HBase
22
22
  end
23
23
  end
24
24
 
25
- def create_row(table_name, name, timestamp = nil, *args)
25
+ def create_row(table_name, name, timestamp = nil, columns = nil)
26
26
  begin
27
27
  request = Request::RowRequest.new(table_name, name, timestamp)
28
28
  data = []
29
- if args.instance_of? Array
30
- data = args
31
- elsif args.instance_of? Hash
32
- data = [args]
29
+ if columns.instance_of? Array
30
+ data = columns
31
+ elsif columns.instance_of? Hash
32
+ data = [columns]
33
33
  else
34
34
  raise StandardError, "Only Array or Hash data accepted"
35
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sishen-hbase-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ye Dingding