GithubHelp home page GithubHelp logo

martina6hall / formulae.brew.sh Goto Github PK

View Code? Open in Web Editor NEW

This project forked from opportunitylivetv/formulae.brew.sh

1.0 3.0 0.0 964 KB

🏎 An online formulae browser for Homebrew

Home Page: http://formulae.brew.sh

License: BSD 3-Clause "New" or "Revised" License

Ruby 80.08% JavaScript 0.76% CSS 7.17% HTML 11.61% Shell 0.38%

formulae.brew.sh's Introduction

formulae.brew.sh

Build Status Dependency Status View Performance Data on Skylight Code Climate Test Coverage

Beerpay

formulae.brew.sh is a Rails application that gathers package information from Homebrew, the macOS package manager.

Internals

To get information about the packages currently available via Homebrew, the application has its own clone of Homebrew’s Git repositories. Homebrew's raw package files, the so called formulae (or formulas) which are Ruby classes, are used to gather information from the packages.

Because Homebrew isn’t currently optimized for third party access, there is some need to sandbox Homebrew’s code, so we don't mess up with our application's code. This is done by forking another Ruby process and using an IO#pipe for inter-process communication (IPC). The formula data is passed as marshalled Hashes from the indexing process (child) to the main process (parent).

There are other, probably better methods of IPC like shared memory, but piping was easy to implement and proved to be fast enough even for full indexing with several hundred formulae.

Local setup

If you clone the repository from GitHub it’s pretty easy to get started with a working local copy. Run the following commands to run the application locally:

$ ./script/bootstrap
$ rake db:seed
$ foreman start

Contribute

formulae.brew.sh is an open-source project. Therefore you are free to help improving it. There are several ways of contributing to formulae.brew.sh’s development:

  • Use it and spread the word to existing and new Homebrew users
  • Report problems and request features using the issue tracker.
  • Write patches yourself to fix bugs and implement new functionality.
  • Create a fork on GitHub and start hacking. Extra points for using feature branches and GitHub’s pull requests.

About the internal naming

“Braumeister” – [ˈbʁaʊmʌɪstəʀ] – is the German word for “master brewer” or “brewmaster”, the person in charge of beer production.

License

This code is free software; you can redistribute it and/or modify it under the terms of the new BSD License. A copy of this license can be found in the LICENSE file.

Credits

  • Sebastian Staudt – koraktor(at)gmail.com
  • Andrey Ognevsky – a.ognevsky(at)gmail.com
  • Michiel Staessen – staessenmichiel(at)gmail.com
  • Mike McQuaid – mike(at)mikemcquaid.com

See also

Follow formulae.brew.sh on Twitter @braumeister_org.

formulae.brew.sh's People

Contributors

koraktor avatar mikemcquaid avatar dependabot-support avatar dependabot[bot] avatar kant avatar ognevsky avatar chancancode avatar mstaessen avatar ruskakimov avatar roman5566 avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar  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.