pezra / exhal

Use HAL APIs with ease
MIT License
22 stars 15 forks source link

Update dependencies and warning cleanup for newer elixir versions #51

Closed d-mart closed 7 years ago

d-mart commented 7 years ago
iex(1)> Poison.Parser.parse("")
{:error, :invalid, 0}  # <-- new, previously: {:error, :invalid}

iex(2)> Poison.Parser.parse("c")
{:error, {:invalid, "c", 0}} # <-- existing parse error format still tolerated
d-mart commented 7 years ago

~Seems phoenix won't accept a 3.x Poison~, and there is probably a large overlap in user-base (certainly there is for my use case 😜 ). I will probably split this PR and hold off on the Poison parts.

pezra commented 7 years ago

Any way we could support poison 2.x and 3.x? maybe {:poison, "~>2.0 or ~>3.0 "}

d-mart commented 7 years ago

Yes. It also looks like phoenix has that very dep version description coming in 1.3.0-rcX.

pezra commented 7 years ago

All the () turds make me 😢.

pezra commented 7 years ago

Can we get a Travis build with the old and new versions of poison to make sure we don't break compatibility going forward.

d-mart commented 7 years ago

Sure! I can also pull the () commit, but seems to be the way things are going, and the warning spam could hide more legit problems.

pezra commented 7 years ago

Don't pull that commit. I am sad that elixir is going to require parens but that doesn't change anything.

On Jun 30, 2017 5:08 PM, "David Martinez" notifications@github.com wrote:

Sure! I can also pull the () commit, but seems to be the way things are going, and the warning spam could hide more legit problems.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/pezra/exhal/pull/51#issuecomment-312391237, or mute the thread https://github.com/notifications/unsubscribe-auth/AAAQGt_3WEg9uT10YxMTwAfnmXI4lkIqks5sJX_6gaJpZM4OF7V2 .

d-mart commented 7 years ago

I added some code in mix.exs to look for patterned environment variables to force deps (i.e. :poison) versions. I did this instead of having different mix-$WHATEVER.exs files so that there is still Just Oneâ„¢ list of deps to edit. This way, for most use cases, the fact that Travis can test multiple dep versions is hidden (other than some extra defp ... at the bottom of the file).

d-mart commented 7 years ago

I force-pushed a small change and it seems to have slipped thru Travis's fingers. Closing and re-opening to force a rebuild. brb

glassbead0 commented 7 years ago

any more changes needed for this PR?

pezra commented 7 years ago

released as 5.3