Generating the regex
- Download the latest CSV file from https://data.gov.in/resources/all-india-pincode-directory-till-last-month.
- Copy all the pincodes to a pincodes.csv file
- Generate all unique pincodes by running
npm run build
Generating the browser-version
- Make sure development dependencies are installed.
npm run browserify.
- Test it by opening
tests/index.htmlin your browser.
git tag 1.2.3
git push --tags
After checking out the repo, run
bin/setup to install dependencies. You can also run
bin/console for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run
bundle exec rake install. To release a new version, update the version number in
version.rb, and then run
bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the
.gem file to rubygems.org.