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

Commit

Permalink
Add eXist-db.app 3.0 (nightly build) (#3067)
Browse files Browse the repository at this point in the history
* Add eXist-db.app 3.0 (nightly build)

* Remove nokogiri dependency as instructed

- Replaced nokogiri with io.read.scan as proposed by @claui.
- Addressed all brew cask style concerns
- Tested the resulting script and confirmed that it successfully grabbed the latest nightly
  • Loading branch information
joewiz authored and adidalal committed Dec 29, 2016
1 parent 5cc9171 commit 16b3bab
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Casks/exist-db-nightly.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cask 'exist-db-nightly' do
version :latest
sha256 :no_check

# static.adamretter.org.uk/exist-nightly was verified as official when first introduced to the cask
url do
require 'open-uri'
base_url = 'http://static.adamretter.org.uk/exist-nightly'
builds_url = "#{base_url}/table.html"
latest_build_filename = open(builds_url) do |io|
io.read.scan(%r{<tr>.*?<td>(.*?)</td>.*?<a href="([^\"]+)">dmg}m).max[1]
end
"#{base_url}/#{latest_build_filename}"
end
name 'eXist-db'
homepage 'http://exist-db.org/exist/apps/homepage/index.html'

app 'eXist-db.app'
end

0 comments on commit 16b3bab

Please sign in to comment.