mondrian-rest 1.0.0-java → 1.0.1-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2cfb2bb9ca02faf64e851332d271430bed71fcda750ae4f0b46e71cacb8d4c72
4
- data.tar.gz: 82aa47f20dabcfb4a8deff1e8636f9a8570b667956baf90db522351d6c84a0c7
3
+ metadata.gz: d6604ef9e5e741db5dedefe3e0d034ae5ba9c92fa7f2371d3871ed928ee06d03
4
+ data.tar.gz: 5f8bc250e201816560cffadc9c30737833b8497a3662b4ddb5ff232ac60c0f58
5
5
  SHA512:
6
- metadata.gz: b340ebdde3e89747453ecbbdab83e8c112115a240799778f680cb575359c900ad22b43711ab2f93e402f42dacbd14d6883d612887b11fe103f40e9035b13b60d
7
- data.tar.gz: a2f4252ee653683f7e39df31f270f052c944b264418c69902c4c7dffec662e6bf3e667936793501cbf6b6e65e64f9278f24e2c956fcf915e2d1c99532fb6df54
6
+ metadata.gz: 70429111540b8c09c204dc664232da102d0ba705dcf14e97bb0c3782fb6c5552f1e0418caa9ab1c1cdd62075579d5004ad0f554d4a9299877e342692aa5c8f8c
7
+ data.tar.gz: 07067b0f9d56bc1ab3432731ee28417059c2799dd701183121b602b48754ca34c3d885883d61a646a6d06af2244003ab69c11d3b5345228977bcd64d792f6acc
data/.gitignore CHANGED
@@ -2,3 +2,6 @@
2
2
  *.log
3
3
  spec/fixtures/foodmart/
4
4
  spec/fixtures/webshop.sqlite
5
+ coverage
6
+ Gemfile.lock
7
+
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""` to the process that uses `mondrian-rest`.
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].[#{org.olap4j.mdx.MdxUtil.mdxEncodeString(f[:measure])}] #{f[:operand]} #{f[:value]}" }.join(' AND ')
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
 
@@ -1,5 +1,5 @@
1
1
  module Mondrian
2
2
  module REST
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
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.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-03-23 00:00:00.000000000 Z
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