ideal-postcodes / ideal-postcodes-ruby

UK postcode lookup API using Royal Mail's Postcode Address File.
https://ideal-postcodes.co.uk
MIT License
12 stars 3 forks source link

Deprecation notice: URI.escape is obsolete #9

Closed olliebennett closed 2 years ago

olliebennett commented 3 years ago

I see the following warning in my application;

/app/vendor/bundle/ruby/2.7.0/gems/ideal_postcodes-2.0.0/lib/idealpostcodes.rb:70: warning: URI.escape is obsolete

A potential replacement for URI.escape is outlined here; most other resources or alternatives seem to behave slightly differently, so that may be the safest approach for compatibility.

cblanc commented 2 years ago

@olliebennett could you take a look at 2.0.1

Thanks for reminding

olliebennett commented 2 years ago

Great, thanks. 2.0.1 now running in production for us and not causing any issues (and no more deprecation messages). 👌 Appreciate the fast response to my email!