Permalink
Browse files

Add MIT license

  • Loading branch information...
slashdotdash committed Mar 25, 2016
1 parent da8563a commit f0b2712973f792248335959a8f8d1686637a2cb8
Showing with 22 additions and 13 deletions.
  1. +8 −0 LICENSE
  2. +9 −11 lib/commanded/command_handler.ex
  3. +2 −1 mix.exs
  4. +3 −1 mix.lock
View
@@ -0,0 +1,8 @@
The MIT License (MIT)
Copyright (c) 2016 Ben Smith (ben@10consulting.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,13 +1,11 @@
defmodule Commanded do
defprotocol CommandHandler do
@doc """
Define which aggregate applies for this command
"""
def aggregate(command)
defprotocol Commanded.CommandHandler do
@doc """
Define which aggregate applies for this command
"""
def aggregate(command)
@doc """
Handle the given command, returning state struct containing the aggregate's uuid, all applied events and expected version
"""
def handle(state, command)
end
@doc """
Handle the given command, returning state struct containing the aggregate's uuid, all applied events and expected version
"""
def handle(state, command)
end
View
@@ -21,7 +21,8 @@ defmodule Commanded.Mixfile do
defp deps do
[
{:eventstore, github: "slashdotdash/eventstore", only: :dev},
{:eventstore, github: "slashdotdash/eventstore"},
{:eventsourced, github: "slashdotdash/eventsourced"}
]
end
end
View
@@ -1,7 +1,9 @@
%{"connection": {:hex, :connection, "1.0.2"},
"db_connection": {:hex, :db_connection, "0.2.4"},
"decimal": {:hex, :decimal, "1.1.1"},
"eventsourced": {:git, "https://github.com/slashdotdash/eventsourced.git", "3fd1349b541894bcc0f75135788408a2063d4404", []},
"eventstore": {:git, "https://github.com/slashdotdash/eventstore.git", "b97e015379fc8dddddfe2dbc7dccabe5d1c6bb21", []},
"fsm": {:hex, :fsm, "0.2.0"},
"poolboy": {:hex, :poolboy, "1.5.1"},
"postgrex": {:hex, :postgrex, "0.11.1"}}
"postgrex": {:hex, :postgrex, "0.11.1"},
"uuid": {:hex, :uuid, "1.1.3"}}

0 comments on commit f0b2712

Please sign in to comment.