wolf_core 1.0.34 → 1.0.36

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 14ad9d0681cefffdb356424e2c2b642545ecd64838a4c93c8d104f0e0838bf79
4
- data.tar.gz: 236c97a9af5813363e5d14b0e1132ccfbb5b0350b221e905f3c2fabf19aab82e
3
+ metadata.gz: 4f57d0c483e07ed2323e326fd4db93e4f1dff8c79c0889d7e0541fa5ebe83045
4
+ data.tar.gz: f5ce5d894fc84209de632edaecf55d52d28d5b57650b9130b0f0fad668bd0321
5
5
  SHA512:
6
- metadata.gz: 721ecb28e6c1e7e43ca2b1248808e326b2f7b016d5012369511a96f41711983b93ddf967f60095fba8fc00dc63a7468ab417373ea17172bbff7e90de8d317332
7
- data.tar.gz: 7e171af7691d5476b952f7d0cd4c446c2591a9062adc5f3aaffb3b103d0e2fa8676824d6afc387b5b872154c40cd1aaa6711493d0caafe89988d68f06004b768
6
+ metadata.gz: 729025fc0a87a12df7f591b01c278b5dce3b78f7968270965f5f8e83153a1d25524ceab078f3b1f84237a4a71a586d661e49e246a94e4c607a0bfa8b6b24c5bb
7
+ data.tar.gz: 8c545e267c7ef1b4d3e121807727326790b7255b9c8e11d19de8adbc395291d82bd9255b421a60624f8906570642777d431b2c40c2d48292e0f86ea7be4d10ef
@@ -7,7 +7,7 @@ module WolfCore
7
7
  city_and_state_regex_found = false
8
8
 
9
9
  city_and_state_regex = /\b([A-Za-z\s]+),\s*([A-Za-z]{2})\b/
10
- zip_regex = /\b\d{5}(?:-\d{4})?\b/
10
+ zip_regex = /\d{5}(?:-\d{4})?$/
11
11
  street_regex = /\A([^,]+)/
12
12
  state_regex = /\b[A-Za-z]{2}\b/
13
13
  city_regex = /\b[a-zA-Z0-9\s]{2,}\b/
@@ -108,11 +108,7 @@ module WolfCore
108
108
 
109
109
  def parse_http_response(response)
110
110
  body = begin
111
- log_object response, title: "response is"
112
- log_object response.body, title: "response.body is"
113
- res = JSON.parse(response.body)
114
- log_object res, title: "res is"
115
- res
111
+ JSON.parse(response.body)
116
112
  rescue StandardError
117
113
  response.body
118
114
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "1.0.34"
4
+ VERSION = "1.0.36"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.34
4
+ version: 1.0.36
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty