Merge pull request #4611 from retokromer/patch-1
use `https://` rather than `http://`
This commit is contained in:
commit
ad150e7595
@ -31,7 +31,7 @@ describe Hbc::Artifact::App, :cask do
|
|||||||
let(:cask) {
|
let(:cask) {
|
||||||
Hbc::Cask.new("subdir") do
|
Hbc::Cask.new("subdir") do
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage "http://example.com/local-caffeine"
|
homepage "https://example.com/local-caffeine"
|
||||||
version "1.2.3"
|
version "1.2.3"
|
||||||
sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
|
sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
|
||||||
app "subdir/Caffeine.app", target: "AnotherName.app"
|
app "subdir/Caffeine.app", target: "AnotherName.app"
|
||||||
|
|||||||
@ -26,7 +26,7 @@ describe Hbc::Artifact::App, :cask do
|
|||||||
let(:cask) {
|
let(:cask) {
|
||||||
Hbc::Cask.new("subdir") do
|
Hbc::Cask.new("subdir") do
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage "http://example.com/local-caffeine"
|
homepage "https://example.com/local-caffeine"
|
||||||
version "1.2.3"
|
version "1.2.3"
|
||||||
sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
|
sha256 "67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94"
|
||||||
app "subdir/Caffeine.app"
|
app "subdir/Caffeine.app"
|
||||||
|
|||||||
@ -12,8 +12,8 @@ describe Hbc::CLI::Cat, :cask do
|
|||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url 'http://example.com/TestCask.dmg'
|
url 'https://example.com/TestCask.dmg'
|
||||||
homepage 'http://example.com/'
|
homepage 'https://example.com/'
|
||||||
|
|
||||||
app 'TestCask.app'
|
app 'TestCask.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -8,13 +8,13 @@ describe Hbc::CLI::Home, :cask do
|
|||||||
it_behaves_like "a command that handles invalid options"
|
it_behaves_like "a command that handles invalid options"
|
||||||
|
|
||||||
it "opens the homepage for the specified Cask" do
|
it "opens the homepage for the specified Cask" do
|
||||||
expect(described_class).to receive(:open_url).with("http://example.com/local-caffeine")
|
expect(described_class).to receive(:open_url).with("https://example.com/local-caffeine")
|
||||||
described_class.run("local-caffeine")
|
described_class.run("local-caffeine")
|
||||||
end
|
end
|
||||||
|
|
||||||
it "works for multiple Casks" do
|
it "works for multiple Casks" do
|
||||||
expect(described_class).to receive(:open_url).with("http://example.com/local-caffeine")
|
expect(described_class).to receive(:open_url).with("https://example.com/local-caffeine")
|
||||||
expect(described_class).to receive(:open_url).with("http://example.com/local-transmission")
|
expect(described_class).to receive(:open_url).with("https://example.com/local-transmission")
|
||||||
described_class.run("local-caffeine", "local-transmission")
|
described_class.run("local-caffeine", "local-transmission")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -10,7 +10,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
described_class.run("local-caffeine")
|
described_class.run("local-caffeine")
|
||||||
}.to output(<<~EOS).to_stdout
|
}.to output(<<~EOS).to_stdout
|
||||||
local-caffeine: 1.2.3
|
local-caffeine: 1.2.3
|
||||||
http://example.com/local-caffeine
|
https://example.com/local-caffeine
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/local-caffeine.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/local-caffeine.rb
|
||||||
==> Name
|
==> Name
|
||||||
@ -25,7 +25,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
described_class.run("with-auto-updates")
|
described_class.run("with-auto-updates")
|
||||||
}.to output(<<~EOS).to_stdout
|
}.to output(<<~EOS).to_stdout
|
||||||
with-auto-updates: 1.0 (auto_updates)
|
with-auto-updates: 1.0 (auto_updates)
|
||||||
http://example.com/autoupdates
|
https://example.com/autoupdates
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-auto-updates.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-auto-updates.rb
|
||||||
==> Name
|
==> Name
|
||||||
@ -39,7 +39,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
let(:expected_output) {
|
let(:expected_output) {
|
||||||
<<~EOS
|
<<~EOS
|
||||||
local-caffeine: 1.2.3
|
local-caffeine: 1.2.3
|
||||||
http://example.com/local-caffeine
|
https://example.com/local-caffeine
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/local-caffeine.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/local-caffeine.rb
|
||||||
==> Name
|
==> Name
|
||||||
@ -47,7 +47,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
==> Artifacts
|
==> Artifacts
|
||||||
Caffeine.app (App)
|
Caffeine.app (App)
|
||||||
local-transmission: 2.61
|
local-transmission: 2.61
|
||||||
http://example.com/local-transmission
|
https://example.com/local-transmission
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/local-transmission.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/local-transmission.rb
|
||||||
==> Name
|
==> Name
|
||||||
@ -69,7 +69,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
described_class.run("with-caveats")
|
described_class.run("with-caveats")
|
||||||
}.to output(<<~EOS).to_stdout
|
}.to output(<<~EOS).to_stdout
|
||||||
with-caveats: 1.2.3
|
with-caveats: 1.2.3
|
||||||
http://example.com/local-caffeine
|
https://example.com/local-caffeine
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-caveats.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-caveats.rb
|
||||||
==> Name
|
==> Name
|
||||||
@ -95,7 +95,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
described_class.run("with-conditional-caveats")
|
described_class.run("with-conditional-caveats")
|
||||||
}.to output(<<~EOS).to_stdout
|
}.to output(<<~EOS).to_stdout
|
||||||
with-conditional-caveats: 1.2.3
|
with-conditional-caveats: 1.2.3
|
||||||
http://example.com/local-caffeine
|
https://example.com/local-caffeine
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-conditional-caveats.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-conditional-caveats.rb
|
||||||
==> Name
|
==> Name
|
||||||
@ -110,7 +110,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
described_class.run("with-languages")
|
described_class.run("with-languages")
|
||||||
}.to output(<<~EOS).to_stdout
|
}.to output(<<~EOS).to_stdout
|
||||||
with-languages: 1.2.3
|
with-languages: 1.2.3
|
||||||
http://example.com/local-caffeine
|
https://example.com/local-caffeine
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-languages.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/with-languages.rb
|
||||||
==> Name
|
==> Name
|
||||||
@ -127,7 +127,7 @@ describe Hbc::CLI::Info, :cask do
|
|||||||
described_class.run("without-languages")
|
described_class.run("without-languages")
|
||||||
}.to output(<<~EOS).to_stdout
|
}.to output(<<~EOS).to_stdout
|
||||||
without-languages: 1.2.3
|
without-languages: 1.2.3
|
||||||
http://example.com/local-caffeine
|
https://example.com/local-caffeine
|
||||||
Not installed
|
Not installed
|
||||||
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/without-languages.rb
|
From: https://github.com/Homebrew/homebrew-cask/blob/master/Casks/without-languages.rb
|
||||||
==> Name
|
==> Name
|
||||||
|
|||||||
@ -3,7 +3,7 @@ describe Hbc::CLI::InternalStanza, :cask do
|
|||||||
command = described_class.new("gpg", "with-gpg")
|
command = described_class.new("gpg", "with-gpg")
|
||||||
expect {
|
expect {
|
||||||
command.run
|
command.run
|
||||||
}.to output("http://example.com/gpg-signature.asc\n").to_stdout
|
}.to output("https://example.com/gpg-signature.asc\n").to_stdout
|
||||||
end
|
end
|
||||||
|
|
||||||
it "raises an exception when stanza is unknown/unsupported" do
|
it "raises an exception when stanza is unknown/unsupported" do
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
describe "download strategies", :cask do
|
describe "download strategies", :cask do
|
||||||
let(:url) { "http://example.com/cask.dmg" }
|
let(:url) { "https://example.com/cask.dmg" }
|
||||||
let(:url_options) { {} }
|
let(:url_options) { {} }
|
||||||
let(:cask) {
|
let(:cask) {
|
||||||
instance_double(Hbc::Cask, token: "some-cask",
|
instance_double(Hbc::Cask, token: "some-cask",
|
||||||
@ -16,7 +16,7 @@ describe "download strategies", :cask do
|
|||||||
|
|
||||||
it "properly assigns a name and uri based on the Cask" do
|
it "properly assigns a name and uri based on the Cask" do
|
||||||
expect(downloader.name).to eq("some-cask")
|
expect(downloader.name).to eq("some-cask")
|
||||||
expect(downloader.url).to eq("http://example.com/cask.dmg")
|
expect(downloader.url).to eq("https://example.com/cask.dmg")
|
||||||
expect(downloader.version.to_s).to eq("1.2.3.4")
|
expect(downloader.version.to_s).to eq("1.2.3.4")
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ describe "download strategies", :cask do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "with referer set" do
|
context "with referer set" do
|
||||||
let(:url_options) { { referer: "http://somehost/also" } }
|
let(:url_options) { { referer: "https://somehost/also" } }
|
||||||
|
|
||||||
it "adds curl args for referer" do
|
it "adds curl args for referer" do
|
||||||
curl_args = []
|
curl_args = []
|
||||||
@ -90,7 +90,7 @@ describe "download strategies", :cask do
|
|||||||
|
|
||||||
downloader.fetch
|
downloader.fetch
|
||||||
|
|
||||||
expect(curl_args.each_cons(2)).to include(["-e", "http://somehost/also"])
|
expect(curl_args.each_cons(2)).to include(["-e", "https://somehost/also"])
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -103,7 +103,7 @@ describe "download strategies", :cask do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "with no discernible file name in it" do
|
context "with no discernible file name in it" do
|
||||||
let(:url) { "http://example.com/download" }
|
let(:url) { "https://example.com/download" }
|
||||||
|
|
||||||
describe "#tarball_path" do
|
describe "#tarball_path" do
|
||||||
subject { downloader.tarball_path }
|
subject { downloader.tarball_path }
|
||||||
@ -113,7 +113,7 @@ describe "download strategies", :cask do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "with a file name trailing the first query parameter" do
|
context "with a file name trailing the first query parameter" do
|
||||||
let(:url) { "http://example.com/download?file=cask.zip&a=1" }
|
let(:url) { "https://example.com/download?file=cask.zip&a=1" }
|
||||||
|
|
||||||
describe "#tarball_path" do
|
describe "#tarball_path" do
|
||||||
subject { downloader.tarball_path }
|
subject { downloader.tarball_path }
|
||||||
@ -123,7 +123,7 @@ describe "download strategies", :cask do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "with a file name trailing the second query parameter" do
|
context "with a file name trailing the second query parameter" do
|
||||||
let(:url) { "http://example.com/dl?a=1&file=cask.zip&b=2" }
|
let(:url) { "https://example.com/dl?a=1&file=cask.zip&b=2" }
|
||||||
|
|
||||||
describe "#tarball_path" do
|
describe "#tarball_path" do
|
||||||
subject { downloader.tarball_path }
|
subject { downloader.tarball_path }
|
||||||
|
|||||||
@ -3,13 +3,13 @@ require "cmd/cask"
|
|||||||
describe Hbc::DSL::Appcast do
|
describe Hbc::DSL::Appcast do
|
||||||
subject { described_class.new(url, params) }
|
subject { described_class.new(url, params) }
|
||||||
|
|
||||||
let(:url) { "http://example.com" }
|
let(:url) { "https://example.com" }
|
||||||
let(:uri) { URI(url) }
|
let(:uri) { URI(url) }
|
||||||
let(:params) { {} }
|
let(:params) { {} }
|
||||||
|
|
||||||
describe "#to_s" do
|
describe "#to_s" do
|
||||||
it "returns the parsed URI string" do
|
it "returns the parsed URI string" do
|
||||||
expect(subject.to_s).to eq("http://example.com")
|
expect(subject.to_s).to eq("https://example.com")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -4,8 +4,8 @@ describe Hbc::DSL, :cask do
|
|||||||
|
|
||||||
context "stanzas" do
|
context "stanzas" do
|
||||||
it "lets you set url, homepage, and version" do
|
it "lets you set url, homepage, and version" do
|
||||||
expect(cask.url.to_s).to eq("http://example.com/TestCask.dmg")
|
expect(cask.url.to_s).to eq("https://example.com/TestCask.dmg")
|
||||||
expect(cask.homepage).to eq("http://example.com/")
|
expect(cask.homepage).to eq("https://example.com/")
|
||||||
expect(cask.version.to_s).to eq("1.2.3")
|
expect(cask.version.to_s).to eq("1.2.3")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -65,8 +65,8 @@ describe Hbc::DSL, :cask do
|
|||||||
|
|
||||||
it "does not require a DSL version in the header" do
|
it "does not require a DSL version in the header" do
|
||||||
expect(cask.token).to eq("no-dsl-version")
|
expect(cask.token).to eq("no-dsl-version")
|
||||||
expect(cask.url.to_s).to eq("http://example.com/TestCask.dmg")
|
expect(cask.url.to_s).to eq("https://example.com/TestCask.dmg")
|
||||||
expect(cask.homepage).to eq("http://example.com/")
|
expect(cask.homepage).to eq("https://example.com/")
|
||||||
expect(cask.version.to_s).to eq("1.2.3")
|
expect(cask.version.to_s).to eq("1.2.3")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -81,37 +81,37 @@ describe DependencyCollector do
|
|||||||
|
|
||||||
it "creates a resource dependency from a '.7z' URL" do
|
it "creates a resource dependency from a '.7z' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.7z")
|
resource.url("https://example.com/foo.7z")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("p7zip", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("p7zip", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates a resource dependency from a '.gz' URL" do
|
it "creates a resource dependency from a '.gz' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.tar.gz")
|
resource.url("https://example.com/foo.tar.gz")
|
||||||
expect(subject.add(resource)).to be nil
|
expect(subject.add(resource)).to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates a resource dependency from a '.lz' URL" do
|
it "creates a resource dependency from a '.lz' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.lz")
|
resource.url("https://example.com/foo.lz")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("lzip", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("lzip", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates a resource dependency from a '.lha' URL" do
|
it "creates a resource dependency from a '.lha' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.lha")
|
resource.url("https://example.com/foo.lha")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("lha", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("lha", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates a resource dependency from a '.lzh' URL" do
|
it "creates a resource dependency from a '.lzh' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.lzh")
|
resource.url("https://example.com/foo.lzh")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("lha", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("lha", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates a resource dependency from a '.rar' URL" do
|
it "creates a resource dependency from a '.rar' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.rar")
|
resource.url("https://example.com/foo.rar")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("unrar", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("unrar", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,7 @@ module Homebrew
|
|||||||
|
|
||||||
specify "simple valid Formula" do
|
specify "simple valid Formula" do
|
||||||
ft = formula_text "valid", <<~RUBY
|
ft = formula_text "valid", <<~RUBY
|
||||||
url "http://www.example.com/valid-1.0.tar.gz"
|
url "https://www.example.com/valid-1.0.tar.gz"
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
expect(ft).not_to have_data
|
expect(ft).not_to have_data
|
||||||
@ -80,7 +80,7 @@ module Homebrew
|
|||||||
it "is empty by default" do
|
it "is empty by default" do
|
||||||
fa = formula_auditor "foo", <<~RUBY
|
fa = formula_auditor "foo", <<~RUBY
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ module Homebrew
|
|||||||
|
|
||||||
fa = formula_auditor "foo", <<~RUBY
|
fa = formula_auditor "foo", <<~RUBY
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
@ -109,7 +109,7 @@ module Homebrew
|
|||||||
specify "DATA but no __END__" do
|
specify "DATA but no __END__" do
|
||||||
fa = formula_auditor "foo", <<~RUBY
|
fa = formula_auditor "foo", <<~RUBY
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
patch :DATA
|
patch :DATA
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
@ -121,7 +121,7 @@ module Homebrew
|
|||||||
specify "__END__ but no DATA" do
|
specify "__END__ but no DATA" do
|
||||||
fa = formula_auditor "foo", <<~RUBY
|
fa = formula_auditor "foo", <<~RUBY
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
end
|
end
|
||||||
__END__
|
__END__
|
||||||
a patch goes here
|
a patch goes here
|
||||||
@ -141,8 +141,8 @@ module Homebrew
|
|||||||
specify "no issue" do
|
specify "no issue" do
|
||||||
fa = formula_auditor "foo", <<~RUBY
|
fa = formula_auditor "foo", <<~RUBY
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
homepage "http://example.com"
|
homepage "https://example.com"
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
@ -155,7 +155,7 @@ module Homebrew
|
|||||||
specify "pkgshare" do
|
specify "pkgshare" do
|
||||||
fa = formula_auditor "foo", <<~RUBY, strict: true
|
fa = formula_auditor "foo", <<~RUBY, strict: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
@ -188,7 +188,7 @@ module Homebrew
|
|||||||
fa = formula_auditor "foolibc++", <<~RUBY, strict: true
|
fa = formula_auditor "foolibc++", <<~RUBY, strict: true
|
||||||
class Foolibcxx < Formula
|
class Foolibcxx < Formula
|
||||||
desc "foolibc++ is a test"
|
desc "foolibc++ is a test"
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
@ -209,7 +209,7 @@ module Homebrew
|
|||||||
fa = formula_auditor "foo", <<~RUBY, strict: true, online: true
|
fa = formula_auditor "foo", <<~RUBY, strict: true, online: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
homepage "https://github.com/example/example"
|
homepage "https://github.com/example/example"
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
end
|
end
|
||||||
RUBY
|
RUBY
|
||||||
|
|
||||||
@ -226,8 +226,8 @@ module Homebrew
|
|||||||
let(:fa) do
|
let(:fa) do
|
||||||
formula_auditor "foo", <<~RUBY, new_formula: true
|
formula_auditor "foo", <<~RUBY, new_formula: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
homepage "http://example.com"
|
homepage "https://example.com"
|
||||||
|
|
||||||
depends_on "openssl"
|
depends_on "openssl"
|
||||||
end
|
end
|
||||||
@ -236,8 +236,8 @@ module Homebrew
|
|||||||
|
|
||||||
let(:f_openssl) do
|
let(:f_openssl) do
|
||||||
formula do
|
formula do
|
||||||
url "http://example.com/openssl-1.0.tgz"
|
url "https://example.com/openssl-1.0.tgz"
|
||||||
homepage "http://example.com"
|
homepage "https://example.com"
|
||||||
|
|
||||||
keg_only :provided_by_macos
|
keg_only :provided_by_macos
|
||||||
end
|
end
|
||||||
@ -258,8 +258,8 @@ module Homebrew
|
|||||||
let(:fa) do
|
let(:fa) do
|
||||||
formula_auditor "foo", <<~RUBY, new_formula: true
|
formula_auditor "foo", <<~RUBY, new_formula: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
homepage "http://example.com"
|
homepage "https://example.com"
|
||||||
|
|
||||||
depends_on "bc"
|
depends_on "bc"
|
||||||
end
|
end
|
||||||
@ -268,8 +268,8 @@ module Homebrew
|
|||||||
|
|
||||||
let(:f_bc) do
|
let(:f_bc) do
|
||||||
formula do
|
formula do
|
||||||
url "http://example.com/bc-1.0.tgz"
|
url "https://example.com/bc-1.0.tgz"
|
||||||
homepage "http://example.com"
|
homepage "https://example.com"
|
||||||
|
|
||||||
keg_only :provided_by_macos
|
keg_only :provided_by_macos
|
||||||
end
|
end
|
||||||
@ -290,7 +290,7 @@ module Homebrew
|
|||||||
specify "keg_only_needs_downcasing" do
|
specify "keg_only_needs_downcasing" do
|
||||||
fa = formula_auditor "foo", <<~RUBY, strict: true
|
fa = formula_auditor "foo", <<~RUBY, strict: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
|
|
||||||
keg_only "Because why not"
|
keg_only "Because why not"
|
||||||
end
|
end
|
||||||
@ -304,7 +304,7 @@ module Homebrew
|
|||||||
specify "keg_only_redundant_period" do
|
specify "keg_only_redundant_period" do
|
||||||
fa = formula_auditor "foo", <<~RUBY, strict: true
|
fa = formula_auditor "foo", <<~RUBY, strict: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
|
|
||||||
keg_only "because this line ends in a period."
|
keg_only "because this line ends in a period."
|
||||||
end
|
end
|
||||||
@ -318,7 +318,7 @@ module Homebrew
|
|||||||
specify "keg_only_handles_block_correctly" do
|
specify "keg_only_handles_block_correctly" do
|
||||||
fa = formula_auditor "foo", <<~RUBY, strict: true
|
fa = formula_auditor "foo", <<~RUBY, strict: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
|
|
||||||
keg_only <<~EOF
|
keg_only <<~EOF
|
||||||
this line starts with a lowercase word.
|
this line starts with a lowercase word.
|
||||||
@ -337,7 +337,7 @@ module Homebrew
|
|||||||
specify "keg_only_handles_whitelist_correctly" do
|
specify "keg_only_handles_whitelist_correctly" do
|
||||||
fa = formula_auditor "foo", <<~RUBY, strict: true
|
fa = formula_auditor "foo", <<~RUBY, strict: true
|
||||||
class Foo < Formula
|
class Foo < Formula
|
||||||
url "http://example.com/foo-1.0.tgz"
|
url "https://example.com/foo-1.0.tgz"
|
||||||
|
|
||||||
keg_only "Apple ships foo in the CLT package"
|
keg_only "Apple ships foo in the CLT package"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -5,7 +5,7 @@ describe AbstractDownloadStrategy do
|
|||||||
|
|
||||||
let(:specs) { {} }
|
let(:specs) { {} }
|
||||||
let(:name) { "foo" }
|
let(:name) { "foo" }
|
||||||
let(:url) { "http://example.com/foo.tar.gz" }
|
let(:url) { "https://example.com/foo.tar.gz" }
|
||||||
let(:version) { nil }
|
let(:version) { nil }
|
||||||
let(:args) { %w[foo bar baz] }
|
let(:args) { %w[foo bar baz] }
|
||||||
|
|
||||||
@ -34,7 +34,7 @@ describe AbstractDownloadStrategy do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe VCSDownloadStrategy do
|
describe VCSDownloadStrategy do
|
||||||
let(:url) { "http://example.com/bar" }
|
let(:url) { "https://example.com/bar" }
|
||||||
let(:version) { nil }
|
let(:version) { nil }
|
||||||
|
|
||||||
describe "#cached_location" do
|
describe "#cached_location" do
|
||||||
@ -204,14 +204,14 @@ describe S3DownloadStrategy do
|
|||||||
subject { described_class.new(url, name, version) }
|
subject { described_class.new(url, name, version) }
|
||||||
|
|
||||||
let(:name) { "foo" }
|
let(:name) { "foo" }
|
||||||
let(:url) { "http://bucket.s3.amazonaws.com/foo.tar.gz" }
|
let(:url) { "https://bucket.s3.amazonaws.com/foo.tar.gz" }
|
||||||
let(:version) { nil }
|
let(:version) { nil }
|
||||||
|
|
||||||
describe "#_fetch" do
|
describe "#_fetch" do
|
||||||
subject { described_class.new(url, name, version)._fetch }
|
subject { described_class.new(url, name, version)._fetch }
|
||||||
|
|
||||||
context "when given Bad S3 URL" do
|
context "when given Bad S3 URL" do
|
||||||
let(:url) { "http://example.com/foo.tar.gz" }
|
let(:url) { "https://example.com/foo.tar.gz" }
|
||||||
|
|
||||||
it "raises Bad S3 URL error" do
|
it "raises Bad S3 URL error" do
|
||||||
expect {
|
expect {
|
||||||
@ -226,7 +226,7 @@ describe CurlDownloadStrategy do
|
|||||||
subject { described_class.new(url, name, version, **specs) }
|
subject { described_class.new(url, name, version, **specs) }
|
||||||
|
|
||||||
let(:name) { "foo" }
|
let(:name) { "foo" }
|
||||||
let(:url) { "http://example.com/foo.tar.gz" }
|
let(:url) { "https://example.com/foo.tar.gz" }
|
||||||
let(:version) { "1.2.3" }
|
let(:version) { "1.2.3" }
|
||||||
let(:specs) { { user: "download:123456" } }
|
let(:specs) { { user: "download:123456" } }
|
||||||
|
|
||||||
@ -242,7 +242,7 @@ describe CurlDownloadStrategy do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "when URL file is in middle" do
|
context "when URL file is in middle" do
|
||||||
let(:url) { "http://example.com/foo.tar.gz/from/this/mirror" }
|
let(:url) { "https://example.com/foo.tar.gz/from/this/mirror" }
|
||||||
|
|
||||||
it { is_expected.to eq(HOMEBREW_CACHE/"foo--1.2.3.tar.gz") }
|
it { is_expected.to eq(HOMEBREW_CACHE/"foo--1.2.3.tar.gz") }
|
||||||
end
|
end
|
||||||
@ -312,11 +312,11 @@ describe CurlDownloadStrategy do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "with referer set" do
|
context "with referer set" do
|
||||||
let(:specs) { { referer: "http://somehost/also" } }
|
let(:specs) { { referer: "https://somehost/also" } }
|
||||||
|
|
||||||
it "adds the appropriate curl args" do
|
it "adds the appropriate curl args" do
|
||||||
expect(subject).to receive(:system_command!) { |*, args:, **|
|
expect(subject).to receive(:system_command!) { |*, args:, **|
|
||||||
expect(args.each_cons(2)).to include(["-e", "http://somehost/also"])
|
expect(args.each_cons(2)).to include(["-e", "https://somehost/also"])
|
||||||
}
|
}
|
||||||
|
|
||||||
subject.fetch
|
subject.fetch
|
||||||
@ -326,22 +326,22 @@ describe CurlDownloadStrategy do
|
|||||||
|
|
||||||
describe "#cached_location" do
|
describe "#cached_location" do
|
||||||
context "with a file name trailing the URL path" do
|
context "with a file name trailing the URL path" do
|
||||||
let(:url) { "http://example.com/cask.dmg" }
|
let(:url) { "https://example.com/cask.dmg" }
|
||||||
its("cached_location.extname") { is_expected.to eq(".dmg") }
|
its("cached_location.extname") { is_expected.to eq(".dmg") }
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with no discernible file name in it" do
|
context "with no discernible file name in it" do
|
||||||
let(:url) { "http://example.com/download" }
|
let(:url) { "https://example.com/download" }
|
||||||
its("cached_location.basename.to_path") { is_expected.to eq("foo--1.2.3") }
|
its("cached_location.basename.to_path") { is_expected.to eq("foo--1.2.3") }
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with a file name trailing the first query parameter" do
|
context "with a file name trailing the first query parameter" do
|
||||||
let(:url) { "http://example.com/download?file=cask.zip&a=1" }
|
let(:url) { "https://example.com/download?file=cask.zip&a=1" }
|
||||||
its("cached_location.extname") { is_expected.to eq(".zip") }
|
its("cached_location.extname") { is_expected.to eq(".zip") }
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with a file name trailing the second query parameter" do
|
context "with a file name trailing the second query parameter" do
|
||||||
let(:url) { "http://example.com/dl?a=1&file=cask.zip&b=2" }
|
let(:url) { "https://example.com/dl?a=1&file=cask.zip&b=2" }
|
||||||
its("cached_location.extname") { is_expected.to eq(".zip") }
|
its("cached_location.extname") { is_expected.to eq(".zip") }
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -374,7 +374,7 @@ describe CurlPostDownloadStrategy do
|
|||||||
subject { described_class.new(url, name, version, **specs) }
|
subject { described_class.new(url, name, version, **specs) }
|
||||||
|
|
||||||
let(:name) { "foo" }
|
let(:name) { "foo" }
|
||||||
let(:url) { "http://example.com/foo.tar.gz" }
|
let(:url) { "https://example.com/foo.tar.gz" }
|
||||||
let(:version) { "1.2.3" }
|
let(:version) { "1.2.3" }
|
||||||
let(:specs) { {} }
|
let(:specs) { {} }
|
||||||
|
|
||||||
@ -426,7 +426,7 @@ describe ScpDownloadStrategy do
|
|||||||
|
|
||||||
describe "#initialize" do
|
describe "#initialize" do
|
||||||
invalid_urls = %w[
|
invalid_urls = %w[
|
||||||
http://example.com/foo.tar.gz
|
https://example.com/foo.tar.gz
|
||||||
scp://@example.com/foo.tar.gz
|
scp://@example.com/foo.tar.gz
|
||||||
scp://example.com:/foo.tar.gz
|
scp://example.com:/foo.tar.gz
|
||||||
scp://example.com
|
scp://example.com
|
||||||
@ -502,7 +502,7 @@ describe SubversionDownloadStrategy do
|
|||||||
subject { described_class.new(url, name, version, **specs) }
|
subject { described_class.new(url, name, version, **specs) }
|
||||||
|
|
||||||
let(:name) { "foo" }
|
let(:name) { "foo" }
|
||||||
let(:url) { "http://example.com/foo.tar.gz" }
|
let(:url) { "https://example.com/foo.tar.gz" }
|
||||||
let(:version) { "1.2.3" }
|
let(:version) { "1.2.3" }
|
||||||
let(:specs) { {} }
|
let(:specs) { {} }
|
||||||
|
|
||||||
|
|||||||
@ -176,9 +176,9 @@ describe CurlDownloadStrategyError do
|
|||||||
end
|
end
|
||||||
|
|
||||||
context "download failed" do
|
context "download failed" do
|
||||||
subject { described_class.new("http://brew.sh") }
|
subject { described_class.new("https://brew.sh") }
|
||||||
|
|
||||||
its(:to_s) { is_expected.to eq("Download failed: http://brew.sh") }
|
its(:to_s) { is_expected.to eq("Download failed: https://brew.sh") }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ describe Formula do
|
|||||||
describe "::new" do
|
describe "::new" do
|
||||||
let(:klass) do
|
let(:klass) do
|
||||||
Class.new(described_class) do
|
Class.new(described_class) do
|
||||||
url "http://example.com/foo-1.0.tar.gz"
|
url "https://example.com/foo-1.0.tar.gz"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -510,22 +510,22 @@ describe Formula do
|
|||||||
|
|
||||||
specify "spec integration" do
|
specify "spec integration" do
|
||||||
f = formula do
|
f = formula do
|
||||||
homepage "http://example.com"
|
homepage "https://example.com"
|
||||||
|
|
||||||
url "http://example.com/test-0.1.tbz"
|
url "https://example.com/test-0.1.tbz"
|
||||||
mirror "http://example.org/test-0.1.tbz"
|
mirror "https://example.org/test-0.1.tbz"
|
||||||
sha256 TEST_SHA256
|
sha256 TEST_SHA256
|
||||||
|
|
||||||
head "http://example.com/test.git", tag: "foo"
|
head "https://example.com/test.git", tag: "foo"
|
||||||
|
|
||||||
devel do
|
devel do
|
||||||
url "http://example.com/test-0.2.tbz"
|
url "https://example.com/test-0.2.tbz"
|
||||||
mirror "http://example.org/test-0.2.tbz"
|
mirror "https://example.org/test-0.2.tbz"
|
||||||
sha256 TEST_SHA256
|
sha256 TEST_SHA256
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
expect(f.homepage).to eq("http://example.com")
|
expect(f.homepage).to eq("https://example.com")
|
||||||
expect(f.version).to eq(Version.create("0.1"))
|
expect(f.version).to eq(Version.create("0.1"))
|
||||||
expect(f).to be_stable
|
expect(f).to be_stable
|
||||||
expect(f.stable.version).to eq(Version.create("0.1"))
|
expect(f.stable.version).to eq(Version.create("0.1"))
|
||||||
|
|||||||
@ -5,13 +5,13 @@ describe Messages do
|
|||||||
before do
|
before do
|
||||||
@m = Messages.new
|
@m = Messages.new
|
||||||
f_foo = formula("foo") do
|
f_foo = formula("foo") do
|
||||||
url "http://example.com/foo-0.1.tgz"
|
url "https://example.com/foo-0.1.tgz"
|
||||||
end
|
end
|
||||||
f_bar = formula("bar") do
|
f_bar = formula("bar") do
|
||||||
url "http://example.com/bar-0.1.tgz"
|
url "https://example.com/bar-0.1.tgz"
|
||||||
end
|
end
|
||||||
f_baz = formula("baz") do
|
f_baz = formula("baz") do
|
||||||
url "http://example.com/baz-0.1.tgz"
|
url "https://example.com/baz-0.1.tgz"
|
||||||
end
|
end
|
||||||
@m.formula_installed(f_foo, 1.1)
|
@m.formula_installed(f_foo, 1.1)
|
||||||
@m.record_caveats(f_foo, "Zsh completions were installed")
|
@m.record_caveats(f_foo, "Zsh completions were installed")
|
||||||
|
|||||||
@ -12,19 +12,19 @@ describe DependencyCollector do
|
|||||||
|
|
||||||
context "when xz, unzip, and bzip2 are not available" do
|
context "when xz, unzip, and bzip2 are not available" do
|
||||||
it "creates a resource dependency from a '.xz' URL" do
|
it "creates a resource dependency from a '.xz' URL" do
|
||||||
resource.url("http://example.com/foo.xz")
|
resource.url("https://example.com/foo.xz")
|
||||||
allow_any_instance_of(Object).to receive(:which).with("xz")
|
allow_any_instance_of(Object).to receive(:which).with("xz")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("xz", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("xz", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates a resource dependency from a '.zip' URL" do
|
it "creates a resource dependency from a '.zip' URL" do
|
||||||
resource.url("http://example.com/foo.zip")
|
resource.url("https://example.com/foo.zip")
|
||||||
allow_any_instance_of(Object).to receive(:which).with("unzip")
|
allow_any_instance_of(Object).to receive(:which).with("unzip")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("unzip", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("unzip", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
it "creates a resource dependency from a '.bz2' URL" do
|
it "creates a resource dependency from a '.bz2' URL" do
|
||||||
resource.url("http://example.com/foo.tar.bz2")
|
resource.url("https://example.com/foo.tar.bz2")
|
||||||
allow_any_instance_of(Object).to receive(:which).with("bzip2")
|
allow_any_instance_of(Object).to receive(:which).with("bzip2")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("bzip2", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("bzip2", [:build]))
|
||||||
end
|
end
|
||||||
@ -32,19 +32,19 @@ describe DependencyCollector do
|
|||||||
|
|
||||||
context "when xz, zip, and bzip2 are available" do
|
context "when xz, zip, and bzip2 are available" do
|
||||||
it "does not create a resource dependency from a '.xz' URL" do
|
it "does not create a resource dependency from a '.xz' URL" do
|
||||||
resource.url("http://example.com/foo.xz")
|
resource.url("https://example.com/foo.xz")
|
||||||
allow_any_instance_of(Object).to receive(:which).with("xz").and_return(Pathname.new("foo"))
|
allow_any_instance_of(Object).to receive(:which).with("xz").and_return(Pathname.new("foo"))
|
||||||
expect(subject.add(resource)).to be nil
|
expect(subject.add(resource)).to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not create a resource dependency from a '.zip' URL" do
|
it "does not create a resource dependency from a '.zip' URL" do
|
||||||
resource.url("http://example.com/foo.zip")
|
resource.url("https://example.com/foo.zip")
|
||||||
allow_any_instance_of(Object).to receive(:which).with("unzip").and_return(Pathname.new("foo"))
|
allow_any_instance_of(Object).to receive(:which).with("unzip").and_return(Pathname.new("foo"))
|
||||||
expect(subject.add(resource)).to be nil
|
expect(subject.add(resource)).to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
it "does not create a resource dependency from a '.bz2' URL" do
|
it "does not create a resource dependency from a '.bz2' URL" do
|
||||||
resource.url("http://example.com/foo.tar.bz2")
|
resource.url("https://example.com/foo.tar.bz2")
|
||||||
allow_any_instance_of(Object).to receive(:which).with("bzip2").and_return(Pathname.new("foo"))
|
allow_any_instance_of(Object).to receive(:which).with("bzip2").and_return(Pathname.new("foo"))
|
||||||
expect(subject.add(resource)).to be nil
|
expect(subject.add(resource)).to be nil
|
||||||
end
|
end
|
||||||
|
|||||||
@ -25,26 +25,26 @@ describe DependencyCollector do
|
|||||||
specify "Resource xz pre-Mavericks dependency" do
|
specify "Resource xz pre-Mavericks dependency" do
|
||||||
allow(MacOS).to receive(:version).and_return(MacOS::Version.new("10.8"))
|
allow(MacOS).to receive(:version).and_return(MacOS::Version.new("10.8"))
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.tar.xz")
|
resource.url("https://example.com/foo.tar.xz")
|
||||||
expect(subject.add(resource)).to eq(Dependency.new("xz", [:build]))
|
expect(subject.add(resource)).to eq(Dependency.new("xz", [:build]))
|
||||||
end
|
end
|
||||||
|
|
||||||
specify "Resource xz Mavericks or newer dependency" do
|
specify "Resource xz Mavericks or newer dependency" do
|
||||||
allow(MacOS).to receive(:version).and_return(MacOS::Version.new("10.9"))
|
allow(MacOS).to receive(:version).and_return(MacOS::Version.new("10.9"))
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.tar.xz")
|
resource.url("https://example.com/foo.tar.xz")
|
||||||
expect(subject.add(resource)).to be nil
|
expect(subject.add(resource)).to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
specify "Resource dependency from a '.zip' URL" do
|
specify "Resource dependency from a '.zip' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.zip")
|
resource.url("https://example.com/foo.zip")
|
||||||
expect(subject.add(resource)).to be nil
|
expect(subject.add(resource)).to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
specify "Resource dependency from a '.bz2' URL" do
|
specify "Resource dependency from a '.bz2' URL" do
|
||||||
resource = Resource.new
|
resource = Resource.new
|
||||||
resource.url("http://example.com/foo.tar.bz2")
|
resource.url("https://example.com/foo.tar.bz2")
|
||||||
expect(subject.add(resource)).to be nil
|
expect(subject.add(resource)).to be nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -75,14 +75,14 @@ describe Patch do
|
|||||||
|
|
||||||
describe "#normalize_legacy_patches" do
|
describe "#normalize_legacy_patches" do
|
||||||
it "can create a patch from a single string" do
|
it "can create a patch from a single string" do
|
||||||
patches = described_class.normalize_legacy_patches("http://example.com/patch.diff")
|
patches = described_class.normalize_legacy_patches("https://example.com/patch.diff")
|
||||||
expect(patches.length).to eq(1)
|
expect(patches.length).to eq(1)
|
||||||
expect(patches.first.strip).to eq(:p1)
|
expect(patches.first.strip).to eq(:p1)
|
||||||
end
|
end
|
||||||
|
|
||||||
it "can create patches from an array" do
|
it "can create patches from an array" do
|
||||||
patches = described_class.normalize_legacy_patches(
|
patches = described_class.normalize_legacy_patches(
|
||||||
%w[http://example.com/patch1.diff http://example.com/patch2.diff],
|
%w[https://example.com/patch1.diff https://example.com/patch2.diff],
|
||||||
)
|
)
|
||||||
|
|
||||||
expect(patches.length).to eq(2)
|
expect(patches.length).to eq(2)
|
||||||
@ -92,7 +92,7 @@ describe Patch do
|
|||||||
|
|
||||||
it "can create patches from a :p0 hash" do
|
it "can create patches from a :p0 hash" do
|
||||||
patches = described_class.normalize_legacy_patches(
|
patches = described_class.normalize_legacy_patches(
|
||||||
p0: "http://example.com/patch.diff",
|
p0: "https://example.com/patch.diff",
|
||||||
)
|
)
|
||||||
|
|
||||||
expect(patches.length).to eq(1)
|
expect(patches.length).to eq(1)
|
||||||
@ -101,7 +101,7 @@ describe Patch do
|
|||||||
|
|
||||||
it "can create patches from a :p1 hash" do
|
it "can create patches from a :p1 hash" do
|
||||||
patches = described_class.normalize_legacy_patches(
|
patches = described_class.normalize_legacy_patches(
|
||||||
p1: "http://example.com/patch.diff",
|
p1: "https://example.com/patch.diff",
|
||||||
)
|
)
|
||||||
|
|
||||||
expect(patches.length).to eq(1)
|
expect(patches.length).to eq(1)
|
||||||
@ -110,8 +110,8 @@ describe Patch do
|
|||||||
|
|
||||||
it "can create patches from a mixed hash" do
|
it "can create patches from a mixed hash" do
|
||||||
patches = described_class.normalize_legacy_patches(
|
patches = described_class.normalize_legacy_patches(
|
||||||
p1: "http://example.com/patch1.diff",
|
p1: "https://example.com/patch1.diff",
|
||||||
p0: "http://example.com/patch0.diff",
|
p0: "https://example.com/patch0.diff",
|
||||||
)
|
)
|
||||||
|
|
||||||
expect(patches.length).to eq(2)
|
expect(patches.length).to eq(2)
|
||||||
@ -122,12 +122,12 @@ describe Patch do
|
|||||||
it "can create patches from a mixed hash with array" do
|
it "can create patches from a mixed hash with array" do
|
||||||
patches = described_class.normalize_legacy_patches(
|
patches = described_class.normalize_legacy_patches(
|
||||||
p1: [
|
p1: [
|
||||||
"http://example.com/patch10.diff",
|
"https://example.com/patch10.diff",
|
||||||
"http://example.com/patch11.diff",
|
"https://example.com/patch11.diff",
|
||||||
],
|
],
|
||||||
p0: [
|
p0: [
|
||||||
"http://example.com/patch00.diff",
|
"https://example.com/patch00.diff",
|
||||||
"http://example.com/patch01.diff",
|
"https://example.com/patch01.diff",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -57,7 +57,7 @@ describe Resource do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "can detect the version from a URL" do
|
it "can detect the version from a URL" do
|
||||||
subject.url("http://example.com/foo-1.0.tar.gz")
|
subject.url("https://example.com/foo-1.0.tar.gz")
|
||||||
expect(subject.version).to eq(Version.parse("1.0"))
|
expect(subject.version).to eq(Version.parse("1.0"))
|
||||||
expect(subject.version).to be_detected_from_url
|
expect(subject.version).to be_detected_from_url
|
||||||
end
|
end
|
||||||
@ -70,7 +70,7 @@ describe Resource do
|
|||||||
end
|
end
|
||||||
|
|
||||||
it "can set the version from a tag" do
|
it "can set the version from a tag" do
|
||||||
subject.url("http://example.com/foo-1.0.tar.gz", tag: "v1.0.2")
|
subject.url("https://example.com/foo-1.0.tar.gz", tag: "v1.0.2")
|
||||||
expect(subject.version).to eq(Version.parse("1.0.2"))
|
expect(subject.version).to eq(Version.parse("1.0.2"))
|
||||||
expect(subject.version).to be_detected_from_url
|
expect(subject.version).to be_detected_from_url
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
cask 'appcast-with-checkpoint' do
|
cask 'appcast-with-checkpoint' do
|
||||||
appcast 'http://localhost/appcast.xml',
|
appcast 'https://localhost/appcast.xml',
|
||||||
checkpoint: 'd5b2dfbef7ea28c25f7a77cd7fa14d013d82b626db1d82e00e25822464ba19e2'
|
checkpoint: 'd5b2dfbef7ea28c25f7a77cd7fa14d013d82b626db1d82e00e25822464ba19e2'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'appdir-interpolation' do
|
|||||||
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
||||||
homepage 'http://example.com/appdir-interpolation'
|
homepage 'https://example.com/appdir-interpolation'
|
||||||
|
|
||||||
binary "#{appdir}/some/path"
|
binary "#{appdir}/some/path"
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'auto-updates' do
|
|||||||
sha256 '5633c3a0f2e572cbf021507dec78c50998b398c343232bdfc7e26221d0a5db4d'
|
sha256 '5633c3a0f2e572cbf021507dec78c50998b398c343232bdfc7e26221d0a5db4d'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyApp.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyApp.zip"
|
||||||
homepage 'http://example.com/MyFancyApp'
|
homepage 'https://example.com/MyFancyApp'
|
||||||
|
|
||||||
auto_updates true
|
auto_updates true
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'bad-checksum' do
|
|||||||
sha256 'badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb'
|
sha256 'badbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadbadb'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,8 +2,8 @@ cask 'basic-cask' do
|
|||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url 'http://example.com/TestCask.dmg'
|
url 'https://example.com/TestCask.dmg'
|
||||||
homepage 'http://example.com/'
|
homepage 'https://example.com/'
|
||||||
|
|
||||||
app 'TestCask.app'
|
app 'TestCask.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,8 +2,8 @@ cask :v1 => 'with-dsl-version' do
|
|||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url 'http://example.com/TestCask.dmg'
|
url 'https://example.com/TestCask.dmg'
|
||||||
homepage 'http://example.com/'
|
homepage 'https://example.com/'
|
||||||
|
|
||||||
app 'TestCask.app'
|
app 'TestCask.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -6,7 +6,7 @@ cask 'devmate-with-appcast' do
|
|||||||
url "https://dl.devmate.com/com.my.fancyapp/app_#{version}.zip"
|
url "https://dl.devmate.com/com.my.fancyapp/app_#{version}.zip"
|
||||||
appcast 'https://updates.devmate.com/com.my.fancyapp.app.xml'
|
appcast 'https://updates.devmate.com/com.my.fancyapp.app.xml'
|
||||||
name 'DevMate'
|
name 'DevMate'
|
||||||
homepage 'http://www.example.com/'
|
homepage 'https://www.example.com/'
|
||||||
|
|
||||||
app 'DevMate.app'
|
app 'DevMate.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -5,7 +5,7 @@ cask 'devmate-without-appcast' do
|
|||||||
# dl.devmate.com/com.my.fancyapp was verified as official when first introduced to the cask
|
# dl.devmate.com/com.my.fancyapp was verified as official when first introduced to the cask
|
||||||
url "https://dl.devmate.com/com.my.fancyapp/app_#{version}.zip"
|
url "https://dl.devmate.com/com.my.fancyapp/app_#{version}.zip"
|
||||||
name 'DevMate'
|
name 'DevMate'
|
||||||
homepage 'http://www.example.com/'
|
homepage 'https://www.example.com/'
|
||||||
|
|
||||||
app 'DevMate.app'
|
app 'DevMate.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -6,7 +6,7 @@ cask 'hockeyapp-with-appcast' do
|
|||||||
url "https://rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1/app_versions/#{version.after_comma}?format=zip"
|
url "https://rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1/app_versions/#{version.after_comma}?format=zip"
|
||||||
appcast 'https://rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1'
|
appcast 'https://rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1'
|
||||||
name 'HockeyApp'
|
name 'HockeyApp'
|
||||||
homepage 'http://www.example.com/'
|
homepage 'https://www.example.com/'
|
||||||
|
|
||||||
app 'HockeyApp.app'
|
app 'HockeyApp.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -5,7 +5,7 @@ cask 'hockeyapp-without-appcast' do
|
|||||||
# rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1 was verified as official when first introduced to the cask
|
# rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1 was verified as official when first introduced to the cask
|
||||||
url "https://rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1/app_versions/#{version.after_comma}?format=zip"
|
url "https://rink.hockeyapp.net/api/2/apps/67503a7926431872c4b6c1549f5bd6b1/app_versions/#{version.after_comma}?format=zip"
|
||||||
name 'HockeyApp'
|
name 'HockeyApp'
|
||||||
homepage 'http://www.example.com/'
|
homepage 'https://www.example.com/'
|
||||||
|
|
||||||
app 'HockeyApp.app'
|
app 'HockeyApp.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'installer-with-uninstall' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
installer manual: 'Caffeine.app'
|
installer manual: 'Caffeine.app'
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,9 @@ cask 'invalid-appcast-multiple' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
appcast 'http://example.com/appcast1.xml'
|
appcast 'https://example.com/appcast1.xml'
|
||||||
appcast 'http://example.com/appcast2.xml'
|
appcast 'https://example.com/appcast2.xml'
|
||||||
homepage 'http://example.com/invalid-appcast-multiple'
|
homepage 'https://example.com/invalid-appcast-multiple'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -4,7 +4,7 @@ cask 'invalid-appcast-url' do
|
|||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
appcast 1
|
appcast 1
|
||||||
homepage 'http://example.com/invalid-appcast-url'
|
homepage 'https://example.com/invalid-appcast-url'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-conflicts-with-key' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-conflicts-with-key'
|
homepage 'https://example.com/invalid-conflicts-with-key'
|
||||||
|
|
||||||
conflicts_with no_such_key: 'unar'
|
conflicts_with no_such_key: 'unar'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-depends-on-arch-value' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-depends-on-arch-value'
|
homepage 'https://example.com/invalid-depends-on-arch-value'
|
||||||
|
|
||||||
depends_on arch: :no_such_arch
|
depends_on arch: :no_such_arch
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-depends-on-key' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-depends-on-key'
|
homepage 'https://example.com/invalid-depends-on-key'
|
||||||
|
|
||||||
depends_on no_such_key: 'unar'
|
depends_on no_such_key: 'unar'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-depends-on-macos-bad-release' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-depends-on-macos-bad-release'
|
homepage 'https://example.com/invalid-depends-on-macos-bad-release'
|
||||||
|
|
||||||
depends_on macos: :no_such_release
|
depends_on macos: :no_such_release
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-depends-on-macos-conflicting-forms' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-depends-on-macos-conflicting-forms'
|
homepage 'https://example.com/invalid-depends-on-macos-conflicting-forms'
|
||||||
|
|
||||||
depends_on macos: :yosemite
|
depends_on macos: :yosemite
|
||||||
depends_on macos: '>= :mavericks'
|
depends_on macos: '>= :mavericks'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-depends-on-x11-value' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-depends-on-x11-value'
|
homepage 'https://example.com/invalid-depends-on-x11-value'
|
||||||
|
|
||||||
depends_on x11: :no_such_value
|
depends_on x11: :no_such_value
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-generic-artifact-no-target' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-generic-artifact'
|
homepage 'https://example.com/with-generic-artifact'
|
||||||
|
|
||||||
artifact 'Caffeine.app'
|
artifact 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,10 +3,10 @@ cask 'invalid-gpg-conflicting-keys' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-conflicting-keys'
|
homepage 'https://example.com/invalid-gpg-conflicting-keys'
|
||||||
gpg 'http://example.com/gpg-signature.asc',
|
gpg 'https://example.com/gpg-signature.asc',
|
||||||
key_id: '01234567',
|
key_id: '01234567',
|
||||||
key_url: 'http://example.com/gpg-key-url'
|
key_url: 'https://example.com/gpg-key-url'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'invalid-gpg-key-id' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-key-id'
|
homepage 'https://example.com/invalid-gpg-key-id'
|
||||||
gpg 'http://example.com/gpg-signature.asc',
|
gpg 'https://example.com/gpg-signature.asc',
|
||||||
key_id: '012'
|
key_id: '012'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'invalid-gpg-key-url' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-key-url'
|
homepage 'https://example.com/invalid-gpg-key-url'
|
||||||
gpg 'http://example.com/gpg-signature.asc',
|
gpg 'https://example.com/gpg-signature.asc',
|
||||||
key_url: 1
|
key_url: 1
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'invalid-gpg-missing-key' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-missing-keys'
|
homepage 'https://example.com/invalid-gpg-missing-keys'
|
||||||
gpg 'http://example.com/gpg-signature.asc'
|
gpg 'https://example.com/gpg-signature.asc'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,10 +3,10 @@ cask 'invalid-gpg-multiple-stanzas' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-multiple-stanzas'
|
homepage 'https://example.com/invalid-gpg-multiple-stanzas'
|
||||||
gpg 'http://example.com/gpg-signature.asc',
|
gpg 'https://example.com/gpg-signature.asc',
|
||||||
key_id: '01234567'
|
key_id: '01234567'
|
||||||
gpg 'http://example.com/gpg-signature.asc',
|
gpg 'https://example.com/gpg-signature.asc',
|
||||||
key_id: '01234567'
|
key_id: '01234567'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'invalid-gpg-parameter' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-type'
|
homepage 'https://example.com/invalid-gpg-type'
|
||||||
gpg 'http://example.com/gpg-signature.asc',
|
gpg 'https://example.com/gpg-signature.asc',
|
||||||
no_such_parameter: :value
|
no_such_parameter: :value
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-gpg-signature-url' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-signature-url'
|
homepage 'https://example.com/invalid-gpg-signature-url'
|
||||||
gpg 1,
|
gpg 1,
|
||||||
key_id: '01234567'
|
key_id: '01234567'
|
||||||
|
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'invalid-gpg-type' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/invalid-gpg-type'
|
homepage 'https://example.com/invalid-gpg-type'
|
||||||
gpg 'http://example.com/gpg-signature.asc',
|
gpg 'https://example.com/gpg-signature.asc',
|
||||||
no_such_parameter: :value
|
no_such_parameter: :value
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask => 'invalid-header-format' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-header-token-mismatch-this-text-does-not-belong' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-header-version' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'invalid-stage-only-conflict' do
|
|||||||
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
||||||
homepage 'http://example.com/invalid-stage-only-conflict'
|
homepage 'https://example.com/invalid-stage-only-conflict'
|
||||||
|
|
||||||
app 'Transmission.app'
|
app 'Transmission.app'
|
||||||
stage_only true
|
stage_only true
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'invalid-two-homepage' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
homepage 'http://www.example.com/local-caffeine'
|
homepage 'https://www.example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'invalid-two-url' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
url 'http://example.com/caffeine.zip'
|
url 'https://example.com/caffeine.zip'
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -4,7 +4,7 @@ cask 'invalid-two-version' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'latest-with-appcast' do
|
|||||||
sha256 :no_check
|
sha256 :no_check
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
appcast 'http://example.com/appcast.xml'
|
appcast 'https://example.com/appcast.xml'
|
||||||
homepage 'http://example.com/with-appcast'
|
homepage 'https://example.com/with-appcast'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'latest-with-auto-updates' do
|
|||||||
sha256 :no_check
|
sha256 :no_check
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/latest-with-auto-updates'
|
homepage 'https://example.com/latest-with-auto-updates'
|
||||||
|
|
||||||
auto_updates true
|
auto_updates true
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'local-caffeine' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'local-transmission' do
|
|||||||
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
||||||
homepage 'http://example.com/local-transmission'
|
homepage 'https://example.com/local-transmission'
|
||||||
|
|
||||||
app 'Transmission.app'
|
app 'Transmission.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,7 +2,7 @@ cask 'missing-checksum' do
|
|||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
cask 'missing-homepage' do
|
cask 'missing-homepage' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
url 'http://localhost/something.dmg'
|
url 'https://localhost/something.dmg'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
cask 'missing-name' do
|
cask 'missing-name' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
url 'http://localhost/something.dmg'
|
url 'https://localhost/something.dmg'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
cask 'missing-sha256' do
|
cask 'missing-sha256' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
url 'http://localhost/something.dmg'
|
url 'https://localhost/something.dmg'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
cask 'missing-url' do
|
cask 'missing-url' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
homepage 'http://example.com'
|
homepage 'https://example.com'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
cask 'missing-version' do
|
cask 'missing-version' do
|
||||||
url 'http://localhost/something.dmg'
|
url 'https://localhost/something.dmg'
|
||||||
homepage 'http://example.com'
|
homepage 'https://example.com'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'naked-executable' do
|
|||||||
sha256 '306c6ca7407560340797866e077e053627ad409277d1b9da58106fce4cf717cb'
|
sha256 '306c6ca7407560340797866e077e053627ad409277d1b9da58106fce4cf717cb'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/naked_executable"
|
url "file://#{TEST_FIXTURE_DIR}/cask/naked_executable"
|
||||||
homepage 'http://example.com/naked-executable'
|
homepage 'https://example.com/naked-executable'
|
||||||
|
|
||||||
container type: :naked
|
container type: :naked
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'nested-app' do
|
|||||||
sha256 '1866dfa833b123bb8fe7fa7185ebf24d28d300d0643d75798bc23730af734216'
|
sha256 '1866dfa833b123bb8fe7fa7185ebf24d28d300d0643d75798bc23730af734216'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/NestedApp.dmg.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/NestedApp.dmg.zip"
|
||||||
homepage 'http://example.com/nested-app'
|
homepage 'https://example.com/nested-app'
|
||||||
|
|
||||||
container nested: 'NestedApp.dmg'
|
container nested: 'NestedApp.dmg'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'no-checksum' do
|
|||||||
sha256 :no_check
|
sha256 :no_check
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,8 +2,8 @@ cask 'no-dsl-version' do
|
|||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url 'http://example.com/TestCask.dmg'
|
url 'https://example.com/TestCask.dmg'
|
||||||
homepage 'http://example.com/'
|
homepage 'https://example.com/'
|
||||||
|
|
||||||
app 'TestCask.app'
|
app 'TestCask.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
cask 'osdn-correct-url-format' do
|
cask 'osdn-correct-url-format' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
url 'http://user.dl.osdn.jp/something/id/Something-1.2.3.dmg'
|
url 'https://user.dl.osdn.jp/something/id/Something-1.2.3.dmg'
|
||||||
homepage 'http://osdn.jp/projects/something/'
|
homepage 'https://osdn.jp/projects/something/'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
cask 'osdn-incorrect-url-format' do
|
cask 'osdn-incorrect-url-format' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
url 'http://osdn.jp/projects/something/files/Something-1.2.3.dmg/download'
|
url 'https://osdn.jp/projects/something/files/Something-1.2.3.dmg/download'
|
||||||
homepage 'http://osdn.jp/projects/something/'
|
homepage 'https://osdn.jp/projects/something/'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'auto-updates' do
|
|||||||
sha256 '5633c3a0f2e572cbf021507dec78c50998b398c343232bdfc7e26221d0a5db4d'
|
sha256 '5633c3a0f2e572cbf021507dec78c50998b398c343232bdfc7e26221d0a5db4d'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyApp.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyApp.zip"
|
||||||
homepage 'http://example.com/MyFancyApp'
|
homepage 'https://example.com/MyFancyApp'
|
||||||
|
|
||||||
auto_updates true
|
auto_updates true
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'bad-checksum' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'local-caffeine' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'local-transmission' do
|
|||||||
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
||||||
homepage 'http://example.com/local-transmission'
|
homepage 'https://example.com/local-transmission'
|
||||||
|
|
||||||
app 'Transmission.app'
|
app 'Transmission.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'version-latest' do
|
|||||||
sha256 :no_check
|
sha256 :no_check
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeines.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeines.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine Mini.app'
|
app 'Caffeine Mini.app'
|
||||||
app 'Caffeine Pro.app'
|
app 'Caffeine Pro.app'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'pkg-without-uninstall' do
|
|||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip"
|
||||||
homepage 'http://example.com/fancy-pkg'
|
homepage 'https://example.com/fancy-pkg'
|
||||||
|
|
||||||
pkg 'Fancy.pkg'
|
pkg 'Fancy.pkg'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
cask 'sourceforge-incorrect-url-format' do
|
cask 'sourceforge-incorrect-url-format' do
|
||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
|
|
||||||
url 'http://sourceforge.net/projects/something/files/Something-1.2.3.dmg/download'
|
url 'https://sourceforge.net/projects/something/files/Something-1.2.3.dmg/download'
|
||||||
homepage 'http://sourceforge.net/projects/something/'
|
homepage 'https://sourceforge.net/projects/something/'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'stage-only' do
|
|||||||
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
||||||
homepage 'http://example.com/stage-only'
|
homepage 'https://example.com/stage-only'
|
||||||
|
|
||||||
stage_only true
|
stage_only true
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,8 +2,8 @@ cask 'test-opera-mail' do
|
|||||||
version '1.0'
|
version '1.0'
|
||||||
sha256 'afd192e308f8ea8ddb3d426fd6663d97078570417ee78b8e1fa15f515ae3d677'
|
sha256 'afd192e308f8ea8ddb3d426fd6663d97078570417ee78b8e1fa15f515ae3d677'
|
||||||
|
|
||||||
url 'http://get-ash-1.opera.com/pub/opera/mail/1.0/mac/Opera-Mail-1.0-1040.i386.dmg'
|
url 'https://get-ash-1.opera.com/pub/opera/mail/1.0/mac/Opera-Mail-1.0-1040.i386.dmg'
|
||||||
homepage 'http://www.opera.com/computer/mail'
|
homepage 'https://www.opera.com/computer/mail'
|
||||||
|
|
||||||
app 'Opera Mail.app'
|
app 'Opera Mail.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,8 +2,8 @@ cask 'test-opera' do
|
|||||||
version '19.0.1326.47'
|
version '19.0.1326.47'
|
||||||
sha256 '7b91f20ab754f7b3fef8dc346e0393917e11676b74c8f577408841619f76040a'
|
sha256 '7b91f20ab754f7b3fef8dc346e0393917e11676b74c8f577408841619f76040a'
|
||||||
|
|
||||||
url 'http://get.geo.opera.com/pub/opera/desktop/19.0.1326.47/mac/Opera_19.0.1326.47_Setup.dmg'
|
url 'https://get.geo.opera.com/pub/opera/desktop/19.0.1326.47/mac/Opera_19.0.1326.47_Setup.dmg'
|
||||||
homepage 'http://www.opera.com/'
|
homepage 'https://www.opera.com/'
|
||||||
|
|
||||||
app 'Opera.app'
|
app 'Opera.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'version-latest' do
|
|||||||
sha256 :no_check
|
sha256 :no_check
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeines.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeines.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine Mini.app'
|
app 'Caffeine Mini.app'
|
||||||
app 'Caffeine Pro.app'
|
app 'Caffeine Pro.app'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'will-fail-if-upgraded' do
|
|||||||
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
sha256 'e44ffa103fbf83f55c8d0b1bea309a43b2880798dae8620b1ee8da5e1095ec68'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
url "file://#{TEST_FIXTURE_DIR}/cask/transmission-2.61.dmg"
|
||||||
homepage 'http://example.com/local-transmission'
|
homepage 'https://example.com/local-transmission'
|
||||||
|
|
||||||
app 'container'
|
app 'container'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -2,8 +2,8 @@ cask 'with-accessibility-access' do
|
|||||||
version '1.2.3'
|
version '1.2.3'
|
||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url 'http://example.com/TestCask.dmg'
|
url 'https://example.com/TestCask.dmg'
|
||||||
homepage 'http://example.com/'
|
homepage 'https://example.com/'
|
||||||
|
|
||||||
accessibility_access true
|
accessibility_access true
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-allow-untrusted' do
|
|||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip"
|
||||||
homepage 'http://example.com/fancy-pkg'
|
homepage 'https://example.com/fancy-pkg'
|
||||||
|
|
||||||
pkg 'Fancy.pkg', allow_untrusted: true
|
pkg 'Fancy.pkg', allow_untrusted: true
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-alt-target' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app', target: 'AnotherName.app'
|
app 'Caffeine.app', target: 'AnotherName.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -3,8 +3,8 @@ cask 'with-appcast' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
appcast 'http://example.com/appcast.xml'
|
appcast 'https://example.com/appcast.xml'
|
||||||
homepage 'http://example.com/with-appcast'
|
homepage 'https://example.com/with-appcast'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -4,7 +4,7 @@ cask 'with-auto-updates' do
|
|||||||
|
|
||||||
url "https://example.com/autoupdates_#{version}.zip"
|
url "https://example.com/autoupdates_#{version}.zip"
|
||||||
name 'AutoUpdates'
|
name 'AutoUpdates'
|
||||||
homepage 'http://example.com/autoupdates'
|
homepage 'https://example.com/autoupdates'
|
||||||
|
|
||||||
auto_updates true
|
auto_updates true
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-binary' do
|
|||||||
sha256 'd5b2dfbef7ea28c25f7a77cd7fa14d013d82b626db1d82e00e25822464ba19e2'
|
sha256 'd5b2dfbef7ea28c25f7a77cd7fa14d013d82b626db1d82e00e25822464ba19e2'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/AppWithBinary.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/AppWithBinary.zip"
|
||||||
homepage 'http://example.com/with-binary'
|
homepage 'https://example.com/with-binary'
|
||||||
|
|
||||||
app 'App.app'
|
app 'App.app'
|
||||||
binary 'binary'
|
binary 'binary'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-caveats' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-choices' do
|
|||||||
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
sha256 '8c62a2b791cf5f0da6066a0a4b6e85f62949cd60975da062df44adf887f4370b'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/MyFancyPkg.zip"
|
||||||
homepage 'http://example.com/fancy-pkg'
|
homepage 'https://example.com/fancy-pkg'
|
||||||
|
|
||||||
pkg 'MyFancyPkg/Fancy.pkg',
|
pkg 'MyFancyPkg/Fancy.pkg',
|
||||||
choices: [
|
choices: [
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-conditional-caveats' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/local-caffeine'
|
homepage 'https://example.com/local-caffeine'
|
||||||
|
|
||||||
app 'Caffeine.app'
|
app 'Caffeine.app'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-conflicts-with' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-conflicts-with'
|
homepage 'https://example.com/with-conflicts-with'
|
||||||
|
|
||||||
conflicts_with cask: 'local-caffeine'
|
conflicts_with cask: 'local-caffeine'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-arch' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-arch'
|
homepage 'https://example.com/with-depends-on-arch'
|
||||||
|
|
||||||
# covers all known hardware; always succeeds
|
# covers all known hardware; always succeeds
|
||||||
depends_on arch: :intel
|
depends_on arch: :intel
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-cask-cyclic-helper' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-cask-cyclic-helper'
|
homepage 'https://example.com/with-depends-on-cask-cyclic-helper'
|
||||||
|
|
||||||
depends_on cask: 'with-depends-on-cask-cyclic'
|
depends_on cask: 'with-depends-on-cask-cyclic'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-cask-cyclic' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-cask-cyclic'
|
homepage 'https://example.com/with-depends-on-cask-cyclic'
|
||||||
|
|
||||||
depends_on cask: 'local-caffeine'
|
depends_on cask: 'local-caffeine'
|
||||||
depends_on cask: 'with-depends-on-cask-cyclic-helper'
|
depends_on cask: 'with-depends-on-cask-cyclic-helper'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-cask-multiple' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-cask-multiple'
|
homepage 'https://example.com/with-depends-on-cask-multiple'
|
||||||
|
|
||||||
depends_on cask: 'local-caffeine'
|
depends_on cask: 'local-caffeine'
|
||||||
depends_on cask: 'local-transmission'
|
depends_on cask: 'local-transmission'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-cask' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-cask'
|
homepage 'https://example.com/with-depends-on-cask'
|
||||||
|
|
||||||
depends_on cask: 'local-transmission'
|
depends_on cask: 'local-transmission'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-formula-multiple' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-formula-multiple'
|
homepage 'https://example.com/with-depends-on-formula-multiple'
|
||||||
|
|
||||||
depends_on formula: 'unar'
|
depends_on formula: 'unar'
|
||||||
depends_on formula: 'fileutils'
|
depends_on formula: 'fileutils'
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-formula' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-formula'
|
homepage 'https://example.com/with-depends-on-formula'
|
||||||
|
|
||||||
depends_on formula: 'unar'
|
depends_on formula: 'unar'
|
||||||
|
|
||||||
|
|||||||
@ -3,7 +3,7 @@ cask 'with-depends-on-macos-array' do
|
|||||||
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
sha256 '67cdb8a02803ef37fdbf7e0be205863172e41a561ca446cd84f0d7ab35a99d94'
|
||||||
|
|
||||||
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
url "file://#{TEST_FIXTURE_DIR}/cask/caffeine.zip"
|
||||||
homepage 'http://example.com/with-depends-on-macos-array'
|
homepage 'https://example.com/with-depends-on-macos-array'
|
||||||
|
|
||||||
# since all OS releases are included, this should always pass
|
# since all OS releases are included, this should always pass
|
||||||
depends_on macos: ['10.4', '10.5', '10.6', '10.7', '10.8', '10.9', '10.10', MacOS.version.to_s]
|
depends_on macos: ['10.4', '10.5', '10.6', '10.7', '10.8', '10.9', '10.10', MacOS.version.to_s]
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user