gooddata-dss-jdbc 0.1.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 09f9a2a3a77ff6e4ff8dfce91499626587614ef1
4
+ data.tar.gz: 6c6043f170e2a91a1fb0080f4633d8fb481ed5e2
5
+ SHA512:
6
+ metadata.gz: 5103e7fd62e96ff215d1c06fa9d5d875b1eb43aaeb417068cd9aa1a4820d72b0754011510a384a5cd9fa9a782a8384aebb02b5d832befa0dc040521332bad748
7
+ data.tar.gz: 953aaf71ceb97a94fe32710299e0f6f02615e8f767c2859e0e73ef27a693c6041af4cfe9cf972b32db8e215a32e893f6f4df2be3fd5a5bf3c6f7fbb3a6dea151
data/LICENSE ADDED
@@ -0,0 +1,24 @@
1
+ BSD License
2
+ Copyright (c) 2013, GoodData Corporation
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are met:
6
+ * Redistributions of source code must retain the above copyright notice,
7
+ this list of conditions and the following disclaimer.
8
+ * Redistributions in binary form must reproduce the above copyright notice,
9
+ this list of conditions and the following disclaimer in the documentation
10
+ and/or other materials provided with the distribution.
11
+ * Neither the name of GoodData Corporation nor the names of its contributors
12
+ may be used to endorse or promote products derived from this software
13
+ without specific prior written permission.
14
+
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18
+ ARE DISCLAIMED. IN NO EVENT SHALL GOODDATA CORPORATION BE LIABLE FOR ANY
19
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
22
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
data/README.rdoc ADDED
@@ -0,0 +1,13 @@
1
+ = GoodData DSS JDBC Driver
2
+
3
+ === Usage
4
+
5
+ To make the driver accessible to JDBC code running in JRuby:
6
+
7
+ require 'jdbc/dss'
8
+ Jdbc::DSS.load_driver
9
+
10
+
11
+ == Copyright
12
+
13
+ Copyright (c) 2014 GoodData Corporation. See LICENSE for details.
@@ -0,0 +1,6 @@
1
+ module Jdbc
2
+ module DSS
3
+ DRIVER_VERSION = '2.1.2-SNAPSHOT'
4
+ VERSION = '0.1.2'
5
+ end
6
+ end
data/lib/jdbc/dss.rb ADDED
@@ -0,0 +1,26 @@
1
+ warn "Jdbc-DSS is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
2
+ require 'jdbc/dss/version'
3
+
4
+ module Jdbc
5
+ module DSS
6
+
7
+ def self.driver_jar
8
+ "dss-jdbc-driver-#{DRIVER_VERSION}.jar"
9
+ end
10
+
11
+ def self.load_driver(method = :load)
12
+ send method, driver_jar
13
+ end
14
+
15
+ def self.driver_name
16
+ 'com.gooddata.dss.jdbc.driver.DssDriver'
17
+ end
18
+
19
+ if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
20
+ ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
21
+ Java::JavaLang::Boolean.get_boolean("jdbc.dss.autoload") )
22
+ warn "autoloading JDBC driver on require 'jdbc/dss'" if $VERBOSE
23
+ load_driver :require
24
+ end
25
+ end
26
+ end
metadata ADDED
@@ -0,0 +1,51 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gooddata-dss-jdbc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.2
5
+ platform: java
6
+ authors:
7
+ - Pavel Kolesnikov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-06-09 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: Starting with DSS is as easy as require 'jdbc/dss'; Jdbc::DSS.load_driver.
14
+ Install dss-sequel for a Sequelish wrapper
15
+ email: pavel@gooddata.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files:
19
+ - LICENSE
20
+ - README.rdoc
21
+ files:
22
+ - LICENSE
23
+ - README.rdoc
24
+ - lib/dss-jdbc-driver-2.1.2-SNAPSHOT.jar
25
+ - lib/jdbc/dss.rb
26
+ - lib/jdbc/dss/version.rb
27
+ homepage: http://github.com/gooddata/gooddata-dss-ruby
28
+ licenses:
29
+ - BSD
30
+ metadata: {}
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - '>='
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
41
+ requirements:
42
+ - - '>='
43
+ - !ruby/object:Gem::Version
44
+ version: '0'
45
+ requirements: []
46
+ rubyforge_project:
47
+ rubygems_version: 2.2.2
48
+ signing_key:
49
+ specification_version: 4
50
+ summary: A minimal Ruby wrapper of the GoodData DSS JDBC driver
51
+ test_files: []