GithubHelp home page GithubHelp logo

pombredanne / 0.0.1-api-parser Goto Github PK

View Code? Open in Web Editor NEW

This project forked from awasum/0.0.1-api-parser

0.0 1.0 0.0 96 KB

Parser for fixing this: https://github.com/Homebrew/brew/issues/5725

License: MIT License

Ruby 100.00%

0.0.1-api-parser's Introduction

0.0.1-API-Parser

Parser for fixing this: Homebrew/brew#5725

Overview

Homebrew is used to install software (packages). Homebrew uses 'formulae' to determine how a package is installed. This project will automatically check which packages have had newer versions released. If Homebrew's formula for a given package is out-of-date, the project automatically submits a PR to update the Homebrew formula.

High-level Solution

  • Fetch latest package version information from repology.org and store on file system.
  • Fetch Homebrew Formulae information from HomeBrew Formulae
  • Parse the JSON from both responses, format them them (trim and keep just the info we need like names and formulae versions) and store in text files
  • Compare Current Homebrew Formulae version numbers and those coming from Repology's APIs. If Homebrew has an old version, the Open a PR to update Homebrew Core Formulae
  • Schedule the fetching of external APIs so it can have one or more times a day.

Details

  • This project can be run automatically at set intervals via GitHub Actions.
  • Executing ruby printPackageUpdates.rb from the command line will query both the Repology and Homebrew APIs, as well as Homebrew's Livecheck. Homebrew's current version of each package will be compared to the latest version of the package, per Repology's response.
  • Homebrew's livecheck is also queried for each package, and that data is parsed, if available.
  • Each outdated package will be displayed to the console like so:
  • Note that some packages will not be included in the Livecheck response. Those will have a 'Livecheck latest:' value of 'Not found'.
Package: openclonk
Brew current: 7.0
Repology latest: 8.1
Livecheck latest: 8.1
Has Open PR?: true

Package: openjdk
Brew current: 13.0.2+8
Repology latest: 15.0.0.0~14
Livecheck latest: Not found.
Has Open PR?: false

Package: opentsdb
Brew current: 2.3.1
Repology latest: 2.4.0
Livecheck latest: 2.4.0
Has Open PR?: true

Contributing

  • Fork the repo from upstream to your origin. The main repo is called the 'upstream' and your fork is the 'origin'
  • Clone from your fork to the local system
  • Add add a feature, create a new branch locally then make changes on the branch
  • Push changes from your local branch to your fork of the repo
  • Send a PR from your origin to the upstream
  • When PR has been merged, rebase or pull from upstream to keep working

0.0.1-api-parser's People

Contributors

awasum avatar baffouradu avatar emctackett avatar

Watchers

 avatar

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.