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

Why don't we generate jbuilder templates for Rails 5? #258

Merged
merged 1 commit into from
Mar 7, 2015
Merged

Why don't we generate jbuilder templates for Rails 5? #258

merged 1 commit into from
Mar 7, 2015

Conversation

amatsuda
Copy link
Member

@amatsuda amatsuda commented Mar 7, 2015

The patch has no test, but I confirmed that it works on my local rails/master app.

@rwz
Copy link
Collaborator

rwz commented Mar 7, 2015

Well, Jbuilder also depends on activesupport "< 5". I'm not sure I'm comfortable announcing that Rails 5 is supported just yet, and that PR kind of does that. Could we at wait until they at least release a beta?

I think we should.

@rwz
Copy link
Collaborator

rwz commented Mar 7, 2015

I'll leave this PR open and merge it to give credit once Rails 5 beta is available.

@amatsuda
Copy link
Member Author

amatsuda commented Mar 7, 2015

@rwz Thank you for the consideration, but activesupport "< 5" would not really be a problem in this case.
Because rails master is already versioned as 5.0.0.alpha
https://github.com/rails/rails/blob/ed9589ee62c3e19971d620aeab9c7e811cf154c4/RAILS_VERSION
which will actually match both <5 and >= 4 thanks to RubyGems' cleverness.

Gem::Version.new('5.0.0.alpha') < Gem::Version.new('5')
#=> true

@rwz
Copy link
Collaborator

rwz commented Mar 7, 2015

Alright, that makes sense. :)

rwz added a commit that referenced this pull request Mar 7, 2015
Why don't we generate jbuilder templates for Rails 5?
@rwz rwz merged commit 31128ec into rails:master Mar 7, 2015
@rwz
Copy link
Collaborator

rwz commented Mar 7, 2015

Released 2.2.11

@amatsuda amatsuda deleted the rails5 branch March 7, 2015 09:41
@amatsuda
Copy link
Member Author

amatsuda commented Mar 7, 2015

@rwz Thank you! 🌟

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