Created
September 3, 2019 08:38
-
-
Save rhymes/27ded12b11252120f86f637520f24f10 to your computer and use it in GitHub Desktop.
Detect with gems have C-based extensions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://mailchi.mp/railsspeed/the-gvl-and-c-extensions-a-cooperative-partnership | |
require 'rubygems' | |
gems = Gem::Specification.each.select { |spec| spec.extensions.any? } | |
puts gems.map(&:full_name).map {|x| x.split('-', 2).first }.sort.uniq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment