domain_extractor 0.2.2 → 0.2.3
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 +4 -4
- data/README.md +0 -8
- data/lib/domain_extractor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7449854dbf7cdb547437149e26e8f837a9cef3e3b69b44cf8d5c501ca71ac540
|
|
4
|
+
data.tar.gz: e941ee2500924df7814e7da3e5a860e122404fc53c60ca4a8ddb42f05ed58333
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 294bf9e88e56a391cef2a93610bdaf10634b58cabee798019252ca183ca269ed95693b65d0ffb93ccb1defe0f13730421d63e4d7d933702cfb8d204922a47948
|
|
7
|
+
data.tar.gz: 5072fcec6a069639bb595cf4af564fefd021bd5e1131533f5e7300342534295f9a7a033406c1137f5bebbe3a0f07ec456bd046de9b89f232cade03c29441b2fb
|
data/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://badge.fury.io/rb/domain_extractor)
|
|
4
4
|
[](https://github.com/opensite-ai/domain_extractor/actions/workflows/ci.yml)
|
|
5
5
|
[](https://codeclimate.com/github/opensite-ai/domain_extractor)
|
|
6
|
-
[](https://qlty.sh/gh/opensite-ai/projects/domain_extractor)
|
|
7
6
|
|
|
8
7
|
A lightweight, robust Ruby library for url parsing and domain parsing with **accurate multi-part TLD support**. DomainExtractor delivers a high-throughput url parser and domain parser that excels at domain extraction tasks while staying friendly to analytics pipelines. Perfect for web scraping, analytics, url manipulation, query parameter parsing, and multi-environment domain analysis.
|
|
9
8
|
|
|
@@ -66,10 +65,6 @@ end
|
|
|
66
65
|
result.subdomain # => 'www'
|
|
67
66
|
result.domain # => 'example'
|
|
68
67
|
result.host # => 'www.example.co.uk'
|
|
69
|
-
|
|
70
|
-
# Opt into strict parsing when needed
|
|
71
|
-
DomainExtractor.parse!('notaurl')
|
|
72
|
-
# => raises DomainExtractor::InvalidURLError: Invalid URL Value
|
|
73
68
|
```
|
|
74
69
|
|
|
75
70
|
## ParsedURL API - Intuitive Method Access
|
|
@@ -177,9 +172,6 @@ DomainExtractor.parse('https://dashtrack.com').subdomain? # => false
|
|
|
177
172
|
# Bang methods raise when a component is missing
|
|
178
173
|
DomainExtractor.parse('').host! # => raises DomainExtractor::InvalidURLError
|
|
179
174
|
DomainExtractor.parse('asdfasdfds').domain! # => raises DomainExtractor::InvalidURLError
|
|
180
|
-
|
|
181
|
-
# Strict parsing helper mirrors legacy behaviour
|
|
182
|
-
DomainExtractor.parse!('asdfasdfds') # => raises DomainExtractor::InvalidURLError
|
|
183
175
|
```
|
|
184
176
|
|
|
185
177
|
#### Safe Batch Processing
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: domain_extractor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- OpenSite AI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-11-
|
|
11
|
+
date: 2025-11-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: public_suffix
|