mushin 0.55.0 → 0.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1baa796351c6bf468614639a3f03845f7687c16d
4
- data.tar.gz: 0315dea0e2bfc3747786aca877fe7d5e2cc25965
3
+ metadata.gz: 91fe337c554fe70279d2f046cc305c01b9c2a729
4
+ data.tar.gz: 326575730197e79cee76e1d29d644f5499da15b8
5
5
  SHA512:
6
- metadata.gz: 8151dfa5c217d107fa98ec42bc944812a74ac0370c37fd87910c122e3f8da997f2875e89063ff1b92afa811cbbbebb4335080949e5df4701a976067ddfe3e94e
7
- data.tar.gz: eb2519c2d7f294a67de42847de65f13b8da1c883ba7b750e5452bd8b0f8fbe520d9a0e86ad4c8610d40c137917b09010116ece10cad1c291871fa921b4c869f4
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
- @stack.insert_before 0, Mushin::Store, {}, {}
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
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.55.0"
2
+ VERSION = "0.56.0"
3
3
  end
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.55.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-05 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler