Sha256: 2af9f45aafa12e0715b184fe928fcc53c9cae8e3e516e0bdb1bcb8d68dcaa308

Contents?: true

Size: 269 Bytes

Versions: 15

Compression:

Stored size: 269 Bytes

Contents

require 'uri'

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

15 entries across 15 versions & 1 rubygems

Version Path
complex_config-0.22.2 lib/complex_config/plugins/uri.rb
complex_config-0.22.1 lib/complex_config/plugins/uri.rb
complex_config-0.22.0 lib/complex_config/plugins/uri.rb
complex_config-0.21.2 lib/complex_config/plugins/uri.rb
complex_config-0.21.1 lib/complex_config/plugins/uri.rb
complex_config-0.21.0 lib/complex_config/plugins/uri.rb
complex_config-0.20.0 lib/complex_config/plugins/uri.rb
complex_config-0.19.4 lib/complex_config/plugins/uri.rb
complex_config-0.19.3 lib/complex_config/plugins/uri.rb
complex_config-0.19.2 lib/complex_config/plugins/uri.rb
complex_config-0.19.1 lib/complex_config/plugins/uri.rb
complex_config-0.19.0 lib/complex_config/plugins/uri.rb
complex_config-0.18.2 lib/complex_config/plugins/uri.rb
complex_config-0.18.1 lib/complex_config/plugins/uri.rb
complex_config-0.18.0 lib/complex_config/plugins/uri.rb