Module: Bootprint::Collectors::Toolchain
- Defined in:
- lib/bootprint/collectors/toolchain.rb
Class Method Summary collapse
Class Method Details
.capture ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/bootprint/collectors/toolchain.rb', line 12 def capture bundler_version = if defined?(Bundler::VERSION) Bundler::VERSION else Gem.loaded_specs["bundler"]&.version&.to_s || Gem::Specification.find_all_by_name("bundler").map(&:version).max&.to_s end { "rubygems_version" => Gem::VERSION, "bundler_version" => bundler_version } end |
.key ⇒ Object
10 |
# File 'lib/bootprint/collectors/toolchain.rb', line 10 def key = "toolchain" |