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

Fixes #34 - Phoenix 1.3-rc compatability #37

Merged

Conversation

wulymammoth
Copy link
Contributor

  • credit goes to KazW for leading the effort
  • addressing the Phoenix alias of :datetime for :naive_datetime source

- credit goes to [KazW](slime-lang#35) for leading the effort
- addressing the Phoenix alias of `:datetime` for `:naive_datetime` [source](https://github.com/phoenixframework/phoenix/blob/master/lib/mix/tasks/phx.gen.schema.ex#L30)
@wulymammoth
Copy link
Contributor Author

Wondering if we want to consider a version bump for this (lack of backward compatibility)

@@ -20,7 20,7 @@ defmodule PhoenixSlime.Mixfile do
end

def deps do
[{:phoenix, "~> 1.2"},
[{:phoenix, "~> 1.3-rc"},
Copy link
Member

Choose a reason for hiding this comment

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

I think we can stick with~> 1.2 and use allow_pre: false, can't we?

https://hexdocs.pm/elixir/Version.html

Copy link
Contributor Author

@wulymammoth wulymammoth Mar 22, 2017

Choose a reason for hiding this comment

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

I'll test this out when I get a chance a bit later today, but not sure it's going to work, because the code changes expect that attrs/1 and params/1 be under Mix.Phoenix.Schema and not Mix.Phoenix anymore...

Copy link
Contributor Author

@wulymammoth wulymammoth Mar 24, 2017

Choose a reason for hiding this comment

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

Just as I suspected. The specs fail when attempting to do stick to ~> 1.2 with allow_pre: false

How would you like to proceed?

Copy link
Member

Choose a reason for hiding this comment

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

We'll keep what you have @sudostack 👍

@doomspork
Copy link
Member

Sorry for the delays @sudostack, started a new job recently and it's keeping me busy 😀

One final comment and this is good to merge. Thanks again for your help!

@wulymammoth
Copy link
Contributor Author

wulymammoth commented Mar 22, 2017

@doomspork no worries, Sean! You maintain a ton of projects, too, and congrats! :)

@wulymammoth wulymammoth force-pushed the feature/phoenix_1.3rc_compatability branch 3 times, most recently from 50cbf9b to 01e1002 Compare March 24, 2017 01:41
@doomspork
Copy link
Member

Thank you again @sudostack 👍

@doomspork doomspork merged commit 3d0b893 into slime-lang:master Mar 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants