Issy Long a328acc9a1
rubocops/patches: Fix quoting of the patch url when autocorrecting
- The autocorrections here before were leading to changes like:

```
➜ brew style --fix brewsci/science/beetl
Formula/beetl.rb:15:11: C: [Corrected] GitHub patches should use the full_index parameter: https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1
      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

➜ git diff
diff --git a/Formula/beetl.rb b/Formula/beetl.rb
index bbd049aa..7ec6d7bc 100644
--- a/Formula/beetl.rb
+++ b/Formula/beetl.rb
@@ -12,7 +12,7 @@ class Beetl < Formula
     # Fixes "error: 'accumulate' is not a member of 'std'"
     # Upstream commit "Little fix for compilation on mac"
     patch do
-      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
+      url https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1
       sha256 "63b67f3282893d1f74c66aa98f3bf2684aaba2fa9ce77858427b519f1f02807d"
     end
   end

```

- This fixes the URLs generated to have quotes:

```
➜ git diff
diff --git a/Formula/beetl.rb b/Formula/beetl.rb
index bbd049aa..7ec6d7bc 100644
--- a/Formula/beetl.rb
+++ b/Formula/beetl.rb
@@ -12,7 +12,7 @@ class Beetl < Formula
     # Fixes "error: 'accumulate' is not a member of 'std'"
     # Upstream commit "Little fix for compilation on mac"
     patch do
-      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch"
+      url "https://github.com/BEETL/BEETL/commit/ba47b6f9.patch?full_index=1"
       sha256 "63b67f3282893d1f74c66aa98f3bf2684aaba2fa9ce77858427b519f1f02807d"
     end
   end
```
2021-04-16 19:41:02 +01:00
..
2021-04-09 15:44:37 +01:00
2021-04-09 14:12:40 +01:00
2021-03-26 00:14:16 +00:00
2021-03-17 20:45:44 +00:00
2021-01-26 16:19:47 -05:00
2021-04-16 00:20:10 +00:00
2021-04-16 14:05:06 +01:00
2021-04-16 14:05:06 +01:00
2021-04-09 06:03:42 +00:00
2021-01-22 11:26:46 -08:00
2021-04-03 02:09:22 +02:00
2021-01-26 10:16:32 +00:00
2021-04-13 22:23:32 +09:00
2021-04-03 02:09:22 +02:00
2021-03-11 14:49:56 +00:00
2021-04-10 01:30:56 +05:30
2021-01-29 19:50:24 +00:00
2021-04-14 17:43:26 +01:00
2021-04-07 04:58:31 +02:00
2021-01-26 16:19:47 -05:00
2021-04-02 13:55:29 +01:00
2021-02-16 09:25:34 +00:00
2021-01-26 12:02:30 -05:00
2021-04-01 20:29:27 -04:00
2021-04-05 22:39:41 -07:00
2021-03-11 17:32:35 +08:00
2021-04-03 02:09:22 +02:00
2021-03-18 16:41:57 +00:00
2021-01-26 15:36:44 -05:00
2021-02-15 22:38:27 +05:30
2021-04-16 08:58:49 +02:00
2021-03-22 08:54:38 -04:00
2021-03-25 16:50:42 +00:00
2021-01-26 16:19:47 -05:00
2021-03-18 16:41:57 +00:00
2021-02-14 11:58:05 -05:00
2021-02-14 11:58:05 -05:00

Homebrew Ruby API

This is the API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!