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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9be08df3b44102d414007ad7fc6865166cb89061a09340d5e49de211165c963f
4
- data.tar.gz: a334da0e7a8dc42335b9710aaf9d601d9fc85323ca2e328359de9593a340abc3
3
+ metadata.gz: f6f2180384e306e30ec8637326069b71f28246d2a8810c0e03988a1119807078
4
+ data.tar.gz: e3501479db84ab128f7792a2627b61f198b4382e2d8b4f5a5186ad553b4e22cb
5
5
  SHA512:
6
- metadata.gz: 297852adc140faba6fc64b7589402c1f3b032be344d13ad781ede5ff2a1c1ba867480edbebaca488708da46d68152bf3ee80c02da36d6f8afbf97a74361960ae
7
- data.tar.gz: 6b0191d8bfb2458a23e3c56c382f495c9eebf86715a16c8f2936e6804d4adc0643835485e100e42f3bcd3f4d83344d7d60aac47dee60f72214fd95297f714334
6
+ metadata.gz: 6371ebe56231d6e9e8245a1a299e1c71549bbd56d052fb876f2f5bf9e0720818b5e0e9620fba5634e008c412223bb172567cab8cb644d6289c3967dc88b8cb58
7
+ data.tar.gz: 94e214bfaa032e08ffcfa40a36d1a6af9a6f09ee4a3e45d84b949dd9077a2bb26e8e56d35cea0650d83c5e9ccdd0dd07152f8f46645c6f4aeeeb68ec628252a2
data/README.md CHANGED
@@ -1,12 +1,13 @@
1
1
  # DomainExtractor
2
2
 
3
- [![Gem Version](https://badge.fury.io/rb/domain_extractor.svg)](https://badge.fury.io/rb/domain_extractor)
3
+ [![Gem Version](https://badge.fury.io/rb/domain_extractor.svg?v=020)](https://badge.fury.io/rb/domain_extractor)
4
4
  [![CI](https://github.com/opensite-ai/domain_extractor/actions/workflows/ci.yml/badge.svg)](https://github.com/opensite-ai/domain_extractor/actions/workflows/ci.yml)
5
5
  [![Code Climate](https://codeclimate.com/github/opensite-ai/domain_extractor/badges/gpa.svg)](https://codeclimate.com/github/opensite-ai/domain_extractor)
6
+ [![Code Coverage](https://qlty.sh/gh/opensite-ai/projects/domain_extractor/coverage.svg)](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
- See [PERFORMANCE.md](https://github.com/opensite-ai/domain_extractor/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.md](https://github.com/opensite-ai/domain_extractor/docs/OPTIMIZATION_SUMMARY.md)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DomainExtractor
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.2'
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: domain_extractor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenSite AI