br_db 0.1.7 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6942ad4fc50b159b7a566d5e168970754970a29fac7e2e0071198579dfdd94ab
4
- data.tar.gz: d403ba0ead69338a899c9c1ffd84cfe1d7eedb02c0553a93feff7c825071e8ab
3
+ metadata.gz: c62f78c07f089250ca0b43e3f47f0aefeceb3dbbf5a478dc75c366cb39e2d484
4
+ data.tar.gz: b1b72dd80a444141b4fae3cb5057b18b3fbeb7feb1d326c02d9edad889d3ab06
5
5
  SHA512:
6
- metadata.gz: 7d6c905025a37b26ef7947be4a68477c4879c3c14807751397872f3afcfc6d6208aaa6d2fe2b74f5fee580a534ea399ab4ac6f780e88736393fcbe3091c23ead
7
- data.tar.gz: a8abe7cf404ff7ae324503c1271221a2dbca51162cda34389546b814bbd2a12fe453a9d93c01112fd1c6be2fd54ebad3ac720203a55d4ec4270eedbad225a2b3
6
+ metadata.gz: ce748e4f08621a82e133dcb1b831728cc34663090088862194e636bf69a32c7f4c963788b2bc566a2aa386c3c1aaaf55300635fd253d3c65eade5cae31be2cf0
7
+ data.tar.gz: c3a8698e4e6869a5cd5f422ea1865e5c9e03cf75a77d3f2b2878f3733d0904e45356fe2887557d023433f4b876b8b56a9d24d009391f7f1aee1e2941719abe88
@@ -91,10 +91,12 @@ module BrDb
91
91
  }
92
92
  end
93
93
  if zip_codes.count % 1000 == 0
94
+ ActiveRecord::Base.connection.reconnect!
94
95
  ZipCode.insert_all(zip_codes)
95
96
  zip_codes = []
96
97
  end
97
98
  end
99
+ ActiveRecord::Base.connection.reconnect!
98
100
  ZipCode.insert_all(zip_codes)
99
101
  end
100
102
 
data/lib/br_db/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module BrDb
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: br_db
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ulisses Caon