olap-xmla 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/encodings.xml +4 -0
- data/.idea/misc.xml +27 -0
- data/.idea/modules.xml +8 -0
- data/.idea/olap-xmla.iml +64 -0
- data/.idea/scopes/scope_settings.xml +5 -0
- data/.idea/vcs.xml +6 -0
- data/lib/olap/xmla/response.rb +5 -4
- data/lib/olap/xmla/version.rb +1 -1
- metadata +8 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 44a46ad953265fb58670fd822c3a9f2a0d922f02
|
4
|
+
data.tar.gz: e8cb51570a01346e4e9192c96753159c8d109df7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a54dd9404cda7fb1e79c7acbf1151868fc6dd26c4f45232ed12a3b31e4c8ac8d3ab293c0d93d18331ab900887da98e5f9d0eee50b002fd3c5de11189bc5e7fb
|
7
|
+
data.tar.gz: 233ca779a9cb9801bce847a68d28e1f41a36412dbee8f4b1f906ef310cf5f9342afc138e82fcc97d72fdd34e495f630811abf885cafa5d07e9dac099595c22f6
|
data/.idea/encodings.xml
ADDED
data/.idea/misc.xml
ADDED
@@ -0,0 +1,27 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="DaemonCodeAnalyzer">
|
4
|
+
<disable_hints />
|
5
|
+
</component>
|
6
|
+
<component name="DependencyValidationManager">
|
7
|
+
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
|
8
|
+
</component>
|
9
|
+
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
|
10
|
+
<component name="ProjectLevelVcsManager" settingsEditedManually="false">
|
11
|
+
<OptionsSetting value="true" id="Add" />
|
12
|
+
<OptionsSetting value="true" id="Remove" />
|
13
|
+
<OptionsSetting value="true" id="Checkout" />
|
14
|
+
<OptionsSetting value="true" id="Update" />
|
15
|
+
<OptionsSetting value="true" id="Status" />
|
16
|
+
<OptionsSetting value="true" id="Edit" />
|
17
|
+
<ConfirmationsSetting value="0" id="Add" />
|
18
|
+
<ConfirmationsSetting value="0" id="Remove" />
|
19
|
+
</component>
|
20
|
+
<component name="ProjectModuleManager">
|
21
|
+
<modules />
|
22
|
+
</component>
|
23
|
+
<component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-1.9.3-p551 [global]" project-jdk-type="RUBY_SDK" />
|
24
|
+
<component name="RunManager">
|
25
|
+
<list size="0" />
|
26
|
+
</component>
|
27
|
+
</project>
|
data/.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<project version="4">
|
3
|
+
<component name="ProjectModuleManager">
|
4
|
+
<modules>
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/olap-xmla.iml" filepath="$PROJECT_DIR$/.idea/olap-xmla.iml" />
|
6
|
+
</modules>
|
7
|
+
</component>
|
8
|
+
</project>
|
data/.idea/olap-xmla.iml
ADDED
@@ -0,0 +1,64 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="FacetManager">
|
4
|
+
<facet type="gem" name="Ruby Gem">
|
5
|
+
<configuration>
|
6
|
+
<option name="GEM_APP_ROOT_PATH" value="$MODULE_DIR$" />
|
7
|
+
<option name="GEM_APP_TEST_PATH" value="" />
|
8
|
+
<option name="GEM_APP_LIB_PATH" value="$MODULE_DIR$/lib" />
|
9
|
+
</configuration>
|
10
|
+
</facet>
|
11
|
+
</component>
|
12
|
+
<component name="ModuleRunConfigurationManager">
|
13
|
+
<configuration default="false" name="IRB console: olap-xmla" type="IrbRunConfigurationType" factoryName="IRB console" temporary="true">
|
14
|
+
<module name="olap-xmla" />
|
15
|
+
<IRB_RUN_CONFIG NAME="RUBY_ARGS" VALUE="-e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift)" />
|
16
|
+
<IRB_RUN_CONFIG NAME="WORK DIR" VALUE="$MODULE_DIR$" />
|
17
|
+
<IRB_RUN_CONFIG NAME="SHOULD_USE_SDK" VALUE="false" />
|
18
|
+
<IRB_RUN_CONFIG NAME="ALTERN_SDK_NAME" VALUE="" />
|
19
|
+
<IRB_RUN_CONFIG NAME="myPassParentEnvs" VALUE="true" />
|
20
|
+
<envs />
|
21
|
+
<EXTENSION ID="BundlerRunConfigurationExtension" bundleExecEnabled="false" />
|
22
|
+
<EXTENSION ID="JRubyRunConfigurationExtension" NailgunExecEnabled="false" />
|
23
|
+
<EXTENSION ID="RubyCoverageRunConfigurationExtension" enabled="false" sample_coverage="true" track_test_folders="true" runner="rcov">
|
24
|
+
<COVERAGE_PATTERN ENABLED="true">
|
25
|
+
<PATTERN REGEXPS="/.rvm/" INCLUDED="false" />
|
26
|
+
</COVERAGE_PATTERN>
|
27
|
+
</EXTENSION>
|
28
|
+
<EXTENSION ID="org.jetbrains.plugins.ruby.motion.run.MotionSimulatorRunExtension" />
|
29
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_PATH" VALUE="$USER_HOME$/.rvm/rubies/ruby-2.1.1/bin/irb" />
|
30
|
+
<IRB_RUN_CONFIG NAME="SCRIPT_ARGS" VALUE="--prompt simple" />
|
31
|
+
<IRB_RUN_CONFIG NAME="IS_RAILS_CONSOLE" VALUE="false" />
|
32
|
+
<RunnerSettings RunnerId="RubyRunner" />
|
33
|
+
<ConfigurationWrapper RunnerId="RubyRunner" />
|
34
|
+
<method />
|
35
|
+
</configuration>
|
36
|
+
</component>
|
37
|
+
<component name="NewModuleRootManager">
|
38
|
+
<content url="file://$MODULE_DIR$" />
|
39
|
+
<orderEntry type="jdk" jdkName="RVM: ruby-2.1.1" jdkType="RUBY_SDK" />
|
40
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
41
|
+
<orderEntry type="library" scope="PROVIDED" name="akami (v1.2.2, RVM: ruby-2.1.1) [gem]" level="application" />
|
42
|
+
<orderEntry type="library" scope="PROVIDED" name="builder (v3.2.2, RVM: ruby-2.1.1) [gem]" level="application" />
|
43
|
+
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.11.2, RVM: ruby-2.1.1) [gem]" level="application" />
|
44
|
+
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.2.5, RVM: ruby-2.1.1) [gem]" level="application" />
|
45
|
+
<orderEntry type="library" scope="PROVIDED" name="gyoku (v1.1.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
46
|
+
<orderEntry type="library" scope="PROVIDED" name="httpi (v2.1.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
47
|
+
<orderEntry type="library" scope="PROVIDED" name="macaddr (v1.7.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
48
|
+
<orderEntry type="library" scope="PROVIDED" name="mini_portile2 (v2.0.0, RVM: ruby-2.1.1) [gem]" level="application" />
|
49
|
+
<orderEntry type="library" scope="PROVIDED" name="nokogiri (v1.6.7.2, RVM: ruby-2.1.1) [gem]" level="application" />
|
50
|
+
<orderEntry type="library" scope="PROVIDED" name="nori (v2.4.0, RVM: ruby-2.1.1) [gem]" level="application" />
|
51
|
+
<orderEntry type="library" scope="PROVIDED" name="rack (v1.6.4, RVM: ruby-2.1.1) [gem]" level="application" />
|
52
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, RVM: ruby-2.1.1) [gem]" level="application" />
|
53
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.4.0, RVM: ruby-2.1.1) [gem]" level="application" />
|
54
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.4.4, RVM: ruby-2.1.1) [gem]" level="application" />
|
55
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.4.0, RVM: ruby-2.1.1) [gem]" level="application" />
|
56
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.4.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
57
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.4.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
58
|
+
<orderEntry type="library" scope="PROVIDED" name="rubyntlm (v0.3.4, RVM: ruby-2.1.1) [gem]" level="application" />
|
59
|
+
<orderEntry type="library" scope="PROVIDED" name="savon (v2.5.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
60
|
+
<orderEntry type="library" scope="PROVIDED" name="systemu (v2.6.5, RVM: ruby-2.1.1) [gem]" level="application" />
|
61
|
+
<orderEntry type="library" scope="PROVIDED" name="uuid (v2.3.8, RVM: ruby-2.1.1) [gem]" level="application" />
|
62
|
+
<orderEntry type="library" scope="PROVIDED" name="wasabi (v3.3.1, RVM: ruby-2.1.1) [gem]" level="application" />
|
63
|
+
</component>
|
64
|
+
</module>
|
data/.idea/vcs.xml
ADDED
data/lib/olap/xmla/response.rb
CHANGED
@@ -20,8 +20,8 @@ class Olap::Xmla::Response
|
|
20
20
|
def measures
|
21
21
|
[response[:axes][:axis][0][:tuples][:tuple]].flatten.collect{|m|
|
22
22
|
{
|
23
|
-
name: m[:member][:u_name],
|
24
|
-
caption: m[:member][:caption]
|
23
|
+
name: (m[:member].kind_of?(Array) ? m[:member].collect { |x| x[:u_name]}.join(', ') : m[:member][:u_name]),
|
24
|
+
caption: (m[:member].kind_of?(Array) ? m[:member].collect { |x| x[:caption]}.join(', ') : m[:member][:caption]),
|
25
25
|
}
|
26
26
|
}
|
27
27
|
end
|
@@ -76,13 +76,14 @@ class Olap::Xmla::Response
|
|
76
76
|
|
77
77
|
colnum += 1
|
78
78
|
|
79
|
+
measure = m[:member].kind_of?(Array) ? m[:member].collect{|m| m[:u_name]} : m[:member][:u_name]
|
79
80
|
if (cell=cells[cell_index]) && cell[:@cell_ordinal].to_i==cell_ordinal
|
80
81
|
cell_index += 1
|
81
82
|
cell_ordinal += 1
|
82
|
-
{ colnum: colnum, measure:
|
83
|
+
{ colnum: colnum, measure: measure, value: cell[:value], fmt_value: cell[:fmt_value]}
|
83
84
|
else
|
84
85
|
cell_ordinal += 1
|
85
|
-
{ colnum: colnum, measure:
|
86
|
+
{ colnum: colnum, measure: measure, value: nil, fmt_value: nil}
|
86
87
|
end
|
87
88
|
|
88
89
|
}
|
data/lib/olap/xmla/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: olap-xmla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- studnev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -75,6 +75,12 @@ extensions: []
|
|
75
75
|
extra_rdoc_files: []
|
76
76
|
files:
|
77
77
|
- ".gitignore"
|
78
|
+
- ".idea/encodings.xml"
|
79
|
+
- ".idea/misc.xml"
|
80
|
+
- ".idea/modules.xml"
|
81
|
+
- ".idea/olap-xmla.iml"
|
82
|
+
- ".idea/scopes/scope_settings.xml"
|
83
|
+
- ".idea/vcs.xml"
|
78
84
|
- Gemfile
|
79
85
|
- LICENSE.txt
|
80
86
|
- README.md
|