Sha256: bc324c105f75273d497e0ee8f7fd3d7712329b9de67b03463502a7465edc20c1

Contents?: true

Size: 256 Bytes

Versions: 9

Compression:

Stored size: 256 Bytes

Contents

require 'uri'

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

ComplexConfig::Provider.add_plugin ComplexConfig::Plugins::URI

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
complex_config-0.6.0 lib/complex_config/plugins/uri.rb
complex_config-0.5.2 lib/complex_config/plugins/uri.rb
complex_config-0.5.0 lib/complex_config/plugins/uri.rb
complex_config-0.4.0 lib/complex_config/plugins/uri.rb
complex_config-0.3.1 lib/complex_config/plugins/uri.rb
complex_config-0.3.0 lib/complex_config/plugins/uri.rb
complex_config-0.2.3 lib/complex_config/plugins/uri.rb
complex_config-0.2.2 lib/complex_config/plugins/uri.rb
complex_config-0.2.1 lib/complex_config/plugins/uri.rb