mushin 0.55.0 → 0.56.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 +12 -1
- data/lib/mushin/version.rb +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: 91fe337c554fe70279d2f046cc305c01b9c2a729
|
4
|
+
data.tar.gz: 326575730197e79cee76e1d29d644f5499da15b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 434bc6bdc2f9db4f00dc0a12c7ac48dc73c77a187e9635b20bf5a1530b349a02082e6f956d27d5c8298d1b5dd67ef8ad86fd626e90b79fb3ab350e93237dc2c6
|
7
|
+
data.tar.gz: f5b3d76e24c0ae5e788669dc27139608d5193dbb5be01a8d6b0b3ddc8c172bc89952121b54e6b9d2599db0e0b8de98750e3d7b6d24ff41f6846e04936a933a18
|
data/lib/mushin/domain.rb
CHANGED
@@ -61,13 +61,24 @@ module Mushin
|
|
61
61
|
#NOTE adds the extras from klass_hashs via reverse merge
|
62
62
|
ext_hash[:opts] = klass_opts_hash.merge(ext_hash[:opts]) unless klass_opts_hash.nil?
|
63
63
|
ext_hash[:params] = klass_params_hash.merge(ext_hash[:params]) unless klass_params_hash.nil?
|
64
|
+
|
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
|
+
|
64
71
|
$log.debug "insert_before 0 into stack: #{ext_hash[:ext]}, #{ext_hash[:opts]}, #{ext_hash[:params]}"
|
65
72
|
@stack.insert_before 0, ext_hash[:ext], ext_hash[:opts], ext_hash[:params]
|
66
73
|
end
|
67
74
|
if klass_context_key == "query" then
|
68
75
|
#NOTE CQRS Query
|
76
|
+
|
77
|
+
#TODO Should automatically insert {:cqrs => cqrs_query} into the opts.
|
78
|
+
#TODO That way DSFs don't need to worry about specifiyin cqrs but only about using the query keyword when requiring a query
|
69
79
|
$log.debug "klass_construct_key #{klass_construct_key} | klass_construct_value #{klass_construct_value}"
|
70
|
-
|
80
|
+
#TODO no need to use a Mushin::Store at all
|
81
|
+
#@stack.insert_before 0, Mushin::Store, {}, {}
|
71
82
|
stack_data = @stack.call
|
72
83
|
store(data_key: klass_construct_key.to_sym, data_value: stack_data)
|
73
84
|
else
|
data/lib/mushin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mushin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.56.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zotherstupidguy
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|