Actions
Defect #22158
closedAdd x64_mingw to Gemfile platforms
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Ruby support
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Invalid
Affected version:
Description
Default Gemfile specifies platforms for rmagick, and database adapter gems. When using Windows, Ruby 2.2.4x64, bundler 1.11;
bundle platform returns:Your platform is x64-mingw32
so;bundle install does not install rmagick or database adapter gems because this platform is not included in Gemfile.
When i add @:x64_mingw" to platforms, bundler now sees and installs these gems.
So my Gemfile is like;
platforms :mri, :mingw, :x64_mingw do
# Optional gem for exporting the gantt to a PNG file, not supported with jruby
group :rmagick do
# RMagick 2 supports ruby 1.9
# RMagick 1 would be fine for ruby 1.8 but Bundler does not support
# different requirements for the same gem on different platforms
gem "rmagick", (RUBY_VERSION < "1.9" ? "2.13.3" : ">= 2.0.0")
end
# Optional Markdown support, not for JRuby
group :markdown do
# TODO: upgrade to redcarpet 3.x when ruby1.8 support is dropped
gem "redcarpet", "~> 2.3.0"
end
end
and
.. gem "mysql2", "~> 0.3.11", :platforms => [:mri, :mingw, :x64_mingw] ..
Thanks.
Actions