From 9112090606283e8d04c5ec91b27dbc41efa8d56a Mon Sep 17 00:00:00 2001 From: Roman Heinrich Date: Fri, 6 Sep 2024 23:40:23 +0200 Subject: [PATCH] Chore: prepare first release --- CHANGELOG.md | 5 +++++ LICENCE | 21 +++++++++++++++++++++ mix.exs | 26 ++++++++++++++++++++++---- mix.lock | 8 ++++++++ 4 files changed, 56 insertions(+), 4 deletions(-) create mode 100644 CHANGELOG.md create mode 100644 LICENCE create mode 100644 mix.lock diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..4a998d8 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,5 @@ +## v0.1.0 (2024-09-06) + +### First release + +- already quite usable, there might still be some missing features \ No newline at end of file diff --git a/LICENCE b/LICENCE new file mode 100644 index 0000000..139df78 --- /dev/null +++ b/LICENCE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2024 Roman Heinrich + +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. \ No newline at end of file diff --git a/mix.exs b/mix.exs index dd6f644..bbc37a2 100644 --- a/mix.exs +++ b/mix.exs @@ -1,15 +1,23 @@ defmodule GenCache.MixProject do use Mix.Project + @github_url "https://github.com/maxohq/gen_cache" + @version "0.1.0" + @description "gen_statem based generic cache with MFA-based keys" + def project do [ app: :gen_cache, - version: "0.1.0", + source_url: @github_url, + version: @version, + description: @description, elixir: "~> 1.14", start_permanent: Mix.env() == :prod, deps: deps(), + package: package(), test_paths: ["lib"], - test_pattern: "*_test.exs" + test_pattern: "*_test.exs", + docs: [extras: ["README.md"]] ] end @@ -21,11 +29,21 @@ defmodule GenCache.MixProject do ] end + defp package do + [ + files: ~w(lib mix.exs README* CHANGELOG* LICENCE*), + licenses: ["MIT"], + links: %{ + "Github" => @github_url, + "Changelog" => "#{@github_url}/blob/main/CHANGELOG.md" + } + ] + end + # Run "mix help deps" to learn about dependencies. defp deps do [ - # {:dep_from_hexpm, "~> 0.3.0"}, - # {:dep_from_git, git: "https://github.com/elixir-lang/my_dep.git", tag: "0.1.0"} + {:ex_doc, "~> 0.29", only: :dev, runtime: false} ] end end diff --git a/mix.lock b/mix.lock new file mode 100644 index 0000000..e702a12 --- /dev/null +++ b/mix.lock @@ -0,0 +1,8 @@ +%{ + "earmark_parser": {:hex, :earmark_parser, "1.4.41", "ab34711c9dc6212dda44fcd20ecb87ac3f3fce6f0ca2f28d4a00e4154f8cd599", [:mix], [], "hexpm", "a81a04c7e34b6617c2792e291b5a2e57ab316365c2644ddc553bb9ed863ebefa"}, + "ex_doc": {:hex, :ex_doc, "0.34.2", "13eedf3844ccdce25cfd837b99bea9ad92c4e511233199440488d217c92571e8", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "5ce5f16b41208a50106afed3de6a2ed34f4acfd65715b82a0b84b49d995f95c1"}, + "makeup": {:hex, :makeup, "1.1.2", "9ba8837913bdf757787e71c1581c21f9d2455f4dd04cfca785c70bbfff1a76a3", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "cce1566b81fbcbd21eca8ffe808f33b221f9eee2cbc7a1706fc3da9ff18e6cac"}, + "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, + "makeup_erlang": {:hex, :makeup_erlang, "1.0.1", "c7f58c120b2b5aa5fd80d540a89fdf866ed42f1f3994e4fe189abebeab610839", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "8a89a1eeccc2d798d6ea15496a6e4870b75e014d1af514b1b71fa33134f57814"}, + "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, +}