Project

link_scout

0.0
No release in over 3 years
Low commit activity in last 3 years
LinkScout helps users to find broken links by analysing response code or body.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 10.0
~> 3.0
~> 3.3

Runtime

~> 2.0
 Project Readme

LinkScout Build Status Coverage Status Gem Version

Welcome to LinkScout gem!

LinkScout helps users to find broken links by analysing response code or body.

It can take single or multiple URLs as input making it easy to handle link checking in larger batches. It can also follow links through redirect chains making sure links eventually work for your users.

Installation

Add this line to your application's Gemfile:

gem 'link_scout'

And then execute:

$ bundle

Or install it yourself as:

$ gem install link_scout

Usage

options = {
  success: 200,
  follow: true,
  limit: 1,
  target: 'http://target.com',
  deeplink_param: 'deeplink',
  pattern: /abc/i,
  antipattern: /cde/i,
}

Single URLS

LinkScout::run(url, options)
LinkScout::run(url: url, option: value)

Multiple with shared options

LinkScout::run([url, url1, url2], options)

Multiple with individual options

LinkScout::run([{ url: url }, { url: url1, option: value }])

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/pcvg/link_scout/issues. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the LinkScout project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.