dh_easy-core 0.3.2 → 0.3.3

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: 2111211cde8e88762921d1aaeeb9c34129971915376761dfadf0a03c580ed214
4
- data.tar.gz: d9d5279b0b66c750eb6311e007abe75dd609fd5d48600bfc484966b1338f4169
3
+ metadata.gz: 5c8df8d64c0b30446fe7788e9310854f9505c173accb53158087d769b2f5a940
4
+ data.tar.gz: 587e97b5f482a1ff1b96aced7b2596201ba565e499bea0656d41d7c941307527
5
5
  SHA512:
6
- metadata.gz: ff5fb9f2f24eff5d3a35ac80a162be963f5f5f219e142cecbba9e9a49030d3f1742b664a86e72aaf676a8a801cb374d7b2b310cfd8ab187b4a09f63ff5536ee0
7
- data.tar.gz: 7895293f6aa71bfd3ef6e83ff3eb4208dbdd184c4bf447023dc3e977c7e276f02ed062806dee3d94cd474800406372b99c41d6985555eb386dca1eac23c49120
6
+ metadata.gz: a87131209b739ab230f5c030b54184ce930689bb690bb330b2f9abc6c1d42ca196fd3b7ef69629b193b41c9d1bac677fae2c6f548cb789b7a48330108c3d0a2d
7
+ data.tar.gz: 37725d63fee0b3db0e41d5604d196db658a608d74319f6964d236463a4b7c333908fdc3c668684f4a02736490510f3b7eb98cbfd939526b6657595801e9344ca
@@ -102,7 +102,7 @@ module DhEasy
102
102
  # @return [URI::HTTPS]
103
103
  def self.clean_uri_obj raw_url
104
104
  url = URI.parse(raw_url)
105
- url.hostname = url.hostname.downcase
105
+ url.hostname = url.hostname.downcase unless url.hostname.nil?
106
106
  url.fragment = nil
107
107
 
108
108
  # Sort query string keys
@@ -574,7 +574,7 @@ module DhEasy
574
574
  item['headers'] = nil if self.class.is_hash_empty? item['headers']
575
575
  item['vars'] = nil if self.class.is_hash_empty? item['vars']
576
576
  uri = self.class.clean_uri_obj(item['url'])
577
- item['hostname'] = uri.hostname
577
+ item['hostname'] = (item['url'] =~ /^about:blank$/i) ? '127.0.0.1' : uri.hostname
578
578
  uri = nil
579
579
  if item['gid'].nil? || !allow_page_gid_override?
580
580
  item['gid'] = generate_page_gid item
@@ -1,6 +1,6 @@
1
1
  module DhEasy
2
2
  module Core
3
3
  # Gem version
4
- VERSION = "0.3.2"
4
+ VERSION = "0.3.3"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dh_easy-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Rosales
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-06 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: datahen