Skip to content

Instantly share code, notes, and snippets.

@hone

hone/ruby.rb Secret

Created October 28, 2011 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hone/1b4927d1078d660218fb to your computer and use it in GitHub Desktop.
Save hone/1b4927d1078d660218fb to your computer and use it in GitHub Desktop.
require "bundler"
parser = Bundler::LockfileParser.new(File.read("Gemfile.lock"))
parser.platforms.detect do |platform|
/mingw|mswin/.match(platform.os) if platform.is_a?(Gem::Platform)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment