reality-facets 1.10.0 → 1.11.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: 5a590522cf717ba911d74622cfb90a2ed560fe92
4
- data.tar.gz: fb23cb41f0e6bbb615547128c2c29c0b86d1bebc
3
+ metadata.gz: fab66e2fc2cbcf11caf14a81394eb5c7a85cc0a2
4
+ data.tar.gz: ee3c44d80e468af0e794afeb352a0100887e2d8c
5
5
  SHA512:
6
- metadata.gz: 8be7a24488b15355884ee354b264943f4bee3faca59b7340a96cae65a52203e8970eded332efe46f93bce8cc07eb962d69a5f888ee6a4bb6d0839193cabad37b
7
- data.tar.gz: 599f25ab951ba49c93c1bc7fdd60c13b7c71b7e9d65930c8ff83403750f132e0e4ccf0f332cd989621fcb4bbcc5fc8f3514701cb5eff5c51b411dd60916644a3
6
+ metadata.gz: f5262030dc60d52c5e706fa52a66365a3731d7a081821ea698b0a7a9575593662c8b63271ff558ddff821b39cdf30678d5808d1f5a4a2518c521ff75518372ba
7
+ data.tar.gz: 608f29f6e934c4431a32cbf434184cd571baba53777ce783da2aebd74f70215d5183df6a3c803182edf126d038c1529cb835897da9dd76f0e406c073977eea1c
@@ -37,7 +37,7 @@ module Reality #nodoc
37
37
  Facets.error("Unknown definition form '#{definition.inspect}'") unless (definition.is_a?(Symbol) || (definition.is_a?(Hash) && 1 == definition.size))
38
38
  key = (definition.is_a?(Hash) ? definition.keys[0] : definition).to_sym
39
39
  required_facets = definition.is_a?(Hash) ? definition.values[0] : []
40
- Reality::Facets::Facet.new(self, key, {:required_facets => required_facets}.merge(options), &block)
40
+ Reality::Facets::Facet.new(self, key, { :required_facets => required_facets }.merge(options), &block)
41
41
  end
42
42
 
43
43
  def facet_keys
@@ -124,6 +124,8 @@ module Reality #nodoc
124
124
  object.send(action)
125
125
  end
126
126
  object.enabled_facets.each do |facet_name|
127
+ # Need to skip facets that have been disabled within same round
128
+ next unless object.facet_enabled?(facet_name)
127
129
  # Need to check for the magic facet_X method rather than X method directly as
128
130
  # sometimes there is a global method of the same name.
129
131
  method_name = "facet_#{facet_name}"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{reality-facets}
5
- s.version = '1.10.0'
5
+ s.version = '1.11.0'
6
6
  s.platform = Gem::Platform::RUBY
7
7
 
8
8
  s.authors = ['Peter Donald']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reality-facets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.0
4
+ version: 1.11.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: 2017-08-23 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reality-core