mushin 0.58.0 → 0.59.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: 3871e2cb20c49ab1572c3d51870c8c1a544e175a
4
- data.tar.gz: e4f45d61e2a12df5bf6b6f34b30801e483a858dc
3
+ metadata.gz: '0969856d33bc20572e1cc78a3e3e738c0e553481'
4
+ data.tar.gz: 5d4d3701ff920ec7c12c0bfaf1216b9289c88d4f
5
5
  SHA512:
6
- metadata.gz: 2ebf27d3e38a2e6ed25bc69ca7fb5645ad7a21c1b0301d9b4a5f94990a0912c738729f2284585a714bd4d1c98b1e4f81e6b7197ba58178618f1c84e3e6207966
7
- data.tar.gz: 33b89cf9ae0a9d8f0c4989d5520128d19cf0a511f34128db85dee72d90d772f40101d5472f02cd6b7b484d136b0ca3d0bd19e45badbbf26c8edaafe3791d0d9d
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[:cqrs]
62
- when :cqrs_query
61
+ case @opts[:cqrs_query]
62
+ when true
63
63
  #inbound code
64
64
  @app.call(env)
65
65
  #outbound code
66
- when :cqrs_command
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][:cqrs_query] = true
57
+ ext_hash[:opts][:cqrs] = :cqrs_query
58
58
  else
59
- ext_hash[:opts][:cqrs_query] = false
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
@@ -1,3 +1,3 @@
1
1
  module Mushin
2
- VERSION = "0.58.0"
2
+ VERSION = "0.59.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.58.0
4
+ version: 0.59.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - zotherstupidguy