diff --git a/.gitignore b/.gitignore index 928cf47..63c8793 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,18 @@ -/lib/data/*.txt *.gem +*.rbc +.bundle +.config +.yardoc +Gemfile.lock +InstalledFiles +_yardoc +coverage +doc/ +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp +lib/data/*.txt diff --git a/README.md b/README.md index e69de29..b665ca0 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,29 @@ +# Zip::Codes + +TODO: Write a gem description + +## Installation + +Add this line to your application's Gemfile: + + gem 'zip-codes' + +And then execute: + + $ bundle + +Or install it yourself as: + + $ gem install zip-codes + +## Usage + +TODO: Write usage instructions here + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request diff --git a/lib/zip-codes.rb b/lib/zip-codes.rb index 48385d2..7075994 100644 --- a/lib/zip-codes.rb +++ b/lib/zip-codes.rb @@ -1,6 +1,8 @@ require 'yaml' module ZipCodes + VERSION = '0.1.0' + class << self def identify code db[code] diff --git a/zip-codes.gemspec b/zip-codes.gemspec index eb2de35..0ed5137 100644 --- a/zip-codes.gemspec +++ b/zip-codes.gemspec @@ -5,7 +5,7 @@ require 'grape/kaminari/version' Gem::Specification.new do |spec| spec.name = "zip-codes" - spec.version = "0.1.0" + spec.version = ZipCodes::VERSION spec.authors = ["MichaƂ Duda"] spec.email = ["michal.duda@monterail.com"] spec.description = %q{Identify city and state for given zip code}