Skip to content

Commit

Permalink
Release v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slashdotdash committed Jul 16, 2018
1 parent 3b4040b commit 9064a18
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 44 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
@@ -1,6 +1,6 @@
# Changelog

## Next release
## 0.15.0

- Support system environment variables for all config ([#115](https://github.com/commanded/eventstore/pull/115)).
- Allow subscriptions to filter the events they receive ([#114](https://github.com/commanded/eventstore/pull/114)).
Expand Down
2 changes: 1 addition & 1 deletion guides/Getting Started.md
Expand Up @@ -6,7 +6,7 @@ EventStore is [available in Hex](https://hex.pm/packages/eventstore) and can be

```elixir
def deps do
[{:eventstore, "~> 0.13"}]
[{:eventstore, "~> 0.15"}]
end
```

Expand Down
82 changes: 44 additions & 38 deletions mix.exs
@@ -1,45 +1,45 @@
defmodule EventStore.Mixfile do
use Mix.Project

@version "0.14.0"
@version "0.15.0"

def project do
[
app: :eventstore,
version: @version,
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps(),
description: description(),
package: package(),
docs: docs(),
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
consolidate_protocols: Mix.env == :prod,
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
consolidate_protocols: Mix.env() == :prod,
aliases: aliases(),
preferred_cli_env: preferred_cli_env(),
dialyzer: dialyzer(),
name: "EventStore",
source_url: "https://github.com/commanded/eventstore",
source_url: "https://github.com/commanded/eventstore"
]
end

def application do
[
extra_applications: [
:logger,
:poolboy,
:poolboy
],
mod: {EventStore.Application, []}
]
end

defp elixirc_paths(:bench), do: ["lib", "test/support"]
defp elixirc_paths(:jsonb), do: ["lib", "test/support"]
defp elixirc_paths(:bench), do: ["lib", "test/support"]
defp elixirc_paths(:jsonb), do: ["lib", "test/support"]
defp elixirc_paths(:distributed), do: ["lib", "test/support"]
defp elixirc_paths(:local), do: ["lib", "test/support"]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp elixirc_paths(:local), do: ["lib", "test/support"]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]

defp deps do
[
Expand All @@ -61,9 +61,9 @@ defmodule EventStore.Mixfile do
end

defp description do
"""
EventStore using PostgreSQL for persistence.
"""
"""
EventStore using PostgreSQL for persistence.
"""
end

defp docs do
Expand All @@ -79,8 +79,8 @@ EventStore using PostgreSQL for persistence.
"guides/Cluster.md",
"guides/Event Serialization.md",
"guides/Upgrades.md",
"CHANGELOG.md",
],
"CHANGELOG.md"
]
]
end

Expand All @@ -89,33 +89,35 @@ EventStore using PostgreSQL for persistence.
files: ["lib", "priv", "guides", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Ben Smith"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/commanded/eventstore",
"Docs" => "https://hexdocs.pm/eventstore/"}
links: %{
"GitHub" => "https://github.com/commanded/eventstore",
"Docs" => "https://hexdocs.pm/eventstore/"
}
]
end

defp aliases do
[
"event_store.setup": ["event_store.create", "event_store.init"],
"event_store.reset": ["event_store.drop", "event_store.setup"],
"es.setup": ["event_store.setup"],
"es.reset": ["event_store.reset"],
"benchmark": ["es.reset", "app.start", "bench"],
"test.all": ["test.registries", "test.jsonb", "test --only slow"],
"test.jsonb": &test_jsonb/1,
"test.registries": &test_registries/1,
"test.distributed": &test_distributed/1,
"test.local": &test_local/1,
"event_store.setup": ["event_store.create", "event_store.init"],
"event_store.reset": ["event_store.drop", "event_store.setup"],
"es.setup": ["event_store.setup"],
"es.reset": ["event_store.reset"],
benchmark: ["es.reset", "app.start", "bench"],
"test.all": ["test.registries", "test.jsonb", "test --only slow"],
"test.jsonb": &test_jsonb/1,
"test.registries": &test_registries/1,
"test.distributed": &test_distributed/1,
"test.local": &test_local/1
]
end

defp preferred_cli_env do
[
"test.all": :test,
"test.jsonb": :test,
"test.registries": :test,
"test.all": :test,
"test.jsonb": :test,
"test.registries": :test,
"test.distributed": :test,
"test.local": :test,
"test.local": :test
]
end

Expand All @@ -133,13 +135,17 @@ EventStore using PostgreSQL for persistence.
defp test_local(args), do: test_env(:local, args)

defp test_env(env, args) do
test_args = if IO.ANSI.enabled?, do: ["--color"|args], else: ["--no-color"|args]
test_args = if IO.ANSI.enabled?(), do: ["--color" | args], else: ["--no-color" | args]

IO.puts "==> Running tests for MIX_ENV=#{env} mix test #{Enum.join(args, " ")}"
IO.puts("==> Running tests for MIX_ENV=#{env} mix test #{Enum.join(args, " ")}")

{_, res} = System.cmd "mix", ["test"|test_args],
into: IO.binstream(:stdio, :line),
env: [{"MIX_ENV", to_string(env)}]
{_, res} =
System.cmd(
"mix",
["test" | test_args],
into: IO.binstream(:stdio, :line),
env: [{"MIX_ENV", to_string(env)}]
)

if res > 0 do
System.at_exit(fn _ -> exit({:shutdown, 1}) end)
Expand Down
8 changes: 4 additions & 4 deletions mix.lock
Expand Up @@ -2,16 +2,16 @@
"benchfella": {:hex, :benchfella, "0.3.5", "b2122c234117b3f91ed7b43b6e915e19e1ab216971154acd0a80ce0e9b8c05f5", [:mix], [], "hexpm"},
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
"connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [:mix], [], "hexpm"},
"credo": {:hex, :credo, "0.9.0", "5d1b494e4f2dc672b8318e027bd833dda69be71eaac6eedd994678be74ef7cb4", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:poison, ">= 0.0.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"},
"credo": {:hex, :credo, "0.9.3", "76fa3e9e497ab282e0cf64b98a624aa11da702854c52c82db1bf24e54ab7c97a", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:poison, ">= 0.0.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"},
"db_connection": {:hex, :db_connection, "1.1.3", "89b30ca1ef0a3b469b1c779579590688561d586694a3ce8792985d4d7e575a61", [:mix], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"},
"decimal": {:hex, :decimal, "1.5.0", "b0433a36d0e2430e3d50291b1c65f53c37d56f83665b43d79963684865beab68", [:mix], [], "hexpm"},
"dialyxir": {:hex, :dialyxir, "0.5.1", "b331b091720fd93e878137add264bac4f644e1ddae07a70bf7062c7862c4b952", [:mix], [], "hexpm"},
"earmark": {:hex, :earmark, "1.2.5", "4d21980d5d2862a2e13ec3c49ad9ad783ffc7ca5769cf6ff891a4553fbaae761", [:mix], [], "hexpm"},
"ex_doc": {:hex, :ex_doc, "0.18.3", "f4b0e4a2ec6f333dccf761838a4b253d75e11f714b85ae271c9ae361367897b7", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
"file_system": {:hex, :file_system, "0.2.4", "f0bdda195c0e46e987333e986452ec523aed21d784189144f647c43eaf307064", [:mix], [], "hexpm"},
"ex_doc": {:hex, :ex_doc, "0.18.4", "4406b8891cecf1352f49975c6d554e62e4341ceb41b9338949077b0d4a97b949", [:mix], [{:earmark, "~> 1.1", [hex: :earmark, repo: "hexpm", optional: false]}], "hexpm"},
"file_system": {:hex, :file_system, "0.2.6", "fd4dc3af89b9ab1dc8ccbcc214a0e60c41f34be251d9307920748a14bf41f1d3", [:mix], [], "hexpm"},
"fs": {:hex, :fs, "0.9.2", "ed17036c26c3f70ac49781ed9220a50c36775c6ca2cf8182d123b6566e49ec59", [:rebar], [], "hexpm"},
"fsm": {:hex, :fsm, "0.3.1", "087aa9b02779a84320dc7a2d8464452b5308e29877921b2bde81cdba32a12390", [:mix], [], "hexpm"},
"gen_stage": {:hex, :gen_stage, "0.13.1", "edff5bca9cab22c5d03a834062515e6a1aeeb7665fb44eddae086252e39c4378", [:mix], [], "hexpm"},
"gen_stage": {:hex, :gen_stage, "0.14.0", "65ae78509f85b59d360690ce3378d5096c3130a0694bab95b0c4ae66f3008fad", [:mix], [], "hexpm"},
"hoedown": {:git, "https://github.com/hoedown/hoedown.git", "980b9c549b4348d50b683ecee6abee470b98acda", []},
"markdown": {:git, "https://github.com/devinus/markdown.git", "d065dbcc4e242a85ca2516fdadd0082712871fd8", []},
"mix_test_watch": {:hex, :mix_test_watch, "0.6.0", "5e206ed04860555a455de2983937efd3ce79f42bd8536fc6b900cc286f5bb830", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}], "hexpm"},
Expand Down

0 comments on commit 9064a18

Please sign in to comment.