mondrian-rest 1.0.0-java → 1.0.1-java
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 +4 -4
- data/.gitignore +3 -0
- data/README.md +5 -1
- data/lib/mondrian_rest/query_helper.rb +2 -2
- data/lib/mondrian_rest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6604ef9e5e741db5dedefe3e0d034ae5ba9c92fa7f2371d3871ed928ee06d03
|
|
4
|
+
data.tar.gz: 5f8bc250e201816560cffadc9c30737833b8497a3662b4ddb5ff232ac60c0f58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 70429111540b8c09c204dc664232da102d0ba705dcf14e97bb0c3782fb6c5552f1e0418caa9ab1c1cdd62075579d5004ad0f554d4a9299877e342692aa5c8f8c
|
|
7
|
+
data.tar.gz: 07067b0f9d56bc1ab3432731ee28417059c2799dd701183121b602b48754ca34c3d885883d61a646a6d06af2244003ab69c11d3b5345228977bcd64d792f6acc
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -8,7 +8,11 @@ See [`mondrian-rest-demo`](https://github.com/jazzido/mondrian-rest-demo) and [`
|
|
|
8
8
|
|
|
9
9
|
[`mondrian-rest-ui`](https://github.com/jazzido/mondrian-rest-ui) is an experimental visualization tool for `mondrian-rest`, inspired by [CubesViewer](https://github.com/jjmontesl/cubesviewer) and [Polestar](https://github.com/vega/polestar).
|
|
10
10
|
|
|
11
|
-
*NOTE*: `mondrian-rest` expect the `mondrian.olap.SsasCompatibleNaming` Java property is set to `true`. Set a environment variable `JAVA_OPTS="-Dmondrian.olap.SsasCompatibleNaming=true"
|
|
11
|
+
*NOTE*: `mondrian-rest` expect the `mondrian.olap.SsasCompatibleNaming` Java property is set to `true`. Set a environment variable `JAVA_OPTS="-Dmondrian.olap.SsasCompatibleNaming=true"` to the process that uses `mondrian-rest`.
|
|
12
|
+
|
|
13
|
+
## In the wild
|
|
14
|
+
|
|
15
|
+
`mondrian-rest` powers [Datachile](https://es.datachile.io)'s API, and other fine websites built by [Datawheel](http://datawheel.us).
|
|
12
16
|
|
|
13
17
|
## Credits
|
|
14
18
|
|
|
@@ -4,7 +4,7 @@ module Mondrian::REST
|
|
|
4
4
|
VALID_FILTER_OPS = [
|
|
5
5
|
'>', '<', '>=', '<=', '=', '<>'
|
|
6
6
|
].freeze
|
|
7
|
-
VALID_FILTER_RE = /(?<measure>[a-zA-Z0-9\s]+)\s*(?<operand>#{VALID_FILTER_OPS.join("|")})\s*(?<value>-?\d+\.?\d*)/
|
|
7
|
+
VALID_FILTER_RE = /(?<measure>[a-zA-Z0-9-!$%^&*()_+|@#~`{}\[\]:";'?,.\/\s]+)\s*(?<operand>#{VALID_FILTER_OPS.join("|")})\s*(?<value>-?\d+\.?\d*)/
|
|
8
8
|
MEMBER_METHODS = %w[Caption Key Name UniqueName].freeze
|
|
9
9
|
|
|
10
10
|
def unparse_node(node)
|
|
@@ -269,7 +269,7 @@ module Mondrian::REST
|
|
|
269
269
|
|
|
270
270
|
# Apply filters
|
|
271
271
|
unless filters.empty?
|
|
272
|
-
filter_exp = filters.map { |f| "[Measures].[#{
|
|
272
|
+
filter_exp = filters.map { |f| "[Measures].[#{f[:measure]}] #{f[:operand]} #{f[:value]}" }.join(' AND ')
|
|
273
273
|
axis_exp = "FILTER(#{axis_exp}, #{filter_exp})"
|
|
274
274
|
end
|
|
275
275
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: mondrian-rest
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.1
|
|
5
5
|
platform: java
|
|
6
6
|
authors:
|
|
7
7
|
- Manuel Aristarán
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-09-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|