Add dependency on Elixir 1.5

to get this URI.merge fix: <https://github.com/elixir-lang/elixir/pull/6208>,
which fixes some failing tests of the JSON test suite
This commit is contained in:
Marcel Otto 2017-08-06 22:33:53 +02:00
parent 437ad4a814
commit 68c1d55fcc
5 changed files with 12 additions and 18 deletions

View file

@ -5,6 +5,16 @@ This project adheres to [Semantic Versioning](http://semver.org/) and
[Keep a CHANGELOG](http://keepachangelog.com).
## 0.1.1 - 2017-08-06
### Changed
- Don't support Elixir versions < 1.5, since `URI.merge` is broken in earlier versions
[Compare v0.1.0...v0.1.1](https://github.com/marcelotto/jsonld-ex/compare/v0.1.0...v0.1.1)
## 0.1.0 - 2017-06-25
Initial release

View file

@ -1 +1 @@
0.1.1-dev
0.1.1

View file

@ -9,7 +9,7 @@ defmodule JSON.LD.Mixfile do
[
app: :json_ld,
version: @version,
elixir: "~> 1.4", # TODO: "~> 1.5" for the fix of URI.merge
elixir: "~> 1.5",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),

View file

@ -12,15 +12,7 @@ defmodule JSON.LD.TestSuite.ExpandTest do
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0034] end)
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0035] end)
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0038] end)
# TODO: Fixed in next Elixir release
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0062] end)
|> Enum.each(fn %{"name" => name, "input" => input} = test_case ->
if input in ~w[expand-0062-in.jsonld] do
@tag skip: """
caused by a another problem in Elixirs URI.merge which should be fixed with next Elixir release
https://github.com/elixir-lang/elixir/pull/6208
"""
end
if input in ~w[expand-0034-in.jsonld expand-0035-in.jsonld expand-0038-in.jsonld] do
@tag skip: "TODO: Actually correct values are expanded, but the ordering is different."
end

View file

@ -11,15 +11,7 @@ defmodule JSON.LD.TestSuite.ToRdfTest do
test_cases("toRdf")
# TODO: Ordering problems
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0118] end)
# TODO: Fixed in next Elixir release
# |> Enum.filter(fn %{"@id" => id} -> id in ~w[#t0102] end)
|> Enum.each(fn %{"name" => name, "input" => input} = test_case ->
if input in ~w[toRdf-0102-in.jsonld] do
@tag skip: """
caused by a another problem in Elixirs URI.merge which should be fixed with next Elixir release
https://github.com/elixir-lang/elixir/pull/6208
"""
end
if input in ~w[toRdf-0118-in.jsonld] do
@tag skip: """
Actually an isomorphic graph is generated, but due to different ordering