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

Nokogiri should refuse to install on MinGW Ruby 2.2 #1266

Closed
marutosi opened this issue Mar 21, 2015 · 1 comment
Closed

Nokogiri should refuse to install on MinGW Ruby 2.2 #1266

marutosi opened this issue Mar 21, 2015 · 1 comment
Assignees

Comments

@marutosi
Copy link
Contributor

Rails 4.2 requires Nokogiri.
Redmine got feedbacks that Redmine 3.0.x (Rails 4.2.x) does not work on MinGW Ruby 2.2.

It is too hard to know why Redmine 3.0 does not work on MinGW Ruby 2.2.

You can refuse to install gem in gemspec.

spec = ::Gem::Specification.new do |spec|
  platforms = [:linux, :mingw]
  case RUBY_PLATFORM
  when /mingw/
    if RUBY_VERSION >= "2.2"
      fail 'This gem does not support MinGW Ruby 2.2'
    end
  else
    platform = :linux
  end
end
@marutosi marutosi changed the title Nokogiri should refuse to install MinGW Ruby 2.2 Nokogiri should refuse to install on MinGW Ruby 2.2 Mar 21, 2015
@knu
Copy link
Member

knu commented Mar 21, 2015

I'll handle this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants