activefacts-metamodel 1.9.15 → 1.9.16

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: 2b9d48b959018dfa2c058b3f7ff8c6f72de85be7
4
- data.tar.gz: 261ec3a4ff051b8ca6792699856d5b01e04c4fed
3
+ metadata.gz: b1d9c5bd4adc1eb2615d7f203dbbbb7f4c55a3f7
4
+ data.tar.gz: 1ee14b0cb2c13872a6428838839ca5aab29fe44f
5
5
  SHA512:
6
- metadata.gz: 5f72c7417352823a629b4bc78d1490b12f49569909be18197aa8466f09ec4aeebaa09884309c257f7a94aac3c26a70b463d9b0170f42e61ab1903468224c4b17
7
- data.tar.gz: d19e84520214f2cadfb9787c7339119679ba8a0800e06a895d2b1d57dfb83bb65342ba2ab2b8f19cbaea05cfd9cb8d69491d90c33bc16578ce218b97d327fb9c
6
+ metadata.gz: c27e410c1bdae1e36295a0b55dd7dabdd8b4024267feef22f5199fb980b403abe1f6295738d7bc5fc3f83e5465a16342eaa63b346363befb70b4fcc7972640ab
7
+ data.tar.gz: c71a23df4be55c450debded206c214435a972a6815fc1a51fb81cee9a9e7301dac5954b9f7cf9a210349812f3f95890822bcc3bc8653f29d86be3cc71d31e4c3
@@ -478,9 +478,14 @@ module ActiveFacts
478
478
  attr_reader :injected_surrogate_role
479
479
 
480
480
  def is_separate
481
+ # Independent object types and Entity Types marked separate
481
482
  is_independent or concept.all_concept_annotation.detect{|ca| ca.mapping_annotation == 'separate'}
482
483
  end
483
484
 
485
+ def is_partitioned
486
+ false
487
+ end
488
+
484
489
  def is_static
485
490
  concept.all_concept_annotation.detect{|ca| ca.mapping_annotation == 'static'}
486
491
  end
@@ -533,13 +538,18 @@ module ActiveFacts
533
538
  end
534
539
 
535
540
  def assimilation
536
- ti = identifying_type_inheritance and ti.assimilation
541
+ ti = all_type_inheritance_as_subtype.map(&:assimilation).compact[0]
537
542
  end
538
543
 
539
544
  def is_separate
545
+ # Independent Object Types, Entity Types marked separate and TypeInheritance marked not absorbed
540
546
  super || !['absorbed', nil].include?(assimilation)
541
547
  end
542
548
 
549
+ def is_partitioned
550
+ assimilation == 'partitioned'
551
+ end
552
+
543
553
  def preferred_identifier
544
554
  return @preferred_identifier if @preferred_identifier
545
555
  if fact_type
@@ -1,5 +1,5 @@
1
1
  module ActiveFacts
2
2
  module Metamodel
3
- VERSION = "1.9.15"
3
+ VERSION = "1.9.16"
4
4
  end
5
5
  end
@@ -106,8 +106,8 @@ class String
106
106
  end
107
107
  end
108
108
 
109
- def snakecase
110
- snakewords.join('_')
109
+ def snakecase joiner = '_'
110
+ snakewords.join(joiner)
111
111
  end
112
112
 
113
113
  def to_a
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activefacts-metamodel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.15
4
+ version: 1.9.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clifford Heath
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-27 00:00:00.000000000 Z
11
+ date: 2017-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler