hannesg / uri_template

A URI template library for ruby.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Partial expand changed behavior

plexus opened this issue · comments

Hi, I notice the behavior of URITemplate has changed between 0.6.0 and 0.7.0

URITemplate.new('/foo/{x}/{y}').expand_partial(x: 123).to_s
#0.6.0 => "/foo/123/{y}"
#0.7.0 => "/foo/123{x}/{y}"

is there an API to get the old behaviour? I'm using URITemplate for Yaks and this is blocking me from upgrading.

+1. No idea what to do with it now.