Skip to content

Commit

Permalink
Add cities and rate centers
Browse files Browse the repository at this point in the history
  • Loading branch information
dwilkie committed Oct 4, 2024
1 parent 2685b9d commit 1d3a90c
Show file tree
Hide file tree
Showing 119 changed files with 535,535 additions and 11 deletions.
28 changes: 23 additions & 5 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,26 @@
require:
- rubocop-rspec
- rubocop-performance

# Omakase Ruby styling for Rails
inherit_gem:
rubocop-rails-omakase: rubocop.yml

AllCops:
TargetRubyVersion: 3.0
NewCops: enable
TargetRubyVersion: 3.3

Lint:
Enabled: true

Style/FrozenStringLiteralComment:
Enabled: false

RSpec/DescribedClass:
Enabled: false

Style/StringLiterals:
EnforcedStyle: double_quotes
RSpec/ExampleLength:
Enabled: false

Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
RSpec/MultipleExpectations:
Enabled: false
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.3.5
10 changes: 6 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ source "https://rubygems.org"
# Specify your gem's dependencies in rate_center.gemspec
gemspec

gem "rake", "~> 13.0"

gem "rspec", "~> 3.0"

gem "rubocop", "~> 1.21"
gem "pry"
gem "rake"
gem "rspec"
gem "rubocop-rails-omakase", require: false
gem "rubocop-performance", require: false
gem "rubocop-rspec", require: false
134 changes: 134 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
PATH
remote: .
specs:
rate_center (0.1.0)

GEM
remote: https://rubygems.org/
specs:
activesupport (7.2.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
ast (2.4.2)
base64 (0.2.0)
bigdecimal (3.1.8)
coderay (1.1.3)
concurrent-ruby (1.3.4)
connection_pool (2.4.1)
countries (7.0.0)
unaccent (~> 0.3)
diff-lcs (1.5.1)
drb (2.2.1)
faraday (2.12.0)
faraday-net_http (>= 2.0, < 3.4)
json
logger
faraday-net_http (3.3.0)
net-http
i18n (1.14.6)
concurrent-ruby (~> 1.0)
json (2.7.2)
language_server-protocol (3.17.0.3)
logger (1.6.1)
method_source (1.1.0)
minitest (5.25.1)
multi_xml (0.7.1)
bigdecimal (~> 3.1)
net-http (0.4.1)
uri
ostruct (0.6.0)
ox (2.14.18)
parallel (1.26.3)
parser (3.3.5.0)
ast (~> 2.4.1)
racc
pry (0.14.2)
coderay (~> 1.1)
method_source (~> 1.0)
racc (1.8.1)
rack (3.1.7)
rainbow (3.1.1)
rake (13.2.1)
regexp_parser (2.9.2)
rspec (3.13.0)
rspec-core (~> 3.13.0)
rspec-expectations (~> 3.13.0)
rspec-mocks (~> 3.13.0)
rspec-core (3.13.1)
rspec-support (~> 3.13.0)
rspec-expectations (3.13.3)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-mocks (3.13.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.13.0)
rspec-support (3.13.1)
rubocop (1.66.1)
json (~> 2.3)
language_server-protocol (>= 3.17.0)
parallel (~> 1.10)
parser (>= 3.3.0.2)
rainbow (>= 2.2.2, < 4.0)
regexp_parser (>= 2.4, < 3.0)
rubocop-ast (>= 1.32.2, < 2.0)
ruby-progressbar (~> 1.7)
unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.32.3)
parser (>= 3.3.1.0)
rubocop-minitest (0.36.0)
rubocop (>= 1.61, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-performance (1.22.1)
rubocop (>= 1.48.1, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails (2.26.2)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.52.0, < 2.0)
rubocop-ast (>= 1.31.1, < 2.0)
rubocop-rails-omakase (1.0.0)
rubocop
rubocop-minitest
rubocop-performance
rubocop-rails
rubocop-rspec (3.1.0)
rubocop (~> 1.61)
ruby-progressbar (1.13.0)
rubyzip (2.3.2)
securerandom (0.3.1)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unaccent (0.4.0)
unicode-display_width (2.6.0)
uri (0.13.1)

PLATFORMS
arm64-darwin-23
ruby

DEPENDENCIES
countries
faraday
multi_xml
ostruct
ox
pry
rack
rake
rate_center!
rspec
rubocop-performance
rubocop-rails-omakase
rubocop-rspec
rubyzip

BUNDLED WITH
2.5.20
13 changes: 13 additions & 0 deletions bin/fetch_data
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env ruby

# Usage:

# $ parse_data

require "bundler/setup"
require "rate_center"
require "rate_center/data_source/local_calling_guide"
require "rate_center/data_source/simple_maps"

RateCenter::DataSource::SimpleMaps.new.load_data!(data_directory: Pathname(File.expand_path("../data/cities/us", __dir__)))
RateCenter::DataSource::LocalCallingGuide.new.load_data!(data_directory: Pathname(File.expand_path("../data/rate_centers/us", __dir__)), override: false)
Loading

0 comments on commit 1d3a90c

Please sign in to comment.