platform
- 1_8_6_287
- 1_8_7_72
- 1_8_7_330
- 1_9_1_378
- 1_9_2_180
- 1_9_3_125
- 1_9_3_392
- 2_1_10 (0)
- 2_2_9 (38)
- 2_4_6 (0)
- 2_5_5 (0)
- 2_6_3 (0)
- What's this?
platform(*platforms)
public
:category: Gem Dependencies DSL
Block form for restricting gems to a set of platforms.
The gem dependencies platform is different from Gem::Platform. A platform gem.deps.rb platform matches on the ruby engine, the ruby version and whether or not windows is allowed.
:ruby, :ruby_XY |
Matches non-windows, non-jruby implementations where X and Y can be used to match releases in the 1.8, 1.9, 2.0 or 2.1 series. |
:mri, :mri_XY |
Matches non-windows C Ruby (Matz Ruby) or only the 1.8, 1.9, 2.0 or 2.1 series. |
:mingw, :mingw_XY |
Matches 32 bit C Ruby on MinGW or only the 1.8, 1.9, 2.0 or 2.1 series. |
:x64_mingw, :x64_mingw_XY |
Matches 64 bit C Ruby on MinGW or only the 1.8, 1.9, 2.0 or 2.1 series. |
:mswin, :mswin_XY |
Matches 32 bit C Ruby on Microsoft Windows or only the 1.8, 1.9, 2.0 or 2.1 series. |
:mswin64, :mswin64_XY |
Matches 64 bit C Ruby on Microsoft Windows or only the 1.8, 1.9, 2.0 or 2.1 series. |
:jruby, :jruby_XY |
Matches JRuby or JRuby in 1.8 or 1.9 mode. |
:maglev |
Matches Maglev |
:rbx |
Matches non-windows Rubinius |
NOTE: There is inconsistency in what environment a platform matches. You may need to read the source to know the exact details.