lib/gitlab_exporter/util.rb in gitlab-exporter-8.0.0 vs lib/gitlab_exporter/util.rb in gitlab-exporter-9.0.0
- old
+ new
@@ -22,10 +22,10 @@
end
# Helper methods, some stuff was copied from ActiveSupport
module Utils
def camel_case_string(str)
- str.gsub(/(?:_|^)([a-z\d]*)/i) { $1.capitalize } # rubocop:disable PerlBackrefs
+ str.gsub(/(?:_|^)([a-z\d]*)/i) { $1.capitalize } # rubocop:disable Style/PerlBackrefs
end
module_function :camel_case_string
def deep_symbolize_hash_keys(hash)
deep_transform_keys_in_object(hash, &:to_sym)