Skip to content

Commit

Permalink
Update Wrangler CLI (see #5)
Browse files Browse the repository at this point in the history
- stable: 1.10.3
- head: 1.11.0-rc.0
  • Loading branch information
bvanrijn committed Jul 30, 2020
1 parent 84d3786 commit a67dfd9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Install
run: brew install --verbose --devel ./wrangler-cli.rb
run: brew install --verbose --head ./wrangler-cli.rb
- name: Test
run: brew test --devel ./wrangler-cli.rb
run: brew test --head ./wrangler-cli.rb
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ brew install wrangler-cli

## Dev Releases

To install dev channel releases, instead of the stable ones, add a `--devel`
To install dev channel releases, instead of the stable ones, add a `--head`
flag after the brew commands:

```shell
brew install wrangler-cli --devel
brew install wrangler-cli --head
```

## Updating
Expand All @@ -49,7 +49,7 @@ brew upgrade wrangler-cli

This README is a modified version of the one found at [dart-lang/homebrew-dart][dartbrew], the official tap for the [Dart][] programming language.

The `audit` and `style` [CI jobs][ci] are based [two commands][adopt] from the AdoptOpenJDK tap.
The `audit` and `style` [CI jobs][ci] are based [two commands][adopt] from the AdoptOpenJDK tap.
The `test-stable` and `test-devel` steps are based on examples from the [Formula Cookbook][cookbook].

[adopt]: https://github.com/AdoptOpenJDK/homebrew-openjdk/blob/master/.github/PULL_REQUEST_TEMPLATE.md
Expand Down
14 changes: 7 additions & 7 deletions wrangler-cli.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
class WranglerCli < Formula
desc "Wrangle your cloudflare workers"
homepage "https://workers.cloudflare.com/"
url "https://github.com/cloudflare/wrangler/releases/download/v1.6.0/wrangler-v1.6.0-x86_64-apple-darwin.tar.gz"
sha256 "9d765e9f9b169859a9843ffab35458493f720b2a2b32d60698eddc3307589191"
url "https://github.com/cloudflare/wrangler/releases/download/v1.10.3/wrangler-v1.10.3-x86_64-apple-darwin.tar.gz"
sha256 "5d59a54c7751a96bd8dd638241812612438a838080101e4688a3b1e7583e2958"

devel do
url "https://github.com/cloudflare/wrangler/releases/download/v1.6.0-rc.0/wrangler-v1.6.0-rc.0-x86_64-apple-darwin.tar.gz"
sha256 "1894f5cf2061b8a4e96f51261dbd07aefc21cf3f747a3b68e01448d091b41433"
head do
url "https://github.com/cloudflare/wrangler/releases/download/v1.11.0-rc.0/wrangler-v1.11.0-rc.0-x86_64-apple-darwin.tar.gz"
sha256 "8b94218a21cf010e112c15b34f3c0057f75f69f045082e2a707058c26c231230"
end

def install
Expand All @@ -17,7 +17,7 @@ def install
# TODO: Find a better test that won't break on every release.
version_output = shell_output("#{bin}/wrangler --version")

assert_includes version_output, "1.6.0" unless build.devel?
assert_includes version_output, "1.6.0-rc.0" if build.devel?
assert_includes version_output, "1.10.3" unless build.devel?
assert_includes version_output, "1.11.0-rc.0" if build.devel?
end
end

0 comments on commit a67dfd9

Please sign in to comment.