Skip to content
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

Fix a couple typespecs in Cocktail.Span #66

Merged
merged 1 commit into from
Nov 8, 2018

Conversation

dhedlund
Copy link
Member

@dhedlund dhedlund commented Nov 8, 2018

Bump the version of dialyxir so it supports --format dialyxir, and fix a couple typespecs that were overly strict .

  • Only the first argument of Cocktail.Span.compare/2 and Cocktail.Span.overlap_mode/2 had been relaxed to accept any map that defined a :from and :until property. This PR relaxes the type of both arguments.

  • One of the return values from Cocktail.Span.overlap_mode/2 was not being included in the typespec for that function.

@codecov
Copy link

codecov bot commented Nov 8, 2018

Codecov Report

Merging #66 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #66   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          19     19           
  Lines         323    323           
=====================================
  Hits          323    323
Impacted Files Coverage Δ
lib/cocktail/span.ex 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0317d86...3d2f28b. Read the comment docs.

mix.exs Outdated
@@ -63,7 +63,7 @@ defmodule Cocktail.Mixfile do
defp deps do
[
{:credo, "~> 0.8", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 0.5", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev, :test], runtime: false},
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would require us to release an rc rather than a regular release. Downgrade this to latest stable if you want me to make a new non-rc release.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've pushed a set of changes that no longer include bumping the version of dialyxir.

@dhedlund dhedlund changed the title Bump dialyxir to 1.0.0-rc.4, fix a couple typespecs Fix a couple typespecs in Cocktail.Span Nov 8, 2018
@doughsay doughsay merged commit 8bd6d5e into peek-travel:master Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants