diff --git a/.gitignore b/.gitignore index dff3c71..83c7758 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /build /stubs /vendor/bundle/ +/pkg diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 87380ca..851739c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -## How to contribute to jsonapi_rspec +## How to contribute to free_zipcode_data #### **Did you find a bug?** diff --git a/Gemfile.lock b/Gemfile.lock index 7c5cc3a..23db080 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -74,9 +74,9 @@ DEPENDENCIES pry-nav (~> 0.2) rake (~> 12.0) rspec (~> 3.7) - rubocop - ruby-prof - simplecov + rubocop (~> 0.55) + ruby-prof (~> 0.17) + simplecov (~> 0.16) BUNDLED WITH 1.16.1 diff --git a/Rakefile b/Rakefile index c9607eb..2bfdd1b 100644 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,10 @@ +# frozen_string_literal: true + require 'rubygems' require 'bundler/setup' require 'rake' Dir['lib/tasks/**/*.rake'].sort.each { |ext| load ext } + +# Install rubygem tasks +Bundler::GemHelper.install_tasks diff --git a/free_zipcode_data.gemspec b/free_zipcode_data.gemspec index 8133f95..10e4a90 100644 --- a/free_zipcode_data.gemspec +++ b/free_zipcode_data.gemspec @@ -11,8 +11,11 @@ Gem::Specification.new do |spec| spec.version = FreeZipcodeData::VERSION spec.authors = ['Chris Blackburn', 'Chris McKnight'] spec.email = ['87a1779b@opayq.com', 'fixme@mcknight.bogus'] - spec.summary = 'Free US postal codes in CSV and SQLite3 format.' - spec.description = spec.summary + spec.summary = 'Free US and world-wide postal codes in SQLite and CSV format' + spec.description = <<~STRING + Free US and world-wide postal codes in SQLite and CSV format. + Automated zipcode/postal code aggregation and processing for any needs. + STRING spec.homepage = 'https://github.com/midwire/free_zipcode_data' spec.license = 'MIT' @@ -26,9 +29,9 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'pry-nav', '~> 0.2' spec.add_development_dependency 'rake', '~> 12.0' spec.add_development_dependency 'rspec', '~> 3.7' - spec.add_development_dependency 'rubocop' - spec.add_development_dependency 'ruby-prof' - spec.add_development_dependency 'simplecov' + spec.add_development_dependency 'rubocop', '~> 0.55' + spec.add_development_dependency 'ruby-prof', '~> 0.17' + spec.add_development_dependency 'simplecov', '~> 0.16' spec.add_runtime_dependency 'colored', '~> 1.2' spec.add_runtime_dependency 'kiba', '~> 2.0' diff --git a/lib/free_zipcode_data/zipcode_table.rb b/lib/free_zipcode_data/zipcode_table.rb index 0963a27..fdd1f39 100644 --- a/lib/free_zipcode_data/zipcode_table.rb +++ b/lib/free_zipcode_data/zipcode_table.rb @@ -35,7 +35,7 @@ def write(row) city_name = escape_single_quotes(row[:city]) sql = <<-SQL - INSERT INTO zipcodes (code, state_id, city, lat, lon, accuracy) + INSERT INTO zipcodes (code, state_id, county_id, city, lat, lon, accuracy) VALUES ('#{row[:postal_code]}', '#{state_id}', '#{county_id}',