Skip to content

Commit

Permalink
Solve Rubocop offenses: Style/MutableConstant
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken authored and dmarcoux committed Nov 5, 2018
1 parent 47f890f commit 4309ed5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module ObsFactory
# this class tracks the differences between Factory and the upcoming release
class DistributionStrategyOpenSUSELeap15 < DistributionStrategyFactory
SIGNATURE = /openSUSE:(?<full_name>.+:(?<version>(?<major_version>\d+)\.(?<minor_version>\d+)))/
SIGNATURE = /openSUSE:(?<full_name>.+:(?<version>(?<major_version>\d+)\.(?<minor_version>\d+)))/.freeze

def opensuse_leap_version
distribution[:version]
Expand Down
4 changes: 2 additions & 2 deletions src/api/lib/pretty_nested_errors/key_and_messages_parser.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module PrettyNestedErrors
class KeyAndMessagesParser
NESTED_ERROR_REGEX = /(\w+\[\d+\]\.)+(\w+)/
HAS_ONE_ERROR_REGEX = /(\w+)\.(\w+)/
NESTED_ERROR_REGEX = /(\w+\[\d+\]\.)+(\w+)/.freeze
HAS_ONE_ERROR_REGEX = /(\w+)\.(\w+)/.freeze

def initialize(base_model, key, messages, nested_error_messages, nested_error_groupings)
@base_model = base_model
Expand Down

0 comments on commit 4309ed5

Please sign in to comment.