From cba459f27ea0d11b8c14acc6fd317adb7f4c3112 Mon Sep 17 00:00:00 2001 From: Andy Brody Date: Mon, 31 Mar 2014 21:15:13 -0700 Subject: [PATCH] Use the Windows gemspec in the Gemfile on Windows. --- Gemfile | 6 +++++- rest-client.gemspec.windows => rest-client.windows.gemspec | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) rename rest-client.gemspec.windows => rest-client.windows.gemspec (92%) diff --git a/Gemfile b/Gemfile index 122c549..2cb5d77 100644 --- a/Gemfile +++ b/Gemfile @@ -1,6 +1,10 @@ source "https://rubygems.org" -gemspec +if !!File::ALT_SEPARATOR + gemspec :name => 'rest-client.windows' +else + gemspec +end group :test do gem 'rake' diff --git a/rest-client.gemspec.windows b/rest-client.windows.gemspec similarity index 92% rename from rest-client.gemspec.windows rename to rest-client.windows.gemspec index db52d7e..d593041 100644 --- a/rest-client.gemspec.windows +++ b/rest-client.windows.gemspec @@ -8,7 +8,7 @@ s = eval(File.read(File.join(File.dirname(__FILE__), 'rest-client.gemspec'))) -platform = ENV['BUILD_PLATFORM'] +platform = ENV['BUILD_PLATFORM'] || RUBY_PLATFORM case platform when /(mingw32|mswin32)/