jaimeiniesta/metainspector
58.6
Adequate · 6 November 2026
964
lines of production code
Ruby
primary language
4
measurements over time
What this system is
Features
Added interactive Ruby console script
A new executable script at bin/console has been added, allowing users to launch an interactive Pry session with the Metainspector library and Bundler environment pre-loaded for debugging or exploration.
bin · high confidence
New and updated example scripts for scraping, link checking, and security hardening
The examples directory now includes several new scripts demonstrating advanced MetaInspector usage: a basic scraping script (basic\_scraping.rb), a spider that recovers from unparseable links (spider.rb), a broken link checker (link\_checker.rb), and a demonstration of Faraday's redirect options to prevent Server-Side Request Forgery (SSRF) attacks (faraday\_redirect\_options.rb, supported by a local redirect server). These additions provide users with concrete patterns for handling HTTP redirects securely, recovering from parsing errors, and auditing site links.
examples · high confidence
Architecture
Introduces modular library structure with dedicated parser components
The library has been reorganized into a modular structure, replacing the previous monolithic implementation with specialized components for handling requests, URLs, and document parsing. This change introduces dedicated parsers for specific content types, including images, links, head links, meta tags, and texts, allowing for more focused and maintainable scraping logic. The main entry point now delegates to a Document class, which coordinates these specialized parsers to extract metadata, while also providing a convenience method for quick scraping.
lib · high confidence
Behavioural changes
MetaInspector 5.17.2 release with request and parsing refactoring
This release updates the library to version 5.17.2 and introduces a significant architectural shift in how HTTP requests and document parsing are handled. The \Request\ class now utilizes Faraday with specific middleware for gzip compression, retries, and cookie persistence, while enforcing strict HTTP URL validation and adding a custom fatal timeout to handle streaming responses that might otherwise hang. Parsing logic has been extracted into a dedicated \Parser\ class that delegates to specialized sub-parsers for meta tags, links, images, and text, allowing for early failure if the document cannot be parsed. Additionally, the \URL\ class now supports tracking parameter detection and removal, and the \Document\ class exposes response status and headers via the \to\_hash\ method and \response\ accessor.
_lib/meta\inspector · high confidence
Reorganized meta-inspector into specialized parsers with new image and link capabilities
The library's parsing logic has been restructured into specialized components (HeadLinks, Images, Links, MetaTags, Texts) inheriting from a new Base class. This change introduces new methods for users: \images.with\_size\ returns images sorted by area, \images.largest\ finds the most square large image, and \images.best\ prioritizes Open Graph/Twitter images. Link handling now includes \links.internal\ and \links.external\ categorization, while the \HeadLinksParser\ adds \feeds\ and \canonicals\ methods. Text extraction now supports \best\_title\, \best\_author\, and \best\_description\ with fallback logic, and heading tags (h1-h6) are now accessible.
_lib/meta\inspector/parsers · high confidence
Test coverage
Added comprehensive test coverage for MetaInspector parsing features; Added test coverage for Document, Parser, Request, and URL components; Expanded test fixtures for HTML parsing edge cases.
Dependencies
237 commits updating dependencies (3 manifests)
A dependency / build maintenance change in (dependencies) — 237 commits (6 fixs), 3 files: “Bump nokogiri from 1.18.8 to 1.18.9 (\#484)”; “Update faraday-gzip requirement from \>= 0.1, \< 3.0 to \>= 0.1, \< 4.0 (\#474)”; “Update faraday-gzip requirement from \~\> 0.1 to \>= 0.1, \< 2.0 (\#339)”; and 228 more (refs \#484, \#474, \#339, \#319, \#363, …).
(dependencies) · high confidence · unverified
Housekeeping
Initial project scaffolding and documentation
Establishes the project structure with a new .gitignore file (excluding build artifacts and lockfiles), example configuration files for RSpec and RuboCop, and comprehensive documentation including a detailed README, a full changelog, and the MIT license.
(repo-wide) · high confidence
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
How this codebase got here
Score
- CAI 59 → 59 (-0.2)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.
Lenses
- Code Health 61 → 61 (+0.0)
- Architecture 69 → 69 (+0.0)
- Maturity 52 → 54 (+2.4)
- Readiness 67 → 67 (+0.0)
- Security 74 → 61 (-13.2)
Resolved (4)
- Ambiguous and potentially redundant method names. meta_tags (plural) and meta_tag (singular) suggest a collection vs. single item distinction, but meta() is an ambiguous alias that could refer to either or a specific lookup. Without seeing the return types, it is unclear if meta() is a getter for a specific tag or a synonym for meta_tag. This creates cognitive load for users trying to determine which method to use for retrieving metadata.
- Duplicated block (5 lines × 2) (lib/meta_inspector/parsers/texts.rb)
- Inconsistent entry point naming convention. The primary type MetaInspector uses the Ruby idiom new for instantiation, while the related BrokenLinkChecker type uses initialize. In Ruby, initialize is a private constructor method; exposing it as a public API surface alongside new is confusing and inconsistent with standard Ruby practices and the library's own MetaInspector pattern.
- Off-boarding risk: anonymized user #1
New (2)
- Duplicated block (6 lines × 2) (lib/meta_inspector/parsers/texts.rb)
- Off-boarding risk: anonymized user #1
Changes since last survey
- 14 commits — 13 feature/other, 1 fixes
By area
- (root) — 13 commits
- lib/meta_inspector — 1 commit
Notable commits
- fix: Fix relative base href resolution against document URL (#524)
- change: Accept faraday_http_cache inside faraday_options (#529)
- change: Add Parsely metadata fallbacks for best values (#525)
- change: Add configurable limit for image size downloads (#526)
- change: Add declared document language accessor (#527)
- change: Add opt-in HEAD content-type check before downloading (#523)
- change: Drop Ruby 3.2, require Ruby >= 3.3 (5.18.0) (#518)
- change: Merge commit from fork
- change: Release 5.19.0 (#528)
- change: Require nokogiri >= 1.19.5, commit Gemfile.lock (5.18.1) (#520)
- change: Require patched versions of vulnerable dependencies (5.17.4) (#517)
- change: Skip invalid image URLs before determining image sizes (#522)
- change: relax puma, sinatra and resolv development pins, remove unused awesome_print (#519)
- change: remove Code Climate badge
Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.
Survey your own repository
jaimeiniesta/metainspector was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.
About this page
- The score is its most recent published measurement, taken on 6 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
- Measured at commit 87081a8db08aa3fe35c19d43e8daffbf23394da7 — the exact code this score is about.
- Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
- Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-60d1b390edf0.