Skip to content

Releases: local-ch/local_uri

v1.2.0

17 Dec 12:11
e66945f
Compare
Choose a tag to compare

Remove parts of a query

uri = URI('https://local.ch?one=1&two=2&three=3')
uri.query.except(:two, :three).to_s # https://local.ch?one=1

except(keys) - Returns a uri which query includes everything except given keys.

except!(keys) - Removes the given keys from the query of the original uri and returns the uri itself.

v1.1.0

04 Sep 09:44
50581c1
Compare
Choose a tag to compare

Access data in queries

uri = URI('https://local.ch?id=1&place[name]=casa')
uri[:id] # '1'
uri.dig(:place, :name) # 'casa'

1.0.1

03 Sep 12:27
Compare
Choose a tag to compare

Dropin compatibility with ruby core URI.

🎉

29 Aug 13:24
bd00b79
Compare
Choose a tag to compare

v1.0.0