mushin 0.57.0 → 0.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mushin/domain.rb +7 -5
- data/lib/mushin/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3871e2cb20c49ab1572c3d51870c8c1a544e175a
|
4
|
+
data.tar.gz: e4f45d61e2a12df5bf6b6f34b30801e483a858dc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ebf27d3e38a2e6ed25bc69ca7fb5645ad7a21c1b0301d9b4a5f94990a0912c738729f2284585a714bd4d1c98b1e4f81e6b7197ba58178618f1c84e3e6207966
|
7
|
+
data.tar.gz: 33b89cf9ae0a9d8f0c4989d5520128d19cf0a511f34128db85dee72d90d772f40101d5472f02cd6b7b484d136b0ca3d0bd19e45badbbf26c8edaafe3791d0d9d
|
data/lib/mushin/domain.rb
CHANGED
@@ -53,20 +53,22 @@ module Mushin
|
|
53
53
|
klass_opts_hash = klass_ext[:opts]
|
54
54
|
klass_params_hash = klass_ext[:params]
|
55
55
|
|
56
|
+
if klass_context_key == "query" then
|
57
|
+
ext_hash[:opts][:cqrs_query] = true
|
58
|
+
else
|
59
|
+
ext_hash[:opts][:cqrs_query] = false
|
60
|
+
end
|
61
|
+
|
56
62
|
#NOTE provides an ext_hash via binding of instance_hash values to klass_hashs(opts & params) keys
|
57
63
|
instance_hash.each do |instance_hash_key, instance_hash_value|
|
58
64
|
ext_hash[:opts][klass_opts_hash.invert[instance_hash_key]] = instance_hash_value unless klass_opts_hash.nil? || klass_opts_hash.invert[instance_hash_key].nil?
|
59
65
|
ext_hash[:params][klass_params_hash.invert[instance_hash_key]] = instance_hash_value unless klass_params_hash.nil? || klass_params_hash.invert[instance_hash_key].nil?
|
60
66
|
end
|
67
|
+
|
61
68
|
#NOTE adds the extras from klass_hashs via reverse merge
|
62
69
|
ext_hash[:opts] = klass_opts_hash.merge(ext_hash[:opts]) unless klass_opts_hash.nil?
|
63
70
|
ext_hash[:params] = klass_params_hash.merge(ext_hash[:params]) unless klass_params_hash.nil?
|
64
71
|
|
65
|
-
if klass_context_key == "query" then
|
66
|
-
ext_hash[:opts][:cqrs_query] = true
|
67
|
-
else
|
68
|
-
ext_hash[:opts][:cqrs_query] = false
|
69
|
-
end
|
70
72
|
|
71
73
|
$log.debug "insert_before 0 into stack: #{ext_hash[:ext]}, #{ext_hash[:opts]}, #{ext_hash[:params]}"
|
72
74
|
@stack.insert_before 0, ext_hash[:ext], ext_hash[:opts], ext_hash[:params]
|
data/lib/mushin/version.rb
CHANGED