GithubHelp home page GithubHelp logo

opportunitylivetv / homebrew-livecheck Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jeffreywildman/homebrew-livecheck

1.0 3.0 1.0 343 KB

๐Ÿ–– External command for Homebrew that checks for newer version of formulae in the upstream.

Ruby 99.97% Shell 0.03%

homebrew-livecheck's Introduction

homebrew-livecheck

External command for Homebrew that checks for newer version of formulae in the upstream.

Install

brew tap homebrew/livecheck

That's it. You don't even need to install the formula. And it will autoupdate whenever you do a brew update.

Usage

The most useful way to use the command is by invoking

$ brew livecheck
==> git : 2.1.2 ==> 2.1.2
==> sqlmap : 0.9 ==> 0.9
==> pebble-sdk : 2.6 ==> 2.7
...

which shows (with colors!) the formulae in your watchlist (default: ~/.brew_livecheck_watchlist) that are outdated. You can set your own watchlist file in the HOMEBREW_LIVECHECK_WATCHLIST env variable.

brew livecheck
brew livecheck formula1 formula2 ...
brew livecheck [-i|--installed]
brew livecheck [-a|--all]
brew livecheck [-h|--help]

Usage:
Check if a formula is outdated. If no argument is passed, the list of
formulae to check is taken from /Users/youtux/.brew_livecheck_watchlist.

Options:
-h, --help        show this help message and exit
-n, --newer-only  show the latest version only if it's newer than the formula
                  in Homebrew
-v, --verbose     be more verbose :)
-q, --quieter     be more quiet (do not show errors)
-d, --debug       show debugging info

Some of the formulae can be checked out-of-the-box (like sqlmap), but others need to some attention to make 'em work. If you find a formula that can't be checked, please help the project by writing the Livecheckable version and make a pull request!

In order to make a formula compatible with homebrew-livecheck, it is sufficient to extend the formulae class and place it into the Livecheckables directory.

The only requirement is that a Livecheckable formula must implement the latest method, that can be easily made by calling the livecheck function available from formula.rb.

Here's an example from python.rb:

class Python
  livecheck :url => "https://www.python.org/ftp/python",
            :regex => %r{href="(2(?:\.\d)+)/"}
end

You can look at Livecheckables to get the idea.

Contributions are welcomed

If you like this project and you find it useful, help me by adding more Livecheckables or by improving the code (or the non-existing wiki, the readme, etc.).

Changelog

See the git log. An old changelog (not maintained) is available at CHANGELOG.md.

homebrew-livecheck's People

Contributors

ilovezfs avatar youtux avatar jeffreywildman avatar nloveladyallen avatar commitay avatar aluttik avatar jcount avatar msbit avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  avatar

Forkers

martina6hall

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.