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:
parent
437ad4a814
commit
68c1d55fcc
10
CHANGELOG.md
10
CHANGELOG.md
|
@ -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
|
||||
|
|
2
mix.exs
2
mix.exs
|
@ -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(),
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue