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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1e81fd6c874b5767f07dcb7d2f508f1be29c693
4
- data.tar.gz: 497cfd7d1abc379b424acdb3e61b4c2b19de4589
3
+ metadata.gz: f40edd413e3910347f03b39b1fd1cd36513c15a8
4
+ data.tar.gz: 0ace4f714d8e1ba990a3d8f81fdf6ac50ec812dd
5
5
  SHA512:
6
- metadata.gz: 59851db95c25eba970ebb3da980838a2394a0de66d1fc8a24c004e002defbf87641f627e9be3e70f4abfa23e40ae02ce52cfe266f80cca47c2e40d1289cc1e99
7
- data.tar.gz: f08d307b0a39c6dab0a6b267da237d04a45b3d820163da87fe90e9fe168971e128b232285dff8cd7e3664a17850d029203f33827194e7d598fad6ca5c7884527
6
+ metadata.gz: 641e9a5ce19aa07e807cde79708ed740ab1b810c913255fe94580fcec9660bdae247f5e49325b39193b3ed2c69e803873730be884c05c82e940eaf5c65b5454b
7
+ data.tar.gz: 99448103bb436f51228565c94ddc7dd8103f2a014aa4a76bbabdf7844972c97a10fcf0af429f25c16afb1d43a71fd63c29f63f559ea6d1128957c1d952c87a6a
data/.gitignore CHANGED
@@ -7,3 +7,8 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ *.swp
11
+ .DS_Store
12
+ *.rej
13
+ *.orig
14
+ *.diff
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/Users/cjh/work/activefacts}
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.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.a"
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(%q<activefacts-metamodel>, [">= 1.7.0", "~> 1.7"])
24
- spec.add_runtime_dependency(%q<activefacts-rmap>, [">= 1.7.0", "~> 1.7"])
25
- spec.add_runtime_dependency(%q<activesupport>)
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
- join_over, joined_roles = ActiveFacts::Metamodel.plays_over(c.role_sequence.all_role_ref.map{|rr|rr.role}, role_proximity)
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.unique ? nil :
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
@@ -82,6 +82,8 @@ module ActiveFacts
82
82
  /^Signed ?Small ?Integer$/,
83
83
  /^Unsigned ?Tiny ?Integer$/
84
84
  s = case
85
+ when length == nil
86
+ 'int'
85
87
  when length <= 8
86
88
  'tinyint'
87
89
  when length <= 16
@@ -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.7.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-10-08 00:00:00.000000000 Z
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.a
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.a
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: '0'
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: '0'
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.7.0
67
+ version: '1.8'
62
68
  - - "~>"
63
69
  - !ruby/object:Gem::Version
64
- version: '1.7'
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.7.0
77
+ version: '1.8'
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: '1.7'
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.7.0
87
+ version: '1.8'
82
88
  - - "~>"
83
89
  - !ruby/object:Gem::Version
84
- version: '1.7'
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.7.0
97
+ version: '1.8'
92
98
  - - "~>"
93
99
  - !ruby/object:Gem::Version
94
- version: '1.7'
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: '0'
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: '0'
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: