-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: upgrade stream_data #149
base: master
Are you sure you want to change the base?
Changes from 3 commits
bd8e5f6
8b9034c
651f0ac
abea59a
6baaf02
71c0fa5
9a50feb
f33dead
698c913
1e428d8
5aed05d
6ae8792
44d4808
9de8549
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,19 +2,20 @@ defmodule Norm.MixProject do | |
use Mix.Project | ||
|
||
@version "0.13.0" | ||
@source_url "https://github.com/elixir-toniq/norm" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid duplicating this value, updated source url. |
||
|
||
def project do | ||
def(project) do | ||
[ | ||
app: :norm, | ||
version: @version, | ||
elixir: "~> 1.7", | ||
elixir: "~> 1.11", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The GH workflow file seems to be testing this matrix: I guess that matrix should be updated, but I prefer to ask first here first. |
||
elixirc_paths: elixirc_paths(Mix.env()), | ||
start_permanent: Mix.env() == :prod, | ||
deps: deps(), | ||
description: description(), | ||
package: package(), | ||
name: "Norm", | ||
source_url: "https://github.com/keathley/norm", | ||
source_url: @source_url, | ||
docs: docs() | ||
] | ||
end | ||
|
@@ -31,7 +32,7 @@ defmodule Norm.MixProject do | |
defp deps do | ||
[ | ||
{:credo, "~> 1.4", only: [:dev, :test], runtime: false}, | ||
{:stream_data, "~> 0.5", optional: true}, | ||
{:stream_data, "~> 0.6 or ~> 1.0", optional: true}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Main reason for this PR, updating |
||
{:ex_doc, "~> 0.19", only: [:dev, :test]} | ||
] | ||
end | ||
|
@@ -49,14 +50,14 @@ defmodule Norm.MixProject do | |
[ | ||
name: "norm", | ||
licenses: ["MIT"], | ||
links: %{"GitHub" => "https://github.com/keathley/norm"} | ||
links: %{"GitHub" => @source_url} | ||
] | ||
end | ||
|
||
def docs do | ||
[ | ||
source_ref: "v#{@version}", | ||
source_url: "https://github.com/keathley/norm", | ||
source_url: @source_url, | ||
main: "Norm" | ||
] | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,11 +153,11 @@ defmodule Norm.Core.SchemaTest do | |
assert input == conform!(input, User.s()) | ||
assert {:error, errors} = conform(%User{name: :foo, age: "31", email: 42}, User.s()) | ||
|
||
assert errors == [ | ||
assert MapSet.equal?(MapSet.new(errors), MapSet.new([ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unit test failing locally, at least with |
||
%{spec: "is_integer()", input: "31", path: [:age]}, | ||
%{spec: "is_binary()", input: 42, path: [:email]}, | ||
%{spec: "is_binary()", input: :foo, path: [:name]} | ||
] | ||
])) | ||
end | ||
|
||
test "only checks the keys that have specs" do | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes the following compilation warning: