lib/cookstyle.rb in cookstyle-6.15.3 vs lib/cookstyle.rb in cookstyle-6.15.5
- old
+ new
@@ -1,9 +1,9 @@
# frozen_string_literal: true
require_relative 'cookstyle/version'
-require 'pathname'
-require 'yaml'
+require 'pathname' unless defined?(Pathname)
+require 'yaml' unless defined?(YAML)
# ensure the desired target version of RuboCop is gem activated
gem 'rubocop', "= #{Cookstyle::RUBOCOP_VERSION}"
require 'rubocop'
require_relative 'rubocop/monkey_patches/comment_config.rb'