From 68f7e341fe6816b1ea2b26e8506723c5e0a96c2a Mon Sep 17 00:00:00 2001 From: Michal Muskala Date: Sun, 4 Jun 2017 20:59:38 +0200 Subject: [PATCH] Initial commit --- README.md | 19 +++++++++++++++++++ config/config.exs | 30 ++++++++++++++++++++++++++++++ lib/antidote.ex | 18 ++++++++++++++++++ mix.exs | 34 ++++++++++++++++++++++++++++++++++ mix.lock | 8 ++++++++ test/antidote_test.exs | 8 ++++++++ test/test_helper.exs | 1 + 7 files changed, 118 insertions(+) create mode 100644 README.md create mode 100644 config/config.exs create mode 100644 lib/antidote.ex create mode 100644 mix.exs create mode 100644 mix.lock create mode 100644 test/antidote_test.exs create mode 100644 test/test_helper.exs diff --git a/README.md b/README.md new file mode 100644 index 0000000..56d7cc8 --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# Antidote + +**TODO: Add description** + +## Installation + +If [available in Hex](https://hex.pm/docs/publish), the package can be installed +by adding `antidote` to your list of dependencies in `mix.exs`: + +```elixir +def deps do + [{:antidote, "~> 0.1.0"}] +end +``` + +Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc) +and published on [HexDocs](https://hexdocs.pm). Once published, the docs can +be found at [https://hexdocs.pm/antidote](https://hexdocs.pm/antidote). + diff --git a/config/config.exs b/config/config.exs new file mode 100644 index 0000000..73dc922 --- /dev/null +++ b/config/config.exs @@ -0,0 +1,30 @@ +# This file is responsible for configuring your application +# and its dependencies with the aid of the Mix.Config module. +use Mix.Config + +# This configuration is loaded before any dependency and is restricted +# to this project. If another project depends on this project, this +# file won't be loaded nor affect the parent project. For this reason, +# if you want to provide default values for your application for +# 3rd-party users, it should be done in your "mix.exs" file. + +# You can configure your application as: +# +# config :antidote, key: :value +# +# and access this configuration in your application as: +# +# Application.get_env(:antidote, :key) +# +# You can also configure a 3rd-party app: +# +# config :logger, level: :info +# + +# It is also possible to import configuration files, relative to this +# directory. For example, you can emulate configuration per environment +# by uncommenting the line below and defining dev.exs, test.exs and such. +# Configuration from the imported file will override the ones defined +# here (which is why it is important to import them last). +# +# import_config "#{Mix.env}.exs" diff --git a/lib/antidote.ex b/lib/antidote.ex new file mode 100644 index 0000000..6df60d2 --- /dev/null +++ b/lib/antidote.ex @@ -0,0 +1,18 @@ +defmodule Antidote do + @moduledoc """ + Documentation for Antidote. + """ + + @doc """ + Hello world. + + ## Examples + + iex> Antidote.hello + :world + + """ + def hello do + :world + end +end diff --git a/mix.exs b/mix.exs new file mode 100644 index 0000000..ab25bda --- /dev/null +++ b/mix.exs @@ -0,0 +1,34 @@ +defmodule Antidote.Mixfile do + use Mix.Project + + def project do + [ + app: :antidote, + version: "0.1.0", + elixir: "~> 1.4", + start_permanent: Mix.env() == :prod, + deps: deps(), + aliases: aliases() + ] + end + + def application do + [ + extra_applications: [] + ] + end + + defp deps do + [ + {:decimal, "~> 1.0", optional: true}, + {:benchee, "~> 0.8", only: :bench}, + {:benchee_html, "~> 0.1", only: :bench}, + {:poison, "~> 3.0", only: :bench}, + {:jiffy, "~> 0.14", only: :bench} + ] + end + + defp aliases do + ["bench": "run bench/run.exs"] + end +end diff --git a/mix.lock b/mix.lock new file mode 100644 index 0000000..f0c98ec --- /dev/null +++ b/mix.lock @@ -0,0 +1,8 @@ +%{"benchee": {:hex, :benchee, "0.8.0", "fe93506d05252ad82d72257f6549aab11664088a1307f26f0ab1acb172b8c35b", [:mix], [{:deep_merge, "~> 0.1", [hex: :deep_merge, repo: "hexpm", optional: false]}], "hexpm"}, + "benchee_html": {:hex, :benchee_html, "0.3.1", "4f784a567f2999e28d36c13356495f455fad4fb88c66a9c2db60ab2b60d11479", [:mix], [{:benchee, "~> 0.8", [hex: :benchee, repo: "hexpm", optional: false]}, {:benchee_json, ">= 0.3.1", [hex: :benchee_json, repo: "hexpm", optional: false]}], "hexpm"}, + "benchee_json": {:hex, :benchee_json, "0.3.1", "f1df8d92041cfd863d980ca40dcba1c852a705190e26cdd41732f76c6bd099d6", [:mix], [{:benchee, "~> 0.8", [hex: :benchee, repo: "hexpm", optional: false]}, {:poison, ">= 1.4.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"}, + "decimal": {:hex, :decimal, "1.3.1", "157b3cedb2bfcb5359372a7766dd7a41091ad34578296e951f58a946fcab49c6", [:mix], [], "hexpm"}, + "deep_merge": {:hex, :deep_merge, "0.1.1", "c27866a7524a337b6a039eeb8dd4f17d458fd40fbbcb8c54661b71a22fffe846", [:mix], [], "hexpm"}, + "elixir_make": {:hex, :elixir_make, "0.4.0", "992f38fabe705bb45821a728f20914c554b276838433349d4f2341f7a687cddf", [:mix], [], "hexpm"}, + "jiffy": {:hex, :jiffy, "0.14.11", "919a87d491c5a6b5e3bbc27fafedc3a0761ca0b4c405394f121f582fd4e3f0e5", [:rebar3], [], "hexpm"}, + "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm"}} diff --git a/test/antidote_test.exs b/test/antidote_test.exs new file mode 100644 index 0000000..a55ba86 --- /dev/null +++ b/test/antidote_test.exs @@ -0,0 +1,8 @@ +defmodule AntidoteTest do + use ExUnit.Case + doctest Antidote + + test "the truth" do + assert 1 + 1 == 2 + end +end diff --git a/test/test_helper.exs b/test/test_helper.exs new file mode 100644 index 0000000..869559e --- /dev/null +++ b/test/test_helper.exs @@ -0,0 +1 @@ +ExUnit.start()