From eea2ce7aaeb574bf84bedb0b607d39ecd8318e53 Mon Sep 17 00:00:00 2001 From: Hermann Mayer Date: Tue, 25 Feb 2025 09:59:34 +0100 Subject: [PATCH] Corrected some RuboCop glitches. (#30) Signed-off-by: Hermann Mayer --- .rubocop.yml | 2 ++ CHANGELOG.md | 2 +- lib/billomat/models/base.rb | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 2000577..ce5f7bc 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,7 @@ require: - rubocop-rspec + +plugins: - rubocop-rails Rails: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8880f62..1957514 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ ### next -* TODO: Replace this bullet point with an actual description of a change. +* Corrected some RuboCop glitches (#30) ### 1.5.0 (30 January 2025) diff --git a/lib/billomat/models/base.rb b/lib/billomat/models/base.rb index 8cfab72..fb2e355 100644 --- a/lib/billomat/models/base.rb +++ b/lib/billomat/models/base.rb @@ -31,7 +31,7 @@ def self.where(hash = {}) # @param data [Hash] the attributes of the object # @return [Billomat::Models::Base] the record as an object # - # rubocop:disable Style/OpenStructUse because of the convenient + # rubocop:disable Style/OpenStructUse -- because of the convenient # dynamic data access def initialize(data = {}) @data = OpenStruct.new(data) @@ -51,7 +51,7 @@ def save # @return [TrueClass] # - # rubocop:disable Style/OpenStructUse because of the convenient + # rubocop:disable Style/OpenStructUse -- because of the convenient # dynamic data access def create resp = Billomat::Gateway.new(