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

Commit

Permalink
First pass at a mingw platform
Browse files Browse the repository at this point in the history
  • Loading branch information
indirect committed Oct 27, 2010
1 parent 5ef9342 commit 6c9c2e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
9 changes: 7 additions & 2 deletions lib/bundler/dependency.rb
Expand Up @@ -16,7 +16,8 @@ class Dependency < Gem::Dependency
:mri_18 => Gem::Platform::RUBY,
:mri_19 => Gem::Platform::RUBY,
:jruby => Gem::Platform::JAVA,
:mswin => Gem::Platform::MSWIN
:mswin => Gem::Platform::MSWIN,
:mingw => Gem::Platform::MINGW
}.freeze

def initialize(name, version, options = {}, &blk)
Expand Down Expand Up @@ -108,7 +109,11 @@ def jruby?
end

def mswin?
# w0t?
Bundler::WINDOWS
end

def mingw?
Bundler::WINDOWS
end
end
end
2 changes: 1 addition & 1 deletion lib/bundler/resolver.rb
Expand Up @@ -24,7 +24,7 @@ class Resolver
ALL = [ Gem::Platform::RUBY,
Gem::Platform::JAVA,
Gem::Platform::MSWIN,
Gem::Platform::MING]
Gem::Platform::MINGW ]

class SpecGroup < Array
include GemHelpers
Expand Down
2 changes: 1 addition & 1 deletion lib/bundler/rubygems_ext.rb
Expand Up @@ -121,7 +121,7 @@ def to_lock
class Platform
JAVA = Gem::Platform.new('java')
MSWIN = Gem::Platform.new('mswin32')
MING = Gem::Platform.new('x86-mingw32')
MINGW = Gem::Platform.new('mingw32')

def hash
@cpu.hash ^ @os.hash ^ @version.hash
Expand Down

0 comments on commit 6c9c2e8

Please sign in to comment.