Releases: local-ch/local_uri
Releases · local-ch/local_uri
v1.2.0
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
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
Dropin compatibility with ruby core URI.
🎉
v1.0.0