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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c3f6d751174b806453192d1e2cc44aec7c0ef9ef
4
- data.tar.gz: 34022ea88ba9477c54cd185ff2d347dd9ca93b7b
3
+ metadata.gz: 3871e2cb20c49ab1572c3d51870c8c1a544e175a
4
+ data.tar.gz: e4f45d61e2a12df5bf6b6f34b30801e483a858dc
5
5
  SHA512:
6
- metadata.gz: c77943d584b75161abbdabfb05ce608e83a448f08a245a4f2ab6b872a24a9a60232e70d43ab32b5e3b9e5b24220ff9cd11ffb62c4379fd402d7f916a978cd66c
7
- data.tar.gz: 2121e97b9b00eec5296f38ea55e8f3bc09615c137caf80bb914223a68056e79673d9e678ceeb3acced31bd3b219f8e6d111df13c06c86fab8855b0a2aa9d7c44
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]
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.57.0"
2
+ VERSION = "0.58.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mushin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.57.0
4
+ version: 0.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zotherstupidguy