chickadee 0.0.1
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 +7 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/Guardfile +9 -0
- data/LICENSE.txt +22 -0
- data/README.md +29 -0
- data/Rakefile +1 -0
- data/chickadee.gemspec +26 -0
- data/lib/chickadee/application.rb +27 -0
- data/lib/chickadee/command.rb +10 -0
- data/lib/chickadee/container.rb +3 -0
- data/lib/chickadee/exceptions.rb +4 -0
- data/lib/chickadee/handler.rb +7 -0
- data/lib/chickadee/query.rb +10 -0
- data/lib/chickadee/registry.rb +19 -0
- data/lib/chickadee/request.rb +17 -0
- data/lib/chickadee/router.rb +78 -0
- data/lib/chickadee/version.rb +3 -0
- data/lib/chickadee.rb +14 -0
- data/spec/chickadee_spec.rb +128 -0
- data/spec/command_spec.rb +11 -0
- data/spec/query_spec.rb +11 -0
- data/spec/registry_spec.rb +37 -0
- data/spec/router_spec.rb +89 -0
- data/spec/spec_helper.rb +6 -0
- metadata +130 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5bcb4cef05aca78538224ff2212092ab72bea7ca
|
4
|
+
data.tar.gz: e93f3c823ccf6911931b6ccf3dcf314a584bcd34
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b73a763034b866983accad6d7b8b4873bf75a4d623f75d024289afc81d6fc8f39f134a2fa8e26d4df18c0333f0ba3c23de67ce7ddd6070a8ae3aa2422a04f17a
|
7
|
+
data.tar.gz: 5c305b328b9855a187ddaa68927630775e900fe131dcfcad1bf27e929474a1d1e7dd2d93451255999e31864febe58e49c5b502b7ee531f34b98c3ba88d94e2a2
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Guardfile
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
guard :minitest, :all_on_start => false do
|
5
|
+
# with Minitest::Spec
|
6
|
+
watch(%r{^spec/(.*)_spec\.rb})
|
7
|
+
watch(%r{^lib/(.+)\.rb}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
8
|
+
watch(%r{^spec/spec_helper\.rb}) { 'spec' }
|
9
|
+
end
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 Erik Lott
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# Chickadee
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'chickadee'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install chickadee
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
TODO: Write usage instructions here
|
22
|
+
|
23
|
+
## Contributing
|
24
|
+
|
25
|
+
1. Fork it
|
26
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
27
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
28
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
29
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
data/chickadee.gemspec
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'chickadee/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "chickadee"
|
8
|
+
spec.version = Chickadee::VERSION
|
9
|
+
spec.authors = ["Erik Lott"]
|
10
|
+
spec.email = ["erik.lott@evrium.com"]
|
11
|
+
spec.description = %q{Lightweight domain driven design library}
|
12
|
+
spec.summary = %q{Lightweight domain driven design library}
|
13
|
+
spec.homepage = ""
|
14
|
+
spec.license = "MIT"
|
15
|
+
|
16
|
+
spec.files = `git ls-files`.split($/)
|
17
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
|
+
spec.require_paths = ["lib"]
|
20
|
+
|
21
|
+
spec.add_dependency "ioc", "~> 0.5.0"
|
22
|
+
|
23
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
24
|
+
spec.add_development_dependency "rake"
|
25
|
+
spec.add_development_dependency "mocha", "~> 0.14.0"
|
26
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Chickadee
|
2
|
+
class Application
|
3
|
+
def self.routes
|
4
|
+
@router ||= Router.new
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.registry
|
8
|
+
@internal_registry ||= Registry.new
|
9
|
+
end
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@external_registry = Registry.new
|
13
|
+
end
|
14
|
+
|
15
|
+
def call(request)
|
16
|
+
container = Container.new
|
17
|
+
self.class.registry.update_container(container)
|
18
|
+
@external_registry.update_container(container)
|
19
|
+
output = self.class.routes.call(request.class).map{|handler| container[handler].handle(request)}.last
|
20
|
+
output if request.query?
|
21
|
+
end
|
22
|
+
|
23
|
+
def register(name, service)
|
24
|
+
@external_registry.register(name, service, :as => :instance)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module Chickadee
|
2
|
+
class Registry
|
3
|
+
def initialize
|
4
|
+
@registrants = []
|
5
|
+
end
|
6
|
+
|
7
|
+
def draw(&block)
|
8
|
+
instance_eval(&block) if block_given?
|
9
|
+
end
|
10
|
+
|
11
|
+
def register(*args)
|
12
|
+
@registrants << args
|
13
|
+
end
|
14
|
+
|
15
|
+
def update_container(container)
|
16
|
+
@registrants.each{|args| container.register(*args)}
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,78 @@
|
|
1
|
+
module Chickadee
|
2
|
+
class Router
|
3
|
+
class RequestMap
|
4
|
+
def initialize(map = {})
|
5
|
+
@map = map
|
6
|
+
end
|
7
|
+
|
8
|
+
def call(request)
|
9
|
+
if @map.key?(request)
|
10
|
+
@map.fetch(request).call(request)
|
11
|
+
else
|
12
|
+
app = @map[:app]
|
13
|
+
raise(RoutingError, 'missing run statement') unless app
|
14
|
+
app.call(request)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
class Middleware
|
20
|
+
def initialize(app, handler)
|
21
|
+
@app = app
|
22
|
+
@handler = handler
|
23
|
+
end
|
24
|
+
|
25
|
+
def call(request)
|
26
|
+
@app.call(request).unshift(@handler)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def initialize(default_app = nil, &block)
|
31
|
+
@run = default_app
|
32
|
+
@use = []
|
33
|
+
@map = nil
|
34
|
+
instance_eval(&block) if block_given?
|
35
|
+
end
|
36
|
+
|
37
|
+
def draw(&block)
|
38
|
+
instance_eval(&block) if block_given?
|
39
|
+
end
|
40
|
+
|
41
|
+
def use(handler, &block)
|
42
|
+
if @map
|
43
|
+
mapping = @map
|
44
|
+
@map = nil
|
45
|
+
@use << proc { |app| generate_map(app, mapping) }
|
46
|
+
end
|
47
|
+
@use << proc { |app| Middleware.new(app, handler, &block) }
|
48
|
+
end
|
49
|
+
|
50
|
+
def run(handler)
|
51
|
+
@run = proc{|request| [handler]}
|
52
|
+
end
|
53
|
+
|
54
|
+
def map(method_name, &block)
|
55
|
+
@map ||= {}
|
56
|
+
@map[method_name] = block
|
57
|
+
end
|
58
|
+
|
59
|
+
def to_app
|
60
|
+
app = @map ? generate_map(@run, @map) : @run
|
61
|
+
raise(RoutingError, 'missing run or map statement') unless app
|
62
|
+
app = @use.reverse.inject(app) { |a,e| e[a] }
|
63
|
+
app
|
64
|
+
end
|
65
|
+
|
66
|
+
def call(request)
|
67
|
+
to_app.call(request)
|
68
|
+
end
|
69
|
+
|
70
|
+
private
|
71
|
+
|
72
|
+
def generate_map(default_app, mapping)
|
73
|
+
mapped = default_app ? {:app => default_app} : {}
|
74
|
+
mapping.each { |r,b| mapped[r] = self.class.new(default_app, &b) }
|
75
|
+
RequestMap.new(mapped)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
data/lib/chickadee.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require 'ioc'
|
2
|
+
require 'chickadee/version'
|
3
|
+
require 'chickadee/exceptions'
|
4
|
+
require 'chickadee/container'
|
5
|
+
require 'chickadee/router'
|
6
|
+
require 'chickadee/request'
|
7
|
+
require 'chickadee/query'
|
8
|
+
require 'chickadee/command'
|
9
|
+
require 'chickadee/handler'
|
10
|
+
require 'chickadee/registry'
|
11
|
+
require 'chickadee/application'
|
12
|
+
|
13
|
+
module Chickadee
|
14
|
+
end
|
@@ -0,0 +1,128 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'chickadee'
|
3
|
+
|
4
|
+
describe Chickadee do
|
5
|
+
|
6
|
+
class TestCommand1 < Chickadee::Command
|
7
|
+
attr_accessor :name
|
8
|
+
end
|
9
|
+
|
10
|
+
class TestQuery1 < Chickadee::Query
|
11
|
+
attr_accessor :name
|
12
|
+
end
|
13
|
+
|
14
|
+
class TestHandler1 < Chickadee::Handler
|
15
|
+
def handle(command)
|
16
|
+
"hander1 says: #{command.name}"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
class TestHandler2 < Chickadee::Handler
|
21
|
+
def handle(command)
|
22
|
+
"hander2 says: #{command.name}"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
context 'when command request' do
|
27
|
+
it 'returns nil from command' do
|
28
|
+
app_class = new_app_class
|
29
|
+
app_class.routes.draw do
|
30
|
+
map(TestCommand1) do
|
31
|
+
run :handler1
|
32
|
+
end
|
33
|
+
end
|
34
|
+
app_class.registry.draw do
|
35
|
+
register(:handler1, TestHandler1)
|
36
|
+
end
|
37
|
+
|
38
|
+
app = app_class.new
|
39
|
+
command = TestCommand1.new
|
40
|
+
command.name = 'Chuck Norris'
|
41
|
+
app.call(command).must_be_nil
|
42
|
+
end
|
43
|
+
|
44
|
+
it 'executes handler chain' do
|
45
|
+
app_class = new_app_class
|
46
|
+
|
47
|
+
handler1 = TestHandler1.new
|
48
|
+
handler2 = TestHandler2.new
|
49
|
+
|
50
|
+
app_class.routes.draw do
|
51
|
+
map(TestCommand1) do
|
52
|
+
use :handler1
|
53
|
+
run :handler2
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
app_class.registry.draw do
|
58
|
+
register(:handler1, handler1, :as => :instance)
|
59
|
+
register(:handler2, handler2, :as => :instance)
|
60
|
+
end
|
61
|
+
|
62
|
+
app = app_class.new
|
63
|
+
command = TestCommand1.new
|
64
|
+
|
65
|
+
handler1.expects(:handle).with(command)
|
66
|
+
handler2.expects(:handle).with(command)
|
67
|
+
|
68
|
+
app.call(command)
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
context 'when query request' do
|
73
|
+
it 'returns output from last handler in handler chain' do
|
74
|
+
app_class = new_app_class
|
75
|
+
|
76
|
+
handler1 = TestHandler1.new
|
77
|
+
handler2 = TestHandler2.new
|
78
|
+
|
79
|
+
app_class.routes.draw do
|
80
|
+
map(TestQuery1) do
|
81
|
+
use :handler1
|
82
|
+
run :handler2
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
app_class.registry.draw do
|
87
|
+
register(:handler1, handler1, :as => :instance)
|
88
|
+
register(:handler2, handler2, :as => :instance)
|
89
|
+
end
|
90
|
+
|
91
|
+
app = app_class.new
|
92
|
+
query = TestQuery1.new
|
93
|
+
query.name = 'Chuck Norris'
|
94
|
+
app.call(query).must_equal('hander2 says: Chuck Norris')
|
95
|
+
end
|
96
|
+
|
97
|
+
it 'executes handler chain' do
|
98
|
+
app_class = new_app_class
|
99
|
+
|
100
|
+
handler1 = TestHandler1.new
|
101
|
+
handler2 = TestHandler2.new
|
102
|
+
|
103
|
+
app_class.routes.draw do
|
104
|
+
map(TestQuery1) do
|
105
|
+
use :handler1
|
106
|
+
run :handler2
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
app_class.registry.draw do
|
111
|
+
register(:handler1, handler1, :as => :instance)
|
112
|
+
register(:handler2, handler2, :as => :instance)
|
113
|
+
end
|
114
|
+
|
115
|
+
app = app_class.new
|
116
|
+
query = TestQuery1.new
|
117
|
+
|
118
|
+
handler1.expects(:handle).with(query)
|
119
|
+
handler2.expects(:handle).with(query)
|
120
|
+
|
121
|
+
app.call(query)
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
def new_app_class
|
126
|
+
Class.new(Chickadee::Application)
|
127
|
+
end
|
128
|
+
end
|
data/spec/query_spec.rb
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'chickadee'
|
3
|
+
|
4
|
+
describe Chickadee::Registry do
|
5
|
+
describe '#update_container' do
|
6
|
+
it 'updates container with registered services' do
|
7
|
+
registry = new_registry
|
8
|
+
service = stub
|
9
|
+
container = new_container
|
10
|
+
|
11
|
+
registry.register(:myservice, service, :as => :instance)
|
12
|
+
registry.update_container(container)
|
13
|
+
container.resolve(:myservice).must_equal(service)
|
14
|
+
end
|
15
|
+
end
|
16
|
+
|
17
|
+
describe '#draw' do
|
18
|
+
it 'can register with block' do
|
19
|
+
registry = new_registry
|
20
|
+
service = stub
|
21
|
+
|
22
|
+
registry.draw do
|
23
|
+
register(:service, service)
|
24
|
+
end
|
25
|
+
|
26
|
+
registry.instance_variable_get(:@registrants).must_equal([[:service, service]])
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def new_registry
|
31
|
+
Chickadee::Registry.new
|
32
|
+
end
|
33
|
+
|
34
|
+
def new_container
|
35
|
+
Chickadee::Container.new
|
36
|
+
end
|
37
|
+
end
|
data/spec/router_spec.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'chickadee'
|
3
|
+
|
4
|
+
describe Chickadee::Router do
|
5
|
+
it 'chains handlers' do
|
6
|
+
request = stub
|
7
|
+
|
8
|
+
app = builder do
|
9
|
+
use :handler1
|
10
|
+
run :handler2
|
11
|
+
end
|
12
|
+
|
13
|
+
app.call(request).must_equal([:handler1, :handler2])
|
14
|
+
end
|
15
|
+
|
16
|
+
it 'supports use after run' do
|
17
|
+
request = stub
|
18
|
+
app = builder do
|
19
|
+
use :handler1
|
20
|
+
run :handler2
|
21
|
+
use :handler3
|
22
|
+
end
|
23
|
+
|
24
|
+
app.call(request).must_equal([:handler1, :handler3, :handler2])
|
25
|
+
end
|
26
|
+
|
27
|
+
it 'complains when there is no run' do
|
28
|
+
request = stub
|
29
|
+
app = builder do
|
30
|
+
use :handler1
|
31
|
+
end
|
32
|
+
|
33
|
+
proc { app.call(request) }.must_raise(Chickadee::RoutingError)
|
34
|
+
end
|
35
|
+
|
36
|
+
it 'supports mapping' do
|
37
|
+
request = stub
|
38
|
+
app = builder do
|
39
|
+
map(request) do
|
40
|
+
use :handler1
|
41
|
+
run :handler2
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
app.call(request).must_equal([:handler1, :handler2])
|
46
|
+
end
|
47
|
+
|
48
|
+
it 'complains when there is no run with mapping' do
|
49
|
+
request = stub
|
50
|
+
app = builder do
|
51
|
+
use :handler1
|
52
|
+
map(request) do
|
53
|
+
use :handler2
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
proc { app.call(request) }.must_raise(Chickadee::RoutingError)
|
58
|
+
end
|
59
|
+
|
60
|
+
it 'correctly maps complex senario' do
|
61
|
+
request1 = stub
|
62
|
+
request2 = stub
|
63
|
+
|
64
|
+
app = builder do
|
65
|
+
use :handler1
|
66
|
+
|
67
|
+
map(request1) do
|
68
|
+
use :handler2
|
69
|
+
run :handler3
|
70
|
+
end
|
71
|
+
|
72
|
+
use :handler4
|
73
|
+
|
74
|
+
map(request2) do
|
75
|
+
use :handler5
|
76
|
+
end
|
77
|
+
|
78
|
+
run :handler6
|
79
|
+
end
|
80
|
+
|
81
|
+
app.call(request1).must_equal([:handler1, :handler2, :handler3])
|
82
|
+
app.call(request2).must_equal([:handler1, :handler4, :handler5, :handler6])
|
83
|
+
app.call(nil).must_equal([:handler1, :handler4, :handler6])
|
84
|
+
end
|
85
|
+
|
86
|
+
def builder(&block)
|
87
|
+
Chickadee::Router.new(&block)
|
88
|
+
end
|
89
|
+
end
|
data/spec/spec_helper.rb
ADDED
metadata
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: chickadee
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Erik Lott
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-02-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ioc
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.5.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.5.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.3'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.3'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: mocha
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.14.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.14.0
|
69
|
+
description: Lightweight domain driven design library
|
70
|
+
email:
|
71
|
+
- erik.lott@evrium.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- .gitignore
|
77
|
+
- Gemfile
|
78
|
+
- Guardfile
|
79
|
+
- LICENSE.txt
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- chickadee.gemspec
|
83
|
+
- lib/chickadee.rb
|
84
|
+
- lib/chickadee/application.rb
|
85
|
+
- lib/chickadee/command.rb
|
86
|
+
- lib/chickadee/container.rb
|
87
|
+
- lib/chickadee/exceptions.rb
|
88
|
+
- lib/chickadee/handler.rb
|
89
|
+
- lib/chickadee/query.rb
|
90
|
+
- lib/chickadee/registry.rb
|
91
|
+
- lib/chickadee/request.rb
|
92
|
+
- lib/chickadee/router.rb
|
93
|
+
- lib/chickadee/version.rb
|
94
|
+
- spec/chickadee_spec.rb
|
95
|
+
- spec/command_spec.rb
|
96
|
+
- spec/query_spec.rb
|
97
|
+
- spec/registry_spec.rb
|
98
|
+
- spec/router_spec.rb
|
99
|
+
- spec/spec_helper.rb
|
100
|
+
homepage: ''
|
101
|
+
licenses:
|
102
|
+
- MIT
|
103
|
+
metadata: {}
|
104
|
+
post_install_message:
|
105
|
+
rdoc_options: []
|
106
|
+
require_paths:
|
107
|
+
- lib
|
108
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
109
|
+
requirements:
|
110
|
+
- - '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
requirements: []
|
119
|
+
rubyforge_project:
|
120
|
+
rubygems_version: 2.0.7
|
121
|
+
signing_key:
|
122
|
+
specification_version: 4
|
123
|
+
summary: Lightweight domain driven design library
|
124
|
+
test_files:
|
125
|
+
- spec/chickadee_spec.rb
|
126
|
+
- spec/command_spec.rb
|
127
|
+
- spec/query_spec.rb
|
128
|
+
- spec/registry_spec.rb
|
129
|
+
- spec/router_spec.rb
|
130
|
+
- spec/spec_helper.rb
|