olap4r-mondrian 0.1.0

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.
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "http://rubygems.org"
2
+
3
+ group :development do
4
+ gem "bundler", "~> 1.1.0"
5
+ gem "jeweler", "~> 1.8.4"
6
+ end
@@ -0,0 +1,22 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ git (1.2.5)
5
+ jeweler (1.8.4)
6
+ bundler (~> 1.0)
7
+ git (>= 1.2.5)
8
+ rake
9
+ rdoc
10
+ json (1.7.3)
11
+ json (1.7.3-java)
12
+ rake (0.9.2.2)
13
+ rdoc (3.12)
14
+ json (~> 1.4)
15
+
16
+ PLATFORMS
17
+ java
18
+ ruby
19
+
20
+ DEPENDENCIES
21
+ bundler (~> 1.1.0)
22
+ jeweler (~> 1.8.4)
data/LICENSE ADDED
@@ -0,0 +1,198 @@
1
+ Eclipse Public License - v 1.0
2
+
3
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS ECLIPSE PUBLIC
4
+ LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THE PROGRAM
5
+ CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
6
+
7
+ 1. DEFINITIONS
8
+
9
+ "Contribution" means:
10
+
11
+ a) in the case of the initial Contributor, the initial code and documentation
12
+ distributed under this Agreement, and
13
+ b) in the case of each subsequent Contributor:
14
+ i) changes to the Program, and
15
+ ii) additions to the Program;
16
+ where such changes and/or additions to the Program originate from and are
17
+ distributed by that particular Contributor. A Contribution 'originates' from a
18
+ Contributor if it was added to the Program by such Contributor itself or anyone
19
+ acting on such Contributor's behalf. Contributions do not include additions to
20
+ the Program which: (i) are separate modules of software distributed in
21
+ conjunction with the Program under their own license agreement, and (ii) are
22
+ not derivative works of the Program.
23
+
24
+ "Contributor" means any person or entity that distributes the Program.
25
+
26
+ "Licensed Patents" mean patent claims licensable by a Contributor which are
27
+ necessarily infringed by the use or sale of its Contribution alone or when
28
+ combined with the Program.
29
+
30
+ "Program" means the Contributions distributed in accordance with this Agreement.
31
+
32
+ "Recipient" means anyone who receives the Program under this Agreement,
33
+ including all Contributors.
34
+
35
+ 2. GRANT OF RIGHTS
36
+
37
+ a) Subject to the terms of this Agreement, each Contributor hereby grants
38
+ Recipient a non-exclusive, worldwide, royalty-free copyright license to
39
+ reproduce, prepare derivative works of, publicly display, publicly perform,
40
+ distribute and sublicense the Contribution of such Contributor, if any, and
41
+ such derivative works, in source code and object code form.
42
+ b) Subject to the terms of this Agreement, each Contributor hereby grants
43
+ Recipient a non-exclusive, worldwide, royalty-free patent license under
44
+ Licensed Patents to make, use, sell, offer to sell, import and otherwise
45
+ transfer the Contribution of such Contributor, if any, in source code and
46
+ object code form. This patent license shall apply to the combination of the
47
+ Contribution and the Program if, at the time the Contribution is added by
48
+ the Contributor, such addition of the Contribution causes such combination
49
+ to be covered by the Licensed Patents. The patent license shall not apply to
50
+ any other combinations which include the Contribution. No hardware per se is
51
+ licensed hereunder.
52
+ c) Recipient understands that although each Contributor grants the licenses to
53
+ its Contributions set forth herein, no assurances are provided by any
54
+ Contributor that the Program does not infringe the patent or other
55
+ intellectual property rights of any other entity. Each Contributor disclaims
56
+ any liability to Recipient for claims brought by any other entity based on
57
+ infringement of intellectual property rights or otherwise. As a condition to
58
+ exercising the rights and licenses granted hereunder, each Recipient hereby
59
+ assumes sole responsibility to secure any other intellectual property rights
60
+ needed, if any. For example, if a third party patent license is required to
61
+ allow Recipient to distribute the Program, it is Recipient's responsibility
62
+ to acquire that license before distributing the Program.
63
+ d) Each Contributor represents that to its knowledge it has sufficient
64
+ copyright rights in its Contribution, if any, to grant the copyright license
65
+ set forth in this Agreement.
66
+
67
+ 3. REQUIREMENTS
68
+
69
+ A Contributor may choose to distribute the Program in object code form under
70
+ its own license agreement, provided that:
71
+
72
+ a) it complies with the terms and conditions of this Agreement; and
73
+ b) its license agreement:
74
+ i) effectively disclaims on behalf of all Contributors all warranties and
75
+ conditions, express and implied, including warranties or conditions of title
76
+ and non-infringement, and implied warranties or conditions of
77
+ merchantability and fitness for a particular purpose;
78
+ ii) effectively excludes on behalf of all Contributors all liability for
79
+ damages, including direct, indirect, special, incidental and consequential
80
+ damages, such as lost profits;
81
+ iii) states that any provisions which differ from this Agreement are offered by
82
+ that Contributor alone and not by any other party; and
83
+ iv) states that source code for the Program is available from such Contributor,
84
+ and informs licensees how to obtain it in a reasonable manner on or through
85
+ a medium customarily used for software exchange.
86
+
87
+ When the Program is made available in source code form:
88
+
89
+ a) it must be made available under this Agreement; and
90
+ b) a copy of this Agreement must be included with each copy of the Program.
91
+
92
+ Contributors may not remove or alter any copyright notices contained within the
93
+ Program.
94
+
95
+ Each Contributor must identify itself as the originator of its Contribution,
96
+ if any, in a manner that reasonably allows subsequent Recipients to identify
97
+ the originator of the Contribution.
98
+
99
+ 4. COMMERCIAL DISTRIBUTION
100
+
101
+ Commercial distributors of software may accept certain responsibilities with
102
+ respect to end users, business partners and the like. While this license is
103
+ intended to facilitate the commercial use of the Program, the Contributor who
104
+ includes the Program in a commercial product offering should do so in a manner
105
+ which does not create potential liability for other Contributors. Therefore, if
106
+ a Contributor includes the Program in a commercial product offering, such
107
+ Contributor ("Commercial Contributor") hereby agrees to defend and indemnify
108
+ every other Contributor ("Indemnified Contributor") against any losses, damages
109
+ and costs (collectively "Losses") arising from claims, lawsuits and other legal
110
+ actions brought by a third party against the Indemnified Contributor to the
111
+ extent caused by the acts or omissions of such Commercial Contributor in
112
+ connection with its distribution of the Program in a commercial product
113
+ offering. The obligations in this section do not apply to any claims or Losses
114
+ relating to any actual or alleged intellectual property infringement. In order
115
+ to qualify, an Indemnified Contributor must: a) promptly notify the Commercial
116
+ Contributor in writing of such claim, and b) allow the Commercial Contributor
117
+ to control, and cooperate with the Commercial Contributor in, the defense and
118
+ any related settlement negotiations. The Indemnified Contributor may
119
+ participate in any such claim at its own expense.
120
+
121
+ For example, a Contributor might include the Program in a commercial product
122
+ offering, Product X. That Contributor is then a Commercial Contributor. If that
123
+ Commercial Contributor then makes performance claims, or offers warranties
124
+ related to Product X, those performance claims and warranties are such
125
+ Commercial Contributor's responsibility alone. Under this section, the
126
+ Commercial Contributor would have to defend claims against the other
127
+ Contributors related to those performance claims and warranties, and if a
128
+ court requires any other Contributor to pay any damages as a result, the
129
+ Commercial Contributor must pay those damages.
130
+
131
+ 5. NO WARRANTY
132
+
133
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS PROVIDED ON AN
134
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR
135
+ IMPLIED INCLUDING, WITHOUT LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE,
136
+ NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each
137
+ Recipient is solely responsible for determining the appropriateness of using
138
+ and distributing the Program and assumes all risks associated with its exercise
139
+ of rights under this Agreement , including but not limited to the risks and
140
+ costs of program errors, compliance with applicable laws, damage to or loss of
141
+ data, programs or equipment, and unavailability or interruption of operations.
142
+
143
+ 6. DISCLAIMER OF LIABILITY
144
+
145
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT NOR ANY
146
+ CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT, INDIRECT, INCIDENTAL,
147
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING WITHOUT LIMITATION LOST
148
+ PROFITS), HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
149
+ STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
150
+ WAY OUT OF THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
151
+ GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
152
+
153
+ 7. GENERAL
154
+
155
+ If any provision of this Agreement is invalid or unenforceable under applicable
156
+ law, it shall not affect the validity or enforceability of the remainder of the
157
+ terms of this Agreement, and without further action by the parties hereto, such
158
+ provision shall be reformed to the minimum extent necessary to make such
159
+ provision valid and enforceable.
160
+
161
+ If Recipient institutes patent litigation against any entity (including a
162
+ cross-claim or counterclaim in a lawsuit) alleging that the Program itself
163
+ (excluding combinations of the Program with other software or hardware)
164
+ infringes such Recipient's patent(s), then such Recipient's rights granted
165
+ under Section 2(b) shall terminate as of the date such litigation is filed.
166
+
167
+ All Recipient's rights under this Agreement shall terminate if it fails to
168
+ comply with any of the material terms or conditions of this Agreement and does
169
+ not cure such failure in a reasonable period of time after becoming aware of
170
+ such noncompliance. If all Recipient's rights under this Agreement terminate,
171
+ Recipient agrees to cease use and distribution of the Program as soon as
172
+ reasonably practicable. However, Recipient's obligations under this Agreement
173
+ and any licenses granted by Recipient relating to the Program shall continue
174
+ and survive.
175
+
176
+ Everyone is permitted to copy and distribute copies of this Agreement, but in
177
+ order to avoid inconsistency the Agreement is copyrighted and may only be
178
+ modified in the following manner. The Agreement Steward reserves the right to
179
+ publish new versions (including revisions) of this Agreement from time to time.
180
+ No one other than the Agreement Steward has the right to modify this Agreement.
181
+ The Eclipse Foundation is the initial Agreement Steward. The Eclipse Foundation
182
+ may assign the responsibility to serve as the Agreement Steward to a suitable
183
+ separate entity. Each new version of the Agreement will be given a
184
+ distinguishing version number. The Program (including Contributions) may always
185
+ be distributed subject to the version of the Agreement under which it was
186
+ received. In addition, after a new version of the Agreement is published,
187
+ Contributor may elect to distribute the Program (including its Contributions)
188
+ under the new version. Except as expressly stated in Sections 2(a) and 2(b)
189
+ above, Recipient receives no rights or licenses to the intellectual property of
190
+ any Contributor under this Agreement, whether expressly, by implication,
191
+ estoppel or otherwise. All rights in the Program not expressly granted under
192
+ this Agreement are reserved.
193
+
194
+ This Agreement is governed by the laws of the State of New York and the
195
+ intellectual property laws of the United States of America. No party to this
196
+ Agreement will bring a legal action under this Agreement more than one year
197
+ after the cause of action arose. Each party waives its rights to a jury trial
198
+ in any resulting litigation.
@@ -0,0 +1,7 @@
1
+ # olap4r-mondrian
2
+
3
+ Mondrian driver for olap4r.
4
+
5
+ ## Copyright
6
+
7
+ Copyright (c) 2011-2012 Freeport Metrics Inc. See LICENSE for further details.
@@ -0,0 +1,23 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ begin
4
+ Bundler.setup(:default, :development)
5
+ rescue Bundler::BundlerError => e
6
+ $stderr.puts e.message
7
+ $stderr.puts "Run `bundle install` to install missing gems"
8
+ exit e.status_code
9
+ end
10
+ require 'rake'
11
+
12
+ require 'jeweler'
13
+ Jeweler::Tasks.new do |gem|
14
+ gem.name = "olap4r-mondrian"
15
+ gem.homepage = "https://github.com/Freeport-Metrics/olap4r-mondrian"
16
+ gem.license = "EPL"
17
+ gem.summary = %Q{Mondrian driver for olap4r}
18
+ gem.description = %Q{Mondrian driver for olap4r}
19
+ gem.email = "filip@tepper.pl"
20
+ gem.authors = ["Filip Tepper"]
21
+ end
22
+
23
+ Jeweler::RubygemsDotOrgTasks.new
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.1.0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,3 @@
1
+ log4j.rootLogger = ERROR, A1
2
+ log4j.appender.A1 = org.apache.log4j.ConsoleAppender
3
+ log4j.appender.A1.layout=org.apache.log4j.PatternLayout
Binary file
@@ -0,0 +1,27 @@
1
+ include Java
2
+
3
+ require "commons-collections.jar"
4
+ require "commons-dbcp.jar"
5
+ require "commons-logging.jar"
6
+ require "commons-math.jar"
7
+ require "commons-pool.jar"
8
+ require "commons-vfs.jar"
9
+ require "eigenbase-properties.jar"
10
+ require "eigenbase-resgen.jar"
11
+ require "eigenbase-xom.jar"
12
+ require "javacup.jar"
13
+ require "log4j.jar"
14
+ require "mondrian.jar"
15
+
16
+ java.lang.System.setProperty "log4j.configuration", "file://#{File.dirname(__FILE__)}/log4j.properties"
17
+ Java::JavaClass.for_name "mondrian.olap4j.MondrianOlap4jDriver"
18
+
19
+ module Olap
20
+ module Mondrian
21
+ class << self
22
+ def jdbc_driver
23
+ Java::MondrianOlap4j::MondrianOlap4jDriver
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,63 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "olap4r-mondrian"
8
+ s.version = "0.1.0"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Filip Tepper"]
12
+ s.date = "2012-08-20"
13
+ s.description = "Mondrian driver for olap4r"
14
+ s.email = "filip@tepper.pl"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ "Gemfile",
21
+ "Gemfile.lock",
22
+ "LICENSE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "VERSION",
26
+ "lib/commons-collections.jar",
27
+ "lib/commons-dbcp.jar",
28
+ "lib/commons-logging.jar",
29
+ "lib/commons-math.jar",
30
+ "lib/commons-pool.jar",
31
+ "lib/commons-vfs.jar",
32
+ "lib/eigenbase-properties.jar",
33
+ "lib/eigenbase-resgen.jar",
34
+ "lib/eigenbase-xom.jar",
35
+ "lib/javacup.jar",
36
+ "lib/log4j.jar",
37
+ "lib/log4j.properties",
38
+ "lib/mondrian.jar",
39
+ "lib/olap4r-mondrian.rb",
40
+ "olap4r-mondrian.gemspec"
41
+ ]
42
+ s.homepage = "https://github.com/Freeport-Metrics/olap4r-mondrian"
43
+ s.licenses = ["EPL"]
44
+ s.require_paths = ["lib"]
45
+ s.rubygems_version = "1.8.24"
46
+ s.summary = "Mondrian driver for olap4r"
47
+
48
+ if s.respond_to? :specification_version then
49
+ s.specification_version = 3
50
+
51
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
52
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
53
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.4"])
54
+ else
55
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
56
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
57
+ end
58
+ else
59
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
60
+ s.add_dependency(%q<jeweler>, ["~> 1.8.4"])
61
+ end
62
+ end
63
+
metadata ADDED
@@ -0,0 +1,99 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: olap4r-mondrian
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - Filip Tepper
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2012-08-20 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: bundler
17
+ version_requirements: &id001 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ~>
21
+ - !ruby/object:Gem::Version
22
+ version: 1.1.0
23
+ requirement: *id001
24
+ prerelease: false
25
+ type: :development
26
+ - !ruby/object:Gem::Dependency
27
+ name: jeweler
28
+ version_requirements: &id002 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.8.4
34
+ requirement: *id002
35
+ prerelease: false
36
+ type: :development
37
+ description: Mondrian driver for olap4r
38
+ email: filip@tepper.pl
39
+ executables: []
40
+
41
+ extensions: []
42
+
43
+ extra_rdoc_files:
44
+ - LICENSE
45
+ - README.md
46
+ files:
47
+ - Gemfile
48
+ - Gemfile.lock
49
+ - LICENSE
50
+ - README.md
51
+ - Rakefile
52
+ - VERSION
53
+ - lib/commons-collections.jar
54
+ - lib/commons-dbcp.jar
55
+ - lib/commons-logging.jar
56
+ - lib/commons-math.jar
57
+ - lib/commons-pool.jar
58
+ - lib/commons-vfs.jar
59
+ - lib/eigenbase-properties.jar
60
+ - lib/eigenbase-resgen.jar
61
+ - lib/eigenbase-xom.jar
62
+ - lib/javacup.jar
63
+ - lib/log4j.jar
64
+ - lib/log4j.properties
65
+ - lib/mondrian.jar
66
+ - lib/olap4r-mondrian.rb
67
+ - olap4r-mondrian.gemspec
68
+ homepage: https://github.com/Freeport-Metrics/olap4r-mondrian
69
+ licenses:
70
+ - EPL
71
+ post_install_message:
72
+ rdoc_options: []
73
+
74
+ require_paths:
75
+ - lib
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ none: false
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 2
82
+ segments:
83
+ - 0
84
+ version: "0"
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: "0"
91
+ requirements: []
92
+
93
+ rubyforge_project:
94
+ rubygems_version: 1.8.24
95
+ signing_key:
96
+ specification_version: 3
97
+ summary: Mondrian driver for olap4r
98
+ test_files: []
99
+