lib/complex_config/plugins/uri.rb in complex_config-0.6.0 vs lib/complex_config/plugins/uri.rb in complex_config-0.7.0

- old
+ new

@@ -1,9 +1,10 @@ require 'uri' module ComplexConfig::Plugins URI = -> id do - if url = id.to_s.sub(/uri\z/, 'url') and url = ask_and_send(url) + url = id.to_s + if url.sub!(/uri\z/, 'url') and url = ask_and_send(url) ::URI.parse(url) else skip end end