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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30db45e11c4c9ce85b6a9aa204f715132a176ad3
4
- data.tar.gz: 63c5421ac7be511ac2be9f9470597cd25267140d
3
+ metadata.gz: b7b7e191eaad678aeb89be0ca8743eb90dfe8d5b
4
+ data.tar.gz: 3a777616625aa25805d2f50ae25cf7633e3a0099
5
5
  SHA512:
6
- metadata.gz: dc39aeec65e0f3d90a50b74c470d08b18c6714560a6c8662e91f0c29f81e616d890064d1e737dd9e9f75072fe2737970075fa01df541dc30b97d37096fe611ad
7
- data.tar.gz: b22fceeb33df66d20d42a09537e0054799d92251b821d5edf54ef8cfcfab0e56df9c9bee676b7602451e2e96fe3d494b95b25e720c1e3f4cbf256adb49653f4b
6
+ metadata.gz: 88ac4c71766457a0995f1bbddf00a650187fae4eacfe9e3c87ef9648737c72db756e80fab41097980fa70cffb583ccc1211d1bcea9b34fabcee18cab07af18cc
7
+ data.tar.gz: e1c94deab6e96e52a0a4ec88568f3549181855de3e04fec9a06dc62e318a4317339128e70f7067e6361c701864146d6afb34ed90fc82687c44744ee564f6f6d6
@@ -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.17"
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, *a
31
+ def initialize filepath, options = {}
32
32
  @filepath = filepath
33
- super *a
34
- @constellation = ActiveFacts::API::Constellation.new(ActiveFacts::Metamodel)
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
@@ -1,5 +1,5 @@
1
1
  module ActiveFacts
2
2
  module CQL
3
- VERSION = "1.9.2"
3
+ VERSION = "1.9.3"
4
4
  end
5
5
  end
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.2
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-07 00:00:00.000000000 Z
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.17
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.17
74
+ version: 1.9.20
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: treetop
77
77
  requirement: !ruby/object:Gem::Requirement