Skip to content

Commit

Permalink
Use platforms instead of install_if (#8140)
Browse files Browse the repository at this point in the history
Merge pull request 8140
  • Loading branch information
dleidert committed Apr 27, 2020
1 parent 59f1b9a commit acf9259
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -74,15 +74,15 @@ group :jekyll_optional_dependencies do
gem "rdoc", "~> 6.0"
gem "tomlrb", "~> 1.2"

platform :ruby, :mswin, :mingw, :x64_mingw do
platforms :ruby, :mswin, :mingw, :x64_mingw do
gem "classifier-reborn", "~> 2.2"
gem "liquid-c", "~> 4.0"
gem "yajl-ruby", "~> 1.4"
end

# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
platforms :jruby, :mswin, :mingw, :x64_mingw do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
Expand Down
4 changes: 2 additions & 2 deletions lib/jekyll/commands/new.rb
Expand Up @@ -91,13 +91,13 @@ def gemfile_contents
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
platforms :mingw, :x64_mingw, :mswin, :jruby do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
RUBY
end
Expand Down

0 comments on commit acf9259

Please sign in to comment.