From 6e00fc46f5609ba317d3428605f1bd6ca8d5f2dc Mon Sep 17 00:00:00 2001 From: Eduardo Candanedo Date: Thu, 8 Feb 2024 00:46:38 -0600 Subject: [PATCH] Fix rubocop alerts --- lib/use_paragon.rb | 4 +++- lib/use_paragon/configuration.rb | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/use_paragon.rb b/lib/use_paragon.rb index 2e715f4..671c7c7 100644 --- a/lib/use_paragon.rb +++ b/lib/use_paragon.rb @@ -7,13 +7,15 @@ require "use_paragon/version" require "use_paragon/workflow" +# UseParagon gem base module module UseParagon + # Configuration from initializer class << self def configuration @configuration ||= Configuration.new end - def configure(&block) + def configure yield(configuration) end end diff --git a/lib/use_paragon/configuration.rb b/lib/use_paragon/configuration.rb index 223dd37..0a3c726 100644 --- a/lib/use_paragon/configuration.rb +++ b/lib/use_paragon/configuration.rb @@ -5,4 +5,4 @@ module UseParagon class Configuration attr_accessor :private_key, :project_id end -end \ No newline at end of file +end