activefacts-cql 1.9.2 → 1.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/activefacts-cql.gemspec +1 -1
- data/lib/activefacts/cql/compiler.rb +14 -3
- data/lib/activefacts/cql/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7b7e191eaad678aeb89be0ca8743eb90dfe8d5b
|
4
|
+
data.tar.gz: 3a777616625aa25805d2f50ae25cf7633e3a0099
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 88ac4c71766457a0995f1bbddf00a650187fae4eacfe9e3c87ef9648737c72db756e80fab41097980fa70cffb583ccc1211d1bcea9b34fabcee18cab07af18cc
|
7
|
+
data.tar.gz: e1c94deab6e96e52a0a4ec88568f3549181855de3e04fec9a06dc62e318a4317339128e70f7067e6361c701864146d6afb34ed90fc82687c44744ee564f6f6d6
|
data/activefacts-cql.gemspec
CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency "rake", "~> 10.0"
|
25
25
|
spec.add_development_dependency "rspec", "~> 3.3"
|
26
26
|
|
27
|
-
spec.add_runtime_dependency "activefacts-metamodel", "~> 1", ">= 1.9.
|
27
|
+
spec.add_runtime_dependency "activefacts-metamodel", "~> 1", ">= 1.9.20"
|
28
28
|
spec.add_runtime_dependency "treetop", [">= 1.4.14", "~> 1.4"]
|
29
29
|
end
|
30
30
|
|
@@ -28,10 +28,21 @@ module ActiveFacts
|
|
28
28
|
|
29
29
|
attr_reader :vocabulary
|
30
30
|
|
31
|
-
def initialize filepath,
|
31
|
+
def initialize filepath, options = {}
|
32
32
|
@filepath = filepath
|
33
|
-
super
|
34
|
-
@constellation =
|
33
|
+
super()
|
34
|
+
if @constellation = options[:constellation]
|
35
|
+
@vocabulary = @constellation.Vocabulary.values[0]
|
36
|
+
@constellation.ValueType.values.each do |object_type|
|
37
|
+
context.object_type(object_type.name, "value type")
|
38
|
+
end
|
39
|
+
@constellation.EntityType.values.each do |object_type|
|
40
|
+
context.object_type(object_type.name, "entity type")
|
41
|
+
end
|
42
|
+
else
|
43
|
+
@constellation = ActiveFacts::API::Constellation.new(ActiveFacts::Metamodel)
|
44
|
+
end
|
45
|
+
@constellation = options[:constellation] || ActiveFacts::API::Constellation.new(ActiveFacts::Metamodel)
|
35
46
|
@constellation.loggers << proc{|*k| trace :apilog, k.inspect} if trace(:apilog)
|
36
47
|
@language = nil
|
37
48
|
@pending_import_topic = nil
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activefacts-cql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.9.
|
4
|
+
version: 1.9.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clifford Heath
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-11-
|
11
|
+
date: 2017-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -61,7 +61,7 @@ dependencies:
|
|
61
61
|
version: '1'
|
62
62
|
- - ">="
|
63
63
|
- !ruby/object:Gem::Version
|
64
|
-
version: 1.9.
|
64
|
+
version: 1.9.20
|
65
65
|
type: :runtime
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -71,7 +71,7 @@ dependencies:
|
|
71
71
|
version: '1'
|
72
72
|
- - ">="
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.9.
|
74
|
+
version: 1.9.20
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: treetop
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|