2014-03-31 23:34:30 -04:00
|
|
|
#
|
|
|
|
# Gemspec for Windows platforms. We can't put these in the main gemspec because
|
|
|
|
# it results in bundler platform hell when trying to build the gem.
|
|
|
|
#
|
|
|
|
# Set $BUILD_PLATFORM when calling gem build with this gemspec to build for
|
|
|
|
# Windows platforms like x86-mingw32.
|
|
|
|
#
|
|
|
|
s = eval(File.read(File.join(File.dirname(__FILE__), 'rest-client.gemspec')))
|
|
|
|
|
2014-04-01 00:15:13 -04:00
|
|
|
platform = ENV['BUILD_PLATFORM'] || RUBY_PLATFORM
|
2014-03-31 23:34:30 -04:00
|
|
|
|
|
|
|
case platform
|
|
|
|
when /(mingw32|mswin32)/
|
2014-03-31 23:48:28 -04:00
|
|
|
# ffi is needed for RestClient::Windows::RootCerts
|
2014-03-31 23:34:30 -04:00
|
|
|
s.add_dependency('ffi', '~> 1.9.3')
|
|
|
|
s.platform = platform
|
|
|
|
end
|
|
|
|
|
|
|
|
s
|