Project

castic

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Static parser for Homebrew Cask formulae
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

Static parser for casks

Parses casks statically (and safely) and offers their contents to anyone who asks the right questions.

Also has preliminary support for regular Homebrew formulae.

INSTALL

It's a gem. Use any of the dozen gem managers out there to wrangle it onto your system.

$ gem install castic

$ gem install --no-ri --no-rdoc castic

$ echo "gem 'castic'" >> Gemfile
$ bundle

$ echo "gem 'castic', '~>0.2.0'" >> Gemfile
$ bundle install

$ rvm use 2.0.0
$ rvm gemset create foobar
$ gem install castic

$ brew gem castic
# Don't do that, won't work

(Installing gems: being batshit insane in about fifteen different ways)

SYNOPSIS

require 'castic'

# Load a cask
c = Castic.new 'foo.rb'

# ...or a formula
c = Castic.new 'bar.rb', :Formula

c.name          #=> Name according to class name
c.expected_name #=> Name according to file name

c.tree          #=> Parsed source
c.props         #=> Array of properties

c.props :foo    #=> Array of :foo properties

LICENSE

Public Domain