reality-generators 1.1.0 → 1.2.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: 03bc2bd3ea71e9f986d52a15efa87b778ab98758
4
- data.tar.gz: e6e5fed040e98cd4584b7a8e9c389b09e7f20a96
3
+ metadata.gz: 80b9b3a6dde58be318658fb9824a8dee006a8ff8
4
+ data.tar.gz: ea40d91550d4beb72da94a1557c8747079bf9ca2
5
5
  SHA512:
6
- metadata.gz: bd5609694d0b1cb8d3d9976e2c87de06d4d329deef9e8a0c1e9e458d3d54c1658ba21d387d049f76ab8a1034c9a4994137f2453937d19ce94f82b97cd1a0d9c7
7
- data.tar.gz: f619d71a563afd4ec8332df622b95bb1fa4eff470fa66eb1dbf87e52079767e2edbb4843e7c16265f5b8cc7dd0fc51a5b9bf4401e0155ae241f9b420d0c0e931
6
+ metadata.gz: 6a8a126a39b6507b90d33f9543a8f118eec084026da4809b127b4c04205d01bc9c43ac580748a400201a5375e7f0d82425ea6301683e27fc4eb74752eee494d3
7
+ data.tar.gz: 9daa8383b83889aa0e579f2bb675b0c602fb9658e92fdf1b639836d5f573f08a3e20ecd9710fca221b1905df39b8c423dd5ab54953d29c9670e1e31d3804ca61
@@ -99,6 +99,7 @@ module Reality #nodoc
99
99
  (targets[element_type] ||= []) << [scope_element, element]
100
100
 
101
101
  template_set_container.target_manager.targets_by_container(element_type).each do |target|
102
+ next unless handle_subelement?(element, target.key)
102
103
  subelements = nil
103
104
  subscope = nil
104
105
  if target.standard?
@@ -116,6 +117,12 @@ module Reality #nodoc
116
117
  end
117
118
  end
118
119
  end
120
+
121
+ # A hook to control whether certain paths in model should
122
+ # be follow when collecting generation targets
123
+ def handle_subelement?(object, sub_feature_key)
124
+ true
125
+ end
119
126
  end
120
127
  end
121
128
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{reality-generators}
5
- s.version = '1.1.0'
5
+ s.version = '1.2.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
@@ -21,9 +21,9 @@ Gem::Specification.new do |s|
21
21
  s.has_rdoc = false
22
22
  s.rdoc_options = %w(--line-numbers --inline-source --title reality-generators)
23
23
 
24
- s.add_dependency 'reality-core', '= 1.4.0'
25
- s.add_dependency 'reality-naming', '= 1.4.0'
26
- s.add_dependency 'reality-orderedhash', '= 1.0.0'
24
+ s.add_dependency 'reality-core', '>= 1.4.0'
25
+ s.add_dependency 'reality-naming', '>= 1.4.0'
26
+ s.add_dependency 'reality-orderedhash', '>= 1.0.0'
27
27
 
28
28
  s.add_development_dependency(%q<minitest>, ['= 5.9.1'])
29
29
  s.add_development_dependency(%q<test-unit>, ['= 3.1.5'])
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reality-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Donald
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-12-05 00:00:00.000000000 Z
11
+ date: 2016-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reality-core
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: 1.4.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: 1.4.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: reality-naming
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.4.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.4.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: reality-orderedhash
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: 1.0.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: 1.0.0
55
55
  - !ruby/object:Gem::Dependency