mushin 0.58.0 → 0.59.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/exe/generator.rb +7 -4
- data/lib/mushin/domain.rb +2 -2
- 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: '0969856d33bc20572e1cc78a3e3e738c0e553481'
|
4
|
+
data.tar.gz: 5d4d3701ff920ec7c12c0bfaf1216b9289c88d4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8be2931f701b356032949c73c095f1ffa68c08127b24891dd07a42c2ffee8d1cf4a28e844eddaee798e5790eb96e559452f3a14f056ad859f8b0077d74e6953d
|
7
|
+
data.tar.gz: e83707696f1a6a4122560c9be0d6ad2665f412e47299640005797edaeebb0fb570c90067b76c1388f2f758cca30ae8f097cc055e146522d93e5875220c3cf07f
|
data/exe/generator.rb
CHANGED
@@ -58,17 +58,17 @@ module Mushin
|
|
58
58
|
def call env
|
59
59
|
env ||= Hash.new
|
60
60
|
|
61
|
-
case @opts[:
|
62
|
-
when
|
61
|
+
case @opts[:cqrs_query]
|
62
|
+
when true
|
63
63
|
#inbound code
|
64
64
|
@app.call(env)
|
65
65
|
#outbound code
|
66
|
-
when
|
66
|
+
when false
|
67
67
|
#inbound code
|
68
68
|
@app.call(env)
|
69
69
|
#outbound code
|
70
70
|
else
|
71
|
-
raise "#{name} requires you to specify if your cqrs call is command or query?"
|
71
|
+
raise "#{name} requires you to specify if your cqrs call is command or query? example: opts[:cqrs_query] = true"
|
72
72
|
end
|
73
73
|
|
74
74
|
end
|
@@ -82,6 +82,9 @@ before do
|
|
82
82
|
@env = {}
|
83
83
|
end
|
84
84
|
it "ext" do
|
85
|
+
#NOTE must specifiy the opts_query true or false while testing the extensions, but if the extenstion is called via a DSF, DSF automatically carry it out
|
86
|
+
opts[:cqrs_query] = false
|
87
|
+
|
85
88
|
opts = {:cqrs => :cqrs_command}
|
86
89
|
params = {:username => @secrets["github"]["login"], :password => @secrets["github"]["password"]}
|
87
90
|
@ext = Github::Ext.new(Proc.new {}, opts, params)
|
data/lib/mushin/domain.rb
CHANGED
@@ -54,9 +54,9 @@ module Mushin
|
|
54
54
|
klass_params_hash = klass_ext[:params]
|
55
55
|
|
56
56
|
if klass_context_key == "query" then
|
57
|
-
ext_hash[:opts][:
|
57
|
+
ext_hash[:opts][:cqrs] = :cqrs_query
|
58
58
|
else
|
59
|
-
ext_hash[:opts][:
|
59
|
+
ext_hash[:opts][:cqrs] = :cqrs_command
|
60
60
|
end
|
61
61
|
|
62
62
|
#NOTE provides an ext_hash via binding of instance_hash values to klass_hashs(opts & params) keys
|
data/lib/mushin/version.rb
CHANGED