Sha256: 4a3a76af2049ca2bfa636840b94a02f6f93b95faf3192fa888c42f947ea37e32
Contents?: true
Size: 487 Bytes
Versions: 1
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true require 'addressable' require 'excon' require 'excon/addressable/version' Excon.defaults[:uri_parser] = Addressable::URI # :nodoc: module Excon # Addressable addition to Excon. # module Addressable def new(url, params = {}) if (template = ::Addressable::Template.new(url)) && template.variables.any? url = template.expand(params.delete(:expand).to_h) end super end end singleton_class.prepend Addressable end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
excon-addressable-0.1.1 | lib/excon/addressable.rb |