From 4ab77e8b4624bb2c6bea9c11215c1e1233587408 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Sat, 12 Sep 2020 04:55:08 +0530 Subject: [PATCH] Use require over require_relative for cross-lib calls Avoid using `require_relative` with relative path to lib. Use `require` instead. More details about this cop can be found at: https://docs.rubocop.org/rubocop-packaging/cops_packaging.html#packagingrequirerelativehardcodinglib Signed-off-by: Utkarsh Gupta --- tasks/documentation.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/documentation.rb b/tasks/documentation.rb index c47b5166..3abb38a7 100644 --- a/tasks/documentation.rb +++ b/tasks/documentation.rb @@ -1,4 +1,4 @@ -require_relative '../lib/shoulda/matchers/version' +require 'shoulda/matchers/version' require 'erb' module Shoulda