2 desc "Development proxy for docker"
3 homepage "https://github.com/freedomben/dory"
4 url "https://github.com/FreedomBen/dory/archive/refs/tags/v1.2.0.tar.gz"
5 sha256 "8c385d898aed2de82f7d0ab5c776561ffe801dd4b222a07e25e5837953355b81"
10 sha256 cellar: :any_skip_relocation, arm64_sequoia: "e75ebd666b1c2b3d1ff21d0cdc9d8f820935e41e32c12533a544ccc4563f44db"
11 sha256 cellar: :any_skip_relocation, arm64_sonoma: "445dc72e8fd5886e5378277044e12edabcdd9136857bbc7b259ef76a5d4941cd"
12 sha256 cellar: :any_skip_relocation, arm64_ventura: "801315212e458f3a16eba1e62acbe37a7ddec7fe6542b1546a0b01e4d33d8f27"
13 sha256 cellar: :any_skip_relocation, arm64_monterey: "801315212e458f3a16eba1e62acbe37a7ddec7fe6542b1546a0b01e4d33d8f27"
14 sha256 cellar: :any_skip_relocation, arm64_big_sur: "801315212e458f3a16eba1e62acbe37a7ddec7fe6542b1546a0b01e4d33d8f27"
15 sha256 cellar: :any_skip_relocation, sonoma: "2ab9300321c48cb22e9fb417d9f80b08def6219a4fc0fd1ea834e7ca43e50aee"
16 sha256 cellar: :any_skip_relocation, ventura: "dc275970eb94ef3bba02bd5bf12241e26e4a35f415fa9de16710d9fe80b978bc"
17 sha256 cellar: :any_skip_relocation, monterey: "dc275970eb94ef3bba02bd5bf12241e26e4a35f415fa9de16710d9fe80b978bc"
18 sha256 cellar: :any_skip_relocation, big_sur: "dc275970eb94ef3bba02bd5bf12241e26e4a35f415fa9de16710d9fe80b978bc"
19 sha256 cellar: :any_skip_relocation, x86_64_linux: "af4be9da0d1d895883e8527052f05d6c6d2da3c4c24bf123c62bc8dc4a0973d4"
25 ENV["GEM_HOME"] = libexec
26 system "gem", "build", "#{name}.gemspec"
27 system "gem", "install", "#{name}-#{version}.gem"
28 bin.install libexec/"bin/#{name}"
29 bin.env_script_all_files(libexec/"bin", GEM_HOME: ENV["GEM_HOME"])
33 shell_output(bin/"dory")
35 system bin/"dory", "config-file"
36 assert_predicate testpath/".dory.yml", :exist?, "Dory could not generate config file"
38 version = shell_output(bin/"dory version")
39 assert_match version.to_s, version, "Unexpected output of version"