Skip to content

Commit

Permalink
Add release rake task
Browse files Browse the repository at this point in the history
  • Loading branch information
cblackburn-ajla committed Apr 24, 2018
1 parent c10d122 commit 50cd649
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/build
/stubs
/vendor/bundle/
/pkg
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## How to contribute to jsonapi_rspec
## How to contribute to free_zipcode_data

#### **Did you find a bug?**

Expand Down
6 changes: 3 additions & 3 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -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
13 changes: 8 additions & 5 deletions free_zipcode_data.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ Gem::Specification.new do |spec|
spec.version = FreeZipcodeData::VERSION
spec.authors = ['Chris Blackburn', 'Chris McKnight']
spec.email = ['[email protected]', '[email protected]']
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'

Expand All @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion lib/free_zipcode_data/zipcode_table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}',
Expand Down

0 comments on commit 50cd649

Please sign in to comment.