Skip to content

Commit

Permalink
Fix class names in versioned formulae.
Browse files Browse the repository at this point in the history
Fixes: https://github.com/dart-lang/homebrew-dart/issues/
Change-Id: Ifa451e054ffe8f7e6b19cdac0facf83707ad7479
Reviewed-on: https://dart-review.googlesource.com/c/homebrew-dart/+/345700
Auto-Submit: Jonas Termansen <[email protected]>
Reviewed-by: William Hesse <[email protected]>
Commit-Queue: Jonas Termansen <[email protected]>
  • Loading branch information
sortie authored and Commit Queue committed Jan 11, 2024
1 parent 0e66b85 commit 2dbf003
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_0 < Formula
class DartAT300 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_1 < Formula
class DartAT301 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_2 < Formula
class DartAT302 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_3 < Formula
class DartAT303 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_4 < Formula
class DartAT304 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_5 < Formula
class DartAT305 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_6 < Formula
class DartAT306 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_0_7 < Formula
class DartAT307 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_1_0 < Formula
class DartAT310 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_1_1 < Formula
class DartAT311 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_1_2 < Formula
class DartAT312 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_1_3 < Formula
class DartAT313 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_1_4 < Formula
class DartAT314 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_1_5 < Formula
class DartAT315 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_2_0 < Formula
class DartAT320 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_2_1 < Formula
class DartAT321 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_2_2 < Formula
class DartAT322 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_2_3 < Formula
class DartAT323 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion Formula/[email protected]
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# typed: false
# frozen_string_literal: true

class DartAT3_2_4 < Formula
class DartAT324 < Formula
desc "SDK"
homepage "https://dart.dev"

Expand Down
2 changes: 1 addition & 1 deletion lib/update_homebrew.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Future<bool> writeVersion(String contents, String version, String repository,
bool dryRun, bool isLatest) async {
final formula = File(p.join(repository, 'Formula/dart@$version.rb'));
contents = contents
.replaceFirst('class Dart', 'class DartAT${version.replaceAll(".", "_")}')
.replaceFirst('class Dart', 'class DartAT${version.replaceAll(".", "")}')
.replaceFirst(
RegExp(r'head do.*dart-beta ships the same binaries"',
dotAll: true, multiLine: true),
Expand Down

0 comments on commit 2dbf003

Please sign in to comment.