Sha256: ccfb778f27583d6c806e3a15783e88533cb36f46abb3ce2c7a26e32d45006cef
Contents?: true
Size: 507 Bytes
Versions: 31
Compression:
Stored size: 507 Bytes
Contents
# frozen_string_literal: true module Diffend # Verify if the plugin is enabled module Enabled class << self # Checks if plugin is enabled # # @return [Boolean] true if enabled, false otherwise def call ::Bundler .default_gemfile .read .split("\n") .reject(&:empty?) .map(&:strip) .select { |line| line.start_with?('plugin') } .any? { |line| line.include?('diffend') } end end end end
Version data entries
31 entries across 31 versions & 2 rubygems