sishen-hbase-ruby 0.4.5 → 0.4.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('sishen-hbase-ruby', '0.4.5') do |p|
4
+ Hoe.new('sishen-hbase-ruby', '0.4.6') do |p|
5
5
  p.rubyforge_name = 'sishen-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.4.5"
3
+ s.version = "0.4.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"]
@@ -14,7 +14,7 @@ module HBase
14
14
 
15
15
  def show(columns = nil, version = nil)
16
16
  if columns
17
- @path << pack_params(columns)
17
+ @path << "?#{pack_params(columns)}"
18
18
  @path << "&version=#{version}" if version
19
19
  end
20
20
  @path
@@ -11,14 +11,7 @@ module HBase
11
11
 
12
12
  def open(columns, start_row = nil, end_row = nil, timestamp = nil)
13
13
  search = []
14
- if columns.is_a? String
15
- search << "column=#{columns}"
16
- elsif columns.is_a? Array
17
- search << columns.collect { |col| "column=#{col}" }.join("&")
18
- else
19
- raise StandardError, "Only string or array type allowed for columns attr."
20
- end
21
-
14
+ search << pack_params(columns)
22
15
  search << "start_row=#{CGI.escape(start_row)}" if start_row
23
16
  search << "end_row=#{CGI.escape(end_row)}" if end_row
24
17
  search << "timestamp=#{CGI.escape(timestamp)}" if timestamp
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.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ye Dingding