Prepare mix file for Hex package publishing

This commit is contained in:
Marcel Otto 2017-06-25 00:32:50 +02:00
parent b413c45d8a
commit 94a5bfa88e
2 changed files with 22 additions and 11 deletions

View file

@ -50,7 +50,7 @@ Let's see how the different types of nodes are represented with RDF.ex in Elixir
### URIs
Although the RDF standards speaks of IRIs, an internationalized generalization of URIs, RDF.ex currently supports only URIs. They are represented with Elixirs builtin [`URI`](http://elixir-lang.org/docs/stable/elixir/URI.html) struct. It's a pragmatic, temporary decision, which will likely be subject to changes, in favour of a more dedicated representation of IRIs specialised for its usage within RDF data. See this [issue](https://github.com/marcelotto/rdf/issues/1) for progress on this matter.
Although the RDF standards speaks of IRIs, an internationalized generalization of URIs, RDF.ex currently supports only URIs. They are represented with Elixirs builtin [`URI`](http://elixir-lang.org/docs/stable/elixir/URI.html) struct. It's a pragmatic, temporary decision, which will likely be subject to changes, in favour of a more dedicated representation of IRIs specialised for its usage within RDF data. See this [issue](https://github.com/marcelotto/rdf-ex/issues/1) for progress on this matter.
The `RDF` module defines a handy constructor function `RDF.uri/1`:

31
mix.exs
View file

@ -1,7 +1,9 @@
defmodule RDF.Mixfile do
use Mix.Project
@version "0.0.1"
@repo_url "https://github.com/marcelotto/rdf-ex"
@version "0.1.0"
def project do
[
@ -10,9 +12,20 @@ defmodule RDF.Mixfile do
elixir: "~> 1.3",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
description: description(),
deps: deps(),
# Hex
package: package(),
deps: deps()
description: description(),
# Docs
name: "RDF.ex",
docs: [
main: "RDF",
source_url: @repo_url,
source_ref: "v#{@version}",
extras: ["README.md"],
]
]
end
@ -24,11 +37,9 @@ defmodule RDF.Mixfile do
defp package do
[
name: :rdf,
maintainers: ["Marcel Otto"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/rdfex/rdf",
"Docs" => "http://rdfex.github.io/rdf)/"},
links: %{"GitHub" => @repo_url},
files: ["lib", "priv", "mix.exs", "README*", "readme*", "LICENSE*", "license*"]
]
end
@ -39,10 +50,10 @@ defmodule RDF.Mixfile do
defp deps do
[
{:dialyxir, "~> 0.4", only: [:dev, :test]},
{:credo, "~> 0.6", only: [:dev, :test]},
{:ex_doc, "~> 0.14", only: :dev},
{:mix_test_watch, "~> 0.3", only: :dev},
{:dialyxir, "~> 0.4", only: [:dev, :test], runtime: false},
{:credo, "~> 0.6", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.14", only: :dev, runtime: false},
{:mix_test_watch, "~> 0.3", only: :dev, runtime: false},
]
end
end