Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

add mingw_18 and mingw_19 as platform #845

Closed
wants to merge 1 commit into from

2 participants

@net1957

Hi,

You asked me to create a patch in issue #740. So this is my first one .. on github.

Hope this help

Cheers

@indirect
Owner

Done in 279c515

@net1957

Nice !

@joevandyk joevandyk referenced this pull request from a commit in joevandyk/bundler
@net1957 net1957 Add mingw_18 and mingw19 as platform for mingw with 1.8 or 1.9 RUBY v…
…ersion.

Closes #845
279c515
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 13, 2010
  1. @net1957

    Add mingw_18 and mingw19 as platform for mingw with 18 or 19 RUBY ver…

    net1957 authored
    …sion.
    
    Signed-off-by: serge <net1957@free.fr>
This page is out of date. Refresh to see the latest.
Showing with 21 additions and 1 deletion.
  1. +3 −0  .gitignore
  2. +12 −1 lib/bundler/dependency.rb
  3. +6 −0 man/gemfile.5.ronn
View
3  .gitignore
@@ -17,3 +17,6 @@ lib/bundler/man
# output from ci_reporter
spec/reports
+
+# Netbeans
+nbproject
View
13 lib/bundler/dependency.rb
@@ -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)
@@ -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
View
6 man/gemfile.5.ronn
@@ -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:
Something went wrong with that request. Please try again.