summary refs log tree commit
diff options
context:
space:
mode:
authorJames Tucker <jftucker@gmail.com>2015-01-06 10:04:09 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2015-02-19 10:57:38 -0800
commite74144097c191cbc78dc25bba8b681f9036270d6 (patch)
treedd86a7e5750a7b2ec569da43acb3b87d49b6c4b2
parent14cbcac1382e1b0aeba6eb8624539fc8a7cadba7 (diff)
downloadrack-e74144097c191cbc78dc25bba8b681f9036270d6.tar.gz
did you know you could use turtles to shave yaks?
-rw-r--r--Gemfile19
1 files changed, 16 insertions, 3 deletions
diff --git a/Gemfile b/Gemfile
index e3583c56..d764d402 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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