Go to file
CoreCode 6ab11d337a Update lockrattler appcast (#65220)
* Update lockrattler appcast

Experimental idea: Lockrattler is one of these with a problematic appcast. Its too noisy to observe for changes (wordpress!) and also contains a lot of other version numbers that make a 'contains' check less than ideal.

The good news is that this app contains a 'check for updates' function that has been recently released.
The bad news is that the configuration file ( https://raw.githubusercontent.com/hoakleyelc/updates/master/eclecticapps.plist ) is used for a few dozen apps and therefore just as noisy and contains just as many unrelated versions.

I've been toying with the idea of using a CGI to extract just the portions we need from the file.

The CGI ( https://gist.github.com/core-code/0def150fa245b333fb0541f9f999b040#file-extract_text_split-cgi ) takes a URL to process as parameter as well as a JSON array containing the 'split points'. Configured in the right way it just spits out the version number we need. 
I think CGIs like these could also be useful if we need special headers ( ubiquiti-unifi-controller  ), cookies or a POST request to get the information we need.
Ideally all this (including our current CGIs that get the filename or redirect) would be implemented as parameters on the appcast stanza, defining what to do, instead of defining a special way to do this (by calling our CGI), but i don't see that happening anytime soon.

Feel free to reject this PR - i don't think its strictly necessary in this case, and this might also not be the most popular cask anyway. Also, I have no problem implementing a list of 'override' appcasts on our end to help keep casks like this one up-to-date if you feel like using this 'extract_text' CGI in the appcast of the caskfile is not a good idea.

* Update lockrattler.rb

* Update lockrattler.rb
2019-06-24 16:22:04 +01:00
.github
Casks Update lockrattler appcast (#65220) 2019-06-24 16:22:04 +01:00
cmd
developer
doc
.editorconfig
.gitattributes
.gitignore
.travis.yml
CONTRIBUTING.md
LICENSE
README.md
USAGE.md
tap_migrations.json

README.md

Homebrew Cask

“To install, drag this icon…” no more!

Homebrew Cask extends Homebrew and brings its elegance, simplicity, and speed to the installation and management of GUI macOS applications such as Atom and Google Chrome.

We do this by providing a friendly CLI workflow for the administration of macOS applications distributed as binaries.

Join us on https://discourse.brew.sh

Lets try it!

To start using Homebrew Cask, you just need Homebrew installed.

Installing and uninstalling Atom (animated gif)

Slower, now:

$ brew cask install atom
==> Satisfying dependencies
==> Downloading https://github.com/atom/atom/releases/download/v1.35.1/atom-mac.zip
==> Downloading from https://github-production-release-asset-2e65be.s3.amazonaws.co
######################################################################## 100.0%
==> Verifying SHA-256 checksum for Cask 'atom'.
==> Installing Cask atom
==> Moving App 'Atom.app' to '/Applications/Atom.app'.
==> Linking Binary 'apm' to '/usr/local/bin/apm'.
==> Linking Binary 'atom.sh' to '/usr/local/bin/atom'.
🍺  atom was successfully installed!

And there we have it. Atom installed with one quick command: no clicking, no dragging, no dropping.

Learn More

  • Find basic documentation on using Homebrew Cask in USAGE.md
  • Want to contribute a Cask? Awesome! See CONTRIBUTING.md
  • Want to hack on our code? Also awesome! See hacking.md
  • More project-related details and discussion are available in the documentation

Reporting bugs

If you ignore this guide, your issue may be closed without review.

Before reporting a bug, run brew update-reset && brew update and try your command again. This is a fix-all that will reset the state of all your taps, ensuring the problem isnt an outdated setup on your side.

If your issue persists, search for it before opening a new one. If you find an open issue and have any new information, add it in a comment. If you find a closed issue, try the solutions there.

If the issue is still not solved, see the guides for common problems:

Requests

Questions? Wanna chat?

Were really rather friendly! Here are the best places to talk about the project:

License

Code is under the BSD 2 Clause (NetBSD) license