Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

passcod/castic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Static cask+homebrew formula parser. Unmaintained.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages