Module: Diffend::LocalContext::Platform

Defined in:
lib/diffend/local_context/platform.rb

Overview

Module responsible for building platform information from local context

Class Method Summary collapse

Class Method Details

.callHash

Build platform information

Returns:

  • (Hash)


12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/diffend/local_context/platform.rb', line 12

def call
  {
    'bundler' => {
      'version' => ::Bundler::VERSION
    },
    'environment' => environment,
    'ruby' => ruby_information,
    'rubygems' => {
      'specification_version' => Gem::Specification::CURRENT_SPECIFICATION_VERSION,
      'version' => Gem::VERSION
    }
  }.freeze
end