Sha256: ba5cf7b37bddb3bbbf92847eb66a1d11e0a4e8fe362be565d39711791646e474

Contents?: true

Size: 265 Bytes

Versions: 23

Compression:

Stored size: 265 Bytes

Contents

require 'uri'

module ComplexConfig::Plugins
  URI = -> id do
    url = id.to_s
    if url.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

23 entries across 23 versions & 1 rubygems

Version Path
complex_config-0.17.1 lib/complex_config/plugins/uri.rb
complex_config-0.17.0 lib/complex_config/plugins/uri.rb
complex_config-0.16.0 lib/complex_config/plugins/uri.rb
complex_config-0.15.1 lib/complex_config/plugins/uri.rb
complex_config-0.15.0 lib/complex_config/plugins/uri.rb
complex_config-0.14.1 lib/complex_config/plugins/uri.rb
complex_config-0.14.0 lib/complex_config/plugins/uri.rb
complex_config-0.13.3 lib/complex_config/plugins/uri.rb
complex_config-0.13.2 lib/complex_config/plugins/uri.rb
complex_config-0.13.1 lib/complex_config/plugins/uri.rb
complex_config-0.13.0 lib/complex_config/plugins/uri.rb
complex_config-0.12.1 lib/complex_config/plugins/uri.rb
complex_config-0.12.0 lib/complex_config/plugins/uri.rb
complex_config-0.11.3 lib/complex_config/plugins/uri.rb
complex_config-0.11.2 lib/complex_config/plugins/uri.rb
complex_config-0.11.1 lib/complex_config/plugins/uri.rb
complex_config-0.11.0 lib/complex_config/plugins/uri.rb
complex_config-0.10.0 lib/complex_config/plugins/uri.rb
complex_config-0.9.2 lib/complex_config/plugins/uri.rb
complex_config-0.9.1 lib/complex_config/plugins/uri.rb