Skip to content

Commit 1ab37a1

Browse files
committed
Update plugins to v1.11.0 release
1 parent ea35067 commit 1ab37a1

11 files changed

+176
-15
lines changed

admin.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'fileutils'
22

33
class Admin < Formula
4-
v = "v1.10.0"
4+
v = "v1.11.0"
55
plugin_name = "admin"
66
path_name = "kn-plugin-#{plugin_name}"
77
file_name = "kn-#{plugin_name}"
@@ -13,10 +13,10 @@ class Admin < Formula
1313

1414
if OS.mac?
1515
url "#{base_url}/#{file_name}-darwin-amd64"
16-
sha256 "a7a55c363a35eabc05f50159d436699e769a3892fb05c6fdd420eba79cf7e9ab"
16+
sha256 "e0f4fd38135d399b9b51b073e7a3e15b7428e6d1a3b6e03effaf95c0df23753d"
1717
else
1818
url "#{base_url}/#{file_name}-linux-amd64"
19-
sha256 "ad040536a6fda39d1605dc364f11b714d668ede4a7a385f06a6e89386f56e751"
19+
sha256 "36a88a7f4d488ba2b7046087997429d406570b342d6f6797c4703f608cc243f6"
2020
end
2121

2222
def install

[email protected]

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
require 'fileutils'
2+
3+
class AdminAT110 < Formula
4+
v = "v1.10.0"
5+
plugin_name = "admin"
6+
path_name = "kn-plugin-#{plugin_name}"
7+
file_name = "kn-#{plugin_name}"
8+
base_url = "https://github.com/knative-sandbox/#{path_name}/releases/download/knative-#{v}"
9+
10+
homepage "https://github.com/knative-sandbox/#{path_name}"
11+
12+
version v
13+
14+
if OS.mac?
15+
url "#{base_url}/#{file_name}-darwin-amd64"
16+
sha256 "a7a55c363a35eabc05f50159d436699e769a3892fb05c6fdd420eba79cf7e9ab"
17+
else
18+
url "#{base_url}/#{file_name}-linux-amd64"
19+
sha256 "ad040536a6fda39d1605dc364f11b714d668ede4a7a385f06a6e89386f56e751"
20+
end
21+
22+
def install
23+
if OS.mac?
24+
FileUtils.mv("kn-admin-darwin-amd64", "kn-admin")
25+
else
26+
FileUtils.mv("kn-admin-linux-amd64", "kn-admin")
27+
end
28+
bin.install "kn-admin"
29+
end
30+
31+
test do
32+
system "#{bin}/kn-admin", "version"
33+
end
34+
end

event.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
require_relative 'kn/plugin/event'
55

66
class Event < Formula
7-
PLUGIN = Kn::Plugin::Event.new 'v1.10.0'
7+
PLUGIN = Kn::Plugin::Event.new 'v1.11.0'
88

99
homepage PLUGIN.homepage
1010
version PLUGIN.version

[email protected]

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
require 'fileutils'
2+
require 'json'
3+
4+
require_relative 'kn/plugin/event'
5+
6+
class EventAT110 < Formula
7+
PLUGIN = Kn::Plugin::Event.new 'v1.10.0'
8+
9+
homepage PLUGIN.homepage
10+
version PLUGIN.version
11+
url PLUGIN.url
12+
sha256 PLUGIN.sha256
13+
14+
def install
15+
FileUtils.mv(PLUGIN.source_bin, PLUGIN.target_bin)
16+
bin.install PLUGIN.target_bin
17+
end
18+
19+
test do
20+
json = shell_output("#{bin}/#{PLUGIN.target_bin} version -o json").strip
21+
version_info = JSON.parse(json)
22+
assert_equal PLUGIN.version, version_info['version']
23+
end
24+
end

hack/update-versions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
set -e
1818

1919
PLUGINS=("admin" "event" "quickstart" "source-kafka" "source-kamelet")
20-
CURRENT_RELEASE=${CURRENT_RELEASE:-1.10}
21-
PREVIOUS_RELEASE=${PREVIOUS_RELEASE:-1.9}
20+
CURRENT_RELEASE=${CURRENT_RELEASE:-1.11}
21+
PREVIOUS_RELEASE=${PREVIOUS_RELEASE:-1.10}
2222

2323
for plugin in "${PLUGINS[@]}"; do
2424

quickstart.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'fileutils'
22

33
class Quickstart < Formula
4-
v = "v1.10.0"
4+
v = "v1.11.0"
55
plugin_name = "quickstart"
66
path_name = "kn-plugin-#{plugin_name}"
77
file_name = "kn-#{plugin_name}"
@@ -13,10 +13,10 @@ class Quickstart < Formula
1313

1414
if OS.mac?
1515
url "#{base_url}/#{file_name}-darwin-amd64"
16-
sha256 "1b3ff80c3d07a26b65fb551eaa76d0560841de13371fd40dc790ea67edf83468"
16+
sha256 "0cc699ffd36dda8f5a85addc1eb3e32b864b1c9653f50e40560ef330ea5d59ce"
1717
else
1818
url "#{base_url}/#{file_name}-linux-amd64"
19-
sha256 "6ab28b80fa584c2a99431974cacbd2fc5bc165eb35b31ef9d78219d69a02b010"
19+
sha256 "6d5ab1c06e8fa3ae88b34c6b39469366d6e1dbd3626e0ce403bcae5ab63496ed"
2020
end
2121

2222
def install

[email protected]

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
require 'fileutils'
2+
3+
class QuickstartAT110 < Formula
4+
v = "v1.10.0"
5+
plugin_name = "quickstart"
6+
path_name = "kn-plugin-#{plugin_name}"
7+
file_name = "kn-#{plugin_name}"
8+
base_url = "https://github.com/knative-sandbox/#{path_name}/releases/download/knative-#{v}"
9+
10+
homepage "https://github.com/knative-sandbox/#{path_name}"
11+
12+
version v
13+
14+
if OS.mac?
15+
url "#{base_url}/#{file_name}-darwin-amd64"
16+
sha256 "1b3ff80c3d07a26b65fb551eaa76d0560841de13371fd40dc790ea67edf83468"
17+
else
18+
url "#{base_url}/#{file_name}-linux-amd64"
19+
sha256 "6ab28b80fa584c2a99431974cacbd2fc5bc165eb35b31ef9d78219d69a02b010"
20+
end
21+
22+
def install
23+
if OS.mac?
24+
FileUtils.mv("kn-quickstart-darwin-amd64", "kn-quickstart")
25+
else
26+
FileUtils.mv("kn-quickstart-linux-amd64", "kn-quickstart")
27+
end
28+
bin.install "kn-quickstart"
29+
end
30+
31+
test do
32+
system "#{bin}/kn-quickstart", "version"
33+
end
34+
end
35+

source-kafka.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'fileutils'
22

33
class SourceKafka < Formula
4-
v = "v1.10.0"
4+
v = "v1.11.0"
55
plugin_name = "source-kafka"
66
path_name = "kn-plugin-#{plugin_name}"
77
file_name = "kn-#{plugin_name}"
@@ -13,10 +13,10 @@ class SourceKafka < Formula
1313

1414
if OS.mac?
1515
url "#{base_url}/#{file_name}-darwin-amd64"
16-
sha256 "a63f38f559422ca3407907dc7e157138a24e0087f34646e939342e6b25d657f3"
16+
sha256 "149eee8a1ddf9752973c9fac2edc9e3d878dbc80b5c47e81cb3c56583038e013"
1717
else
1818
url "#{base_url}/#{file_name}-linux-amd64"
19-
sha256 "a60b6f3458e151780343556aa8854ae39d441c4fc7de9d877f2709feed2a8f82"
19+
sha256 "cbd882e10e1f2c8f6f6890a972b85e261db988c96625cfce2ebfed0d0e74af6b"
2020
end
2121

2222
def install

[email protected]

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
require 'fileutils'
2+
3+
class SourceKafkaAT110 < Formula
4+
v = "v1.10.0"
5+
plugin_name = "source-kafka"
6+
path_name = "kn-plugin-#{plugin_name}"
7+
file_name = "kn-#{plugin_name}"
8+
base_url = "https://github.com/knative-sandbox/#{path_name}/releases/download/knative-#{v}"
9+
10+
homepage "https://github.com/knative-sandbox/#{path_name}"
11+
12+
version v
13+
14+
if OS.mac?
15+
url "#{base_url}/#{file_name}-darwin-amd64"
16+
sha256 "a63f38f559422ca3407907dc7e157138a24e0087f34646e939342e6b25d657f3"
17+
else
18+
url "#{base_url}/#{file_name}-linux-amd64"
19+
sha256 "a60b6f3458e151780343556aa8854ae39d441c4fc7de9d877f2709feed2a8f82"
20+
end
21+
22+
def install
23+
if OS.mac?
24+
FileUtils.mv("kn-source-kafka-darwin-amd64", "kn-source-kafka")
25+
else
26+
FileUtils.mv("kn-source-kafka-linux-amd64", "kn-source-kafka")
27+
end
28+
bin.install "kn-source-kafka"
29+
end
30+
31+
test do
32+
system "#{bin}/kn-source-kafka", "version"
33+
end
34+
end

source-kamelet.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'fileutils'
22

33
class SourceKamelet < Formula
4-
v = "v1.10.0"
4+
v = "v1.11.0"
55
plugin_name = "source-kamelet"
66
path_name = "kn-plugin-#{plugin_name}"
77
file_name = "kn-#{plugin_name}"
@@ -13,10 +13,10 @@ class SourceKamelet < Formula
1313

1414
if OS.mac?
1515
url "#{base_url}/#{file_name}-darwin-amd64"
16-
sha256 "435d16e73a1fc4825f767b02f31e155217741ffd614687c1f53eb9bd3ded6b61"
16+
sha256 "3b9e3070d7f20f915bbd1a57c69abdd97e8f41177e2f66cbf7a0d03349ecd558"
1717
else
1818
url "#{base_url}/#{file_name}-linux-amd64"
19-
sha256 "6da394621488a6fb07226699a1ef485260b1bdb47415d5add3b7755a99e42133"
19+
sha256 "6ac36f61d08d20d41bdf6a49244c3c388951e3a02f03d2e5dad75b452efd30eb"
2020
end
2121

2222
def install

0 commit comments

Comments
 (0)