No commit activity in last 3 years
No release in over 3 years
A Ruby gem that lets you test for the presence of command line tools and ensure that you have a version of the tool that you know how to work with. It uses the gem system's version matching semantics so you can do things like enforce a major version but allow any minor version above a certain value for a tool. If you use Gemfile's the syntax should look pretty familiary to you.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

lowered-expectations

Gem Version

Build Status

A Ruby gem that lets you test for the presence of command line tools and ensure that you have a version of the tool that you know how to work with.

It uses the gem system's version matching semantics so you can do things like enforce a major version but allow any minor version above a certain value for a tool. If you use Gemfile's the syntax should look pretty familiary to you.

Installation

gem install lowered-expectations

Use

require 'lowered/expectations'
LoweredExpectations.expect('curl', "~> 7.0")
# If I get to here I know I have a version of curl I can use

The following errors can be raised when using this Gem:

  • LoweredExpectations::VersionPatternError - Raised if the version pattern supplied isn't recognized
  • LoweredExpectations::IncompatibleVersionError - Raised if the version of the tool does not match the expected version pattern
  • LoweredExpectations::MissingExecutableError - Raised if the tool cannot be found on your PATH

Development

Continuous Integration

I'm using Travis CI to build and test on every push to the public github repository. You can find the Travis CI page for this project here: https://travis-ci.org/ianchesal/loweredexpectations/

TODO Work

Please see TODO.md for the short list of big things I thought worth writing down.

Contact Me

Questions or comments about LoweredExpectations? Hit me up at ian.chesal@gmail.com.