RatioClothing/smartystreets_ruby ? reverse-engineered prompt

Reverse engineered prompt

Build me a Ruby gem that wraps the SmartyStreets API for both street address checks and zipcode lookups.

I want it to let me set an auth id and auth token once, then call the API with one or more address or zipcode requests and get back nice Ruby objects with the parsed results. For street addresses, it should return the cleaned up delivery lines, last line, components like city, state, zipcode, and any metadata or analysis SmartyStreets gives back. For zipcode lookups, it should return the matching cities and zip details, and handle bad zipcodes cleanly too.

Please make it feel like a normal Ruby library, with a gem setup, tests, and a simple way to use it from an app or from the command line. If you need to check the current SmartyStreets docs while wiring it up, go ahead and look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab