domain_extractor 0.2.0 → 0.2.2
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 +4 -3
- data/lib/domain_extractor/version.rb +1 -1
- data/spec/spec_helper.rb +10 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6f2180384e306e30ec8637326069b71f28246d2a8810c0e03988a1119807078
|
|
4
|
+
data.tar.gz: e3501479db84ab128f7792a2627b61f198b4382e2d8b4f5a5186ad553b4e22cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6371ebe56231d6e9e8245a1a299e1c71549bbd56d052fb876f2f5bf9e0720818b5e0e9620fba5634e008c412223bb172567cab8cb644d6289c3967dc88b8cb58
|
|
7
|
+
data.tar.gz: 94e214bfaa032e08ffcfa40a36d1a6af9a6f09ee4a3e45d84b949dd9077a2bb26e8e56d35cea0650d83c5e9ccdd0dd07152f8f46645c6f4aeeeb68ec628252a2
|
data/README.md
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
# DomainExtractor
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/rb/domain_extractor)
|
|
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)
|
|
6
7
|
|
|
7
8
|
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.
|
|
8
9
|
|
|
9
|
-
Use DomainExtractor whenever you need a dependable tld parser for tricky multi-part tld registries or reliable subdomain extraction in production systems.
|
|
10
|
+
Use **DomainExtractor** whenever you need a dependable tld parser for tricky multi-part tld registries or reliable subdomain extraction in production systems.
|
|
10
11
|
|
|
11
12
|
## Why DomainExtractor?
|
|
12
13
|
|
|
@@ -399,7 +400,7 @@ Optimized for high-throughput production use:
|
|
|
399
400
|
- **Thread-safe**: Stateless modules, safe for concurrent use
|
|
400
401
|
- **Zero-allocation hot paths**: Frozen constants, pre-compiled regex
|
|
401
402
|
|
|
402
|
-
|
|
403
|
+
View [performance analysis](https://github.com/opensite-ai/domain_extractor/blob/master/docs/PERFORMANCE.md) for detailed benchmarks and optimization strategies and benchmark results along with a full set of enhancements made in order to meet the highly performance centric requirements of the OpenSite AI site rendering engine, showcased in the [optimization summary](https://github.com/opensite-ai/domain_extractor/blob/master/docs/OPTIMIZATION_SUMMARY.md)
|
|
403
404
|
|
|
404
405
|
## Comparison with Alternatives
|
|
405
406
|
|
data/spec/spec_helper.rb
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
require 'bundler/setup'
|
|
4
4
|
require 'domain_extractor'
|
|
5
5
|
|
|
6
|
+
require 'simplecov'
|
|
7
|
+
require 'simplecov_json_formatter'
|
|
8
|
+
SimpleCov.start do
|
|
9
|
+
formatter SimpleCov::Formatter::MultiFormatter.new([
|
|
10
|
+
SimpleCov::Formatter::JSONFormatter,
|
|
11
|
+
SimpleCov::Formatter::HTMLFormatter
|
|
12
|
+
])
|
|
13
|
+
add_filter '/spec/'
|
|
14
|
+
end
|
|
15
|
+
|
|
6
16
|
RSpec.configure do |config|
|
|
7
17
|
config.order = :random
|
|
8
18
|
Kernel.srand config.seed
|