gooddata-dss-jdbc 0.1.4

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 293ec9be237b5f4eb3cd44d7d1b3294c7cacf1e2
4
+ data.tar.gz: 402065130053836b4ff61a54aeac84362c4c20bc
5
+ SHA512:
6
+ metadata.gz: ba57863ad9c273a293a46db1347c10fa8738e7ce02776813719dd7591d53c3d25d79ad6e2c0df451c8f0836233adbf92562c9d06c1edd90da321c2e92f233152
7
+ data.tar.gz: c94bbcdb3b86c6cf093e23bc7c8275ed18107e9014f70b54bbe33e809fe1dab25333d3dcf6eb1cd4adff038439563bdd3167e1d8df233387e8bafe4f4eaedd12
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.2.6-SNAPSHOT'
4
+ VERSION = '0.1.4'
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,105 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gooddata-dss-jdbc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - Pavel Kolesnikov
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-01-06 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: multi_json
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.9'
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: '1.9'
25
+ prerelease: false
26
+ type: :development
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '2.14'
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
38
+ version: '2.14'
39
+ prerelease: false
40
+ type: :development
41
+ - !ruby/object:Gem::Dependency
42
+ name: pry
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - ~>
51
+ - !ruby/object:Gem::Version
52
+ version: '0.9'
53
+ prerelease: false
54
+ type: :development
55
+ - !ruby/object:Gem::Dependency
56
+ name: sequel
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '4.10'
62
+ requirement: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ~>
65
+ - !ruby/object:Gem::Version
66
+ version: '4.10'
67
+ prerelease: false
68
+ type: :development
69
+ description: Starting with DSS is as easy as require 'jdbc/dss'; Jdbc::DSS.load_driver. Install dss-sequel for a Sequelish wrapper
70
+ email: pavel@gooddata.com
71
+ executables: []
72
+ extensions: []
73
+ extra_rdoc_files:
74
+ - LICENSE
75
+ - README.rdoc
76
+ files:
77
+ - LICENSE
78
+ - README.rdoc
79
+ - lib/dss-jdbc-driver-2.2.6-SNAPSHOT.jar
80
+ - lib/jdbc/dss.rb
81
+ - lib/jdbc/dss/version.rb
82
+ homepage: http://github.com/gooddata/gooddata-dss-ruby
83
+ licenses: []
84
+ metadata: {}
85
+ post_install_message:
86
+ rdoc_options: []
87
+ require_paths:
88
+ - lib
89
+ required_ruby_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
95
+ requirements:
96
+ - - '>='
97
+ - !ruby/object:Gem::Version
98
+ version: '0'
99
+ requirements: []
100
+ rubyforge_project:
101
+ rubygems_version: 2.2.2
102
+ signing_key:
103
+ specification_version: 4
104
+ summary: A minimal Ruby wrapper of the GoodData DSS JDBC driver
105
+ test_files: []