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 +4 -4
- data/lib/reality/facets/facet_container.rb +3 -1
- data/reality-facets.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fab66e2fc2cbcf11caf14a81394eb5c7a85cc0a2
|
4
|
+
data.tar.gz: ee3c44d80e468af0e794afeb352a0100887e2d8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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}"
|
data/reality-facets.gemspec
CHANGED
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.
|
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-
|
11
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: reality-core
|