hbase-jruby 0.2.0-java → 0.2.1-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,10 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ 0.2.1
5
+ -----
6
+ - Fix: NameError even when appropriate CLASSPATH is set
7
+
4
8
  0.2.0
5
9
  -----
6
10
  - Deprecated `HBase::Table#close`. You don't need to close Table instances.
data/README.md CHANGED
@@ -56,7 +56,7 @@ table.delete(:rowkey9)
56
56
  git clone -b devel https://github.com/junegunn/hbase-jruby.git
57
57
  cd hbase-jruby
58
58
  rake build
59
- gem install pkg/hbase-jruby-0.2.0-java.gem
59
+ gem install pkg/hbase-jruby-0.2.1-java.gem
60
60
 
61
61
  ## Setting up
62
62
 
@@ -93,7 +93,7 @@ HBase.resolve_dependency! '0.94', :verbose => true
93
93
  HBase.resolve_dependency! '/path/to/my/pom.xml'
94
94
  HBase.resolve_dependency! '/path/to/my/pom.xml', :profile => 'trunk'
95
95
 
96
- # Resolve JAR files from local HBase installation
96
+ # Load JAR files from local HBase installation
97
97
  HBase.resolve_dependency! :local
98
98
  ```
99
99
 
@@ -35,7 +35,9 @@ class HBase
35
35
  # Connects to HBase
36
36
  # @param [Hash] config A key-value pairs to build HBaseConfiguration from
37
37
  def initialize config = {}
38
- unless defined?(Java::OrgApacheHadoopConf::Configuration)
38
+ begin
39
+ org.apache.hadoop.conf.Configuration
40
+ rescue NameError
39
41
  raise NameError.new(
40
42
  "Required Java classes not loaded. Set up CLASSPATH or try `HBase.resolve_dependency!`")
41
43
  end
@@ -1,5 +1,5 @@
1
1
  class HBase
2
2
  module JRuby
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: hbase-jruby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.0
5
+ version: 0.2.1
6
6
  platform: java
7
7
  authors:
8
8
  - Junegunn Choi
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-25 00:00:00.000000000 Z
12
+ date: 2013-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: test-unit