lib/elastic_apm/util/inflector.rb in elastic-apm-1.0.1 vs lib/elastic_apm/util/inflector.rb in elastic-apm-1.0.2

- old
+ new

@@ -83,10 +83,10 @@ constantize(camel_cased_word) rescue NameError => e raise if e.name && !(camel_cased_word.to_s.split("::").include?(e.name.to_s) || e.name.to_s == camel_cased_word.to_s) rescue ArgumentError => e - raise unless /not missing constant #{const_regexp(camel_cased_word)}!$/.match?(e.message) + raise unless /not missing constant #{const_regexp(camel_cased_word)}!$/.match(e.message) end end end # rubocop:enable all end