Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Add mingw_18 and mingw19 as platform for mingw with 18 or 19 RUBY ver…
Browse files Browse the repository at this point in the history
…sion.

Signed-off-by: serge <net1957@free.fr>
  • Loading branch information
net1957 committed Nov 13, 2010
1 parent 6a94687 commit a8d2771
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -17,3 +17,6 @@ lib/bundler/man

# output from ci_reporter
spec/reports

# Netbeans
nbproject
13 changes: 12 additions & 1 deletion lib/bundler/dependency.rb
Expand Up @@ -17,7 +17,9 @@ class Dependency < Gem::Dependency
:mri_19 => Gem::Platform::RUBY,
:jruby => Gem::Platform::JAVA,
:mswin => Gem::Platform::MSWIN,
:mingw => Gem::Platform::MINGW
:mingw => Gem::Platform::MINGW,
:mingw_18 => Gem::Platform::MINGW,
:mingw_19 => Gem::Platform::MINGW
}.freeze

def initialize(name, version, options = {}, &blk)
Expand Down Expand Up @@ -115,5 +117,14 @@ def mswin?
def mingw?
Bundler::WINDOWS && Gem::Platform.local.os == "mingw32"
end

def mingw_18?
mingw? && RUBY_VERSION < "1.9"
end

def mingw_19?
mingw? && RUBY_VERSION >= "1.9"
end

end
end
6 changes: 6 additions & 0 deletions man/gemfile.5.ronn
Expand Up @@ -124,6 +124,12 @@ There are a number of `Gemfile` platforms:
JRuby
* `mswin`:
Windows
* `mingw`:
Windows 'mingw32' platform (aka RubyInstaller)
* `mingw_18`:
_mingw_ `AND` version 1.8
* `mingw_19`:
_mingw_ `AND` version 1.9

As with groups, you can specify one or more platforms:

Expand Down

0 comments on commit a8d2771

Please sign in to comment.