diff options
author | James Tucker <jftucker@gmail.com> | 2015-01-06 10:04:09 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-02-19 10:57:38 -0800 |
commit | e74144097c191cbc78dc25bba8b681f9036270d6 (patch) | |
tree | dd86a7e5750a7b2ec569da43acb3b87d49b6c4b2 | |
parent | 14cbcac1382e1b0aeba6eb8624539fc8a7cadba7 (diff) | |
download | rack-e74144097c191cbc78dc25bba8b681f9036270d6.tar.gz |
did you know you could use turtles to shave yaks?
-rw-r--r-- | Gemfile | 19 |
1 files changed, 16 insertions, 3 deletions
@@ -2,9 +2,22 @@ source 'https://rubygems.org' gemspec +# What we need to do here is just *exclude* JRuby, but bundler has no way to do +# this, because of some argument that I know I had with Yehuda and Carl years +# ago, but I've since forgotten. Anyway, we actually need it here, and it's not +# avaialable, so prepare yourself for a yak shave when this breaks. +c_platforms = Bundler::Dsl::VALID_PLATFORMS.dup.delete_if do |platform| + # to_s because we still run 1.8 + platform.to_s =~ /jruby/ +end + +# Alternative solution that might work, but it has bad interactions with +# Gemfile.lock if that gets committed/reused: +# c_platforms = [:mri] if Gem.platforms.last.os == "java" + group :extra do - gem 'fcgi' + gem 'fcgi', :platforms => c_platforms gem 'memcache-client' - gem 'mongrel', '>= 1.2.0.pre2' - gem 'thin' + gem 'mongrel', '>= 1.2.0.pre2', :platforms => c_platforms + gem 'thin', :platforms => c_platforms end |