activefacts-generators 1.7.1 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +5 -0
- data/Gemfile +2 -2
- data/activefacts-generators.gemspec +6 -6
- data/lib/activefacts/generators/cql.rb +2 -1
- data/lib/activefacts/generators/rails/schema.rb +1 -1
- data/lib/activefacts/generators/sql/server.rb +2 -0
- data/lib/activefacts/generators/transform/datavault.rb +9 -0
- metadata +30 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f40edd413e3910347f03b39b1fd1cd36513c15a8
|
4
|
+
data.tar.gz: 0ace4f714d8e1ba990a3d8f81fdf6ac50ec812dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 641e9a5ce19aa07e807cde79708ed740ab1b810c913255fe94580fcec9660bdae247f5e49325b39193b3ed2c69e803873730be884c05c82e940eaf5c65b5454b
|
7
|
+
data.tar.gz: 99448103bb436f51228565c94ddc7dd8103f2a014aa4a76bbabdf7844972c97a10fcf0af429f25c16afb1d43a71fd63c29f63f559ea6d1128957c1d952c87a6a
|
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
|
3
|
-
# Specify your gem's dependencies in activefacts-generators.gemspec
|
4
3
|
gemspec
|
5
4
|
|
6
|
-
if ENV['PWD'] =~ %r{\A/
|
5
|
+
if ENV['PWD'] =~ %r{\A#{ENV['HOME']}/work}
|
6
|
+
$stderr.puts "Using work area gems for #{File.basename(File.dirname(__FILE__))} from activefacts-generators"
|
7
7
|
gem 'activefacts-api', path: '/Users/cjh/work/activefacts/api'
|
8
8
|
gem 'activefacts-metamodel', path: '/Users/cjh/work/activefacts/metamodel'
|
9
9
|
# gem 'activefacts-metamodel', git: 'git://github.com/cjheath/activefacts-metamodel.git'
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "activefacts-generators"
|
7
|
-
spec.version = "1.
|
7
|
+
spec.version = "1.8.0"
|
8
8
|
spec.authors = ["Clifford Heath"]
|
9
9
|
spec.email = ["clifford.heath@gmail.com"]
|
10
10
|
|
@@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
17
17
|
spec.require_paths = ["lib"]
|
18
18
|
|
19
|
-
spec.add_development_dependency "bundler", "~> 1.10.
|
19
|
+
spec.add_development_dependency "bundler", ">= 1.10", "~> 1.10.6"
|
20
20
|
spec.add_development_dependency "rake", "~> 10.0"
|
21
|
-
spec.add_development_dependency "rspec"
|
21
|
+
spec.add_development_dependency "rspec", "~> 3.3"
|
22
22
|
|
23
|
-
spec.add_runtime_dependency
|
24
|
-
spec.add_runtime_dependency
|
25
|
-
spec.add_runtime_dependency
|
23
|
+
spec.add_runtime_dependency "activefacts-metamodel", ">= 1.8", "~> 1.8.0"
|
24
|
+
spec.add_runtime_dependency "activefacts-rmap", ">= 1.8", "~> 1.8.0"
|
25
|
+
spec.add_runtime_dependency "activesupport", ">= 4.2", "~> 4.2.4"
|
26
26
|
end
|
@@ -368,7 +368,8 @@ module ActiveFacts
|
|
368
368
|
if role_proximity == :proximate
|
369
369
|
verbaliser.role_refs_have_subtype_steps(c.role_sequence)
|
370
370
|
else
|
371
|
-
|
371
|
+
roles = c.role_sequence.all_role_ref.map{|rr|rr.role}
|
372
|
+
join_over, joined_roles = ActiveFacts::Metamodel.plays_over(roles, role_proximity)
|
372
373
|
verbaliser.roles_have_same_player(joined_roles) if join_over
|
373
374
|
end
|
374
375
|
|
@@ -150,7 +150,7 @@ module ActiveFacts
|
|
150
150
|
]+
|
151
151
|
Array(
|
152
152
|
# Index it non-uniquely only if it's not unique already:
|
153
|
-
fk.jump_reference.to_role.
|
153
|
+
fk.jump_reference.to_role.is_unique ? nil :
|
154
154
|
" add_index :#{fk.from.rails_name}, [:#{from_columns[0]}], :unique => false, :name => :#{index_name}"
|
155
155
|
)
|
156
156
|
else
|
@@ -2,6 +2,15 @@
|
|
2
2
|
# Data Vault Transform
|
3
3
|
# Transform a loaded ActiveFacts vocabulary to suit Data Vault
|
4
4
|
#
|
5
|
+
# ToDo:
|
6
|
+
# optionally emit load tables and use audit links to those
|
7
|
+
# optionally emit Reference tables (but with no FK enforcement)
|
8
|
+
# handle slow-changing ref-tables?
|
9
|
+
# comment peg-legged links (where a Link has a non-hub it its key)
|
10
|
+
# transform links to links into links to the underying hubs
|
11
|
+
# consider John Giles' subtype handling
|
12
|
+
# consider using guaranteed temporal no-overlap handling
|
13
|
+
#
|
5
14
|
# Copyright (c) 2015 Infinuendo. Read the LICENSE file.
|
6
15
|
#
|
7
16
|
require 'activefacts/metamodel'
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activefacts-generators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clifford Heath
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.10'
|
17
20
|
- - "~>"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.10.
|
22
|
+
version: 1.10.6
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.10'
|
24
30
|
- - "~>"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.10.
|
32
|
+
version: 1.10.6
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,70 +48,76 @@ dependencies:
|
|
42
48
|
name: rspec
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- - "
|
51
|
+
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
53
|
+
version: '3.3'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- - "
|
58
|
+
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '3.3'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: activefacts-metamodel
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - ">="
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.
|
67
|
+
version: '1.8'
|
62
68
|
- - "~>"
|
63
69
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
70
|
+
version: 1.8.0
|
65
71
|
type: :runtime
|
66
72
|
prerelease: false
|
67
73
|
version_requirements: !ruby/object:Gem::Requirement
|
68
74
|
requirements:
|
69
75
|
- - ">="
|
70
76
|
- !ruby/object:Gem::Version
|
71
|
-
version: 1.
|
77
|
+
version: '1.8'
|
72
78
|
- - "~>"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
80
|
+
version: 1.8.0
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: activefacts-rmap
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
78
84
|
requirements:
|
79
85
|
- - ">="
|
80
86
|
- !ruby/object:Gem::Version
|
81
|
-
version: 1.
|
87
|
+
version: '1.8'
|
82
88
|
- - "~>"
|
83
89
|
- !ruby/object:Gem::Version
|
84
|
-
version:
|
90
|
+
version: 1.8.0
|
85
91
|
type: :runtime
|
86
92
|
prerelease: false
|
87
93
|
version_requirements: !ruby/object:Gem::Requirement
|
88
94
|
requirements:
|
89
95
|
- - ">="
|
90
96
|
- !ruby/object:Gem::Version
|
91
|
-
version: 1.
|
97
|
+
version: '1.8'
|
92
98
|
- - "~>"
|
93
99
|
- !ruby/object:Gem::Version
|
94
|
-
version:
|
100
|
+
version: 1.8.0
|
95
101
|
- !ruby/object:Gem::Dependency
|
96
102
|
name: activesupport
|
97
103
|
requirement: !ruby/object:Gem::Requirement
|
98
104
|
requirements:
|
99
105
|
- - ">="
|
100
106
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
107
|
+
version: '4.2'
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 4.2.4
|
102
111
|
type: :runtime
|
103
112
|
prerelease: false
|
104
113
|
version_requirements: !ruby/object:Gem::Requirement
|
105
114
|
requirements:
|
106
115
|
- - ">="
|
107
116
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
117
|
+
version: '4.2'
|
118
|
+
- - "~>"
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 4.2.4
|
109
121
|
description: Code generators for the ActiveFacts Fact Modeling suite, including the
|
110
122
|
Constellation Query Language
|
111
123
|
email:
|