Browse Source

Tweak gem dependencies to improve platform support for *BSD and Solaris.

* ffi: pull in unreleased fixes from GitHub master on *BSD.

* tzinfo: require >=1.2.0 to gain support for *BSD and Solaris,
  eliminating the need for the tzinfo-data gem.
Akinori MUSHA 10 years ago
parent
commit
db847be31b
1 changed files with 14 additions and 6 deletions
  1. 14 6
      Gemfile

+ 14 - 6
Gemfile

@@ -14,14 +14,22 @@ gem 'protected_attributes', '~>1.0.8'
 gem 'rails' , '4.1.4'
 
 case RUBY_PLATFORM
-when /freebsd/
-  # Seems FreeBSD's zoneinfo is not exactly what tzinfo expects
-  gem 'tzinfo-data'
-else
-  # Windows does not include zoneinfo files, so bundle the tzinfo-data gem
-  gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
+when /freebsd|netbsd|openbsd/
+  # ffi (required by typhoeus via ethon) merged fixes for bugs fatal
+  # on these platforms after 1.9.3; no following release as yet.
+  gem 'ffi', github: 'ffi/ffi', branch: 'master'
+
+  # tzinfo 1.2.0 has added support for reading zoneinfo on these
+  # platforms.
+  gem 'tzinfo', '>= 1.2.0'
+when /solaris/
+  # ditto
+  gem 'tzinfo', '>= 1.2.0'
 end
 
+# Windows does not have zoneinfo files, so bundle the tzinfo-data gem.
+gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw]
+
 gem 'mysql2', '~> 0.3.16'
 gem 'devise', '~> 3.2.4'
 gem 'kaminari', '~> 0.16.1'