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

Added 'tzinfo-data' if we are using jruby #17423

Merged
merged 1 commit into from
Oct 29, 2014

Conversation

lukefx
Copy link
Contributor

@lukefx lukefx commented Oct 29, 2014

I develop Rails on Windows, yepp...shame on me. With JRuby I find myself to add 'tzinfo-data' gem everytime I start a new project.
RUBY_PLATFORM with JRuby is always 'java', so we have to match this case, but It's a little bit
tricky to find out if we are using JRuby on Windows.
I don't want to add and if-else clause for just one case, It's a problem to add it everytime we have Platform == 'java'? Can we add it to default if platform is jruby?
Otherwise we can check if:

Gem.win_platform? && PLATFORM.match(/java/)

spastorino added a commit that referenced this pull request Oct 29, 2014
Added 'tzinfo-data' if we are using jruby
@spastorino spastorino merged commit 76bec59 into rails:master Oct 29, 2014
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.

None yet

2 participants