From 89c17c028f46701f3aa71f76505e0a902a2a8760 Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 22 Aug 2026 18:18:01 +0800 Subject: [PATCH 1/2] fm 0.1.0 Co-Authored-By: Claude Fable 5 --- Formula/fm.rb | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Formula/fm.rb diff --git a/Formula/fm.rb b/Formula/fm.rb new file mode 100644 index 0000000..2d5f4cd --- /dev/null +++ b/Formula/fm.rb @@ -0,0 +1,37 @@ +class Fm < Formula + desc "Command-line interface for FeedMob services" + homepage "https://github.com/feed-mob/feedmob-cli" + license "MIT" + + on_macos do + on_arm do + url "https://github.com/feed-mob/feedmob-cli/releases/download/v0.1.0/fm-darwin-arm64.tar.gz" + sha256 "90f24826ba502ff00ae3d294c73896140deb5f27cc609826a95ded89e66ba952" + end + + on_intel do + url "https://github.com/feed-mob/feedmob-cli/releases/download/v0.1.0/fm-darwin-x86_64.tar.gz" + sha256 "09e6008c518ddaba515b8108697125b82a562ab8efa59b48a61de5d27e2ac201" + end + end + + on_linux do + on_arm do + url "https://github.com/feed-mob/feedmob-cli/releases/download/v0.1.0/fm-linux-arm64.tar.gz" + sha256 "48bddf4fd850c059d43199e9f8d41fbe3fbd91d4782c7eddeff7cafb9a108535" + end + + on_intel do + url "https://github.com/feed-mob/feedmob-cli/releases/download/v0.1.0/fm-linux-x86_64.tar.gz" + sha256 "7838ad786c1d4841199dc395c008a0e0de78768038fc65e29169a82d581d0853" + end + end + + def install + bin.install "fm" + end + + test do + assert_match version.to_s, shell_output("#{bin}/fm --json version") + end +end From 16d7c1d500e4fdac375dbf62957140a9f41e5f9a Mon Sep 17 00:00:00 2001 From: steven Date: Sat, 22 Aug 2026 18:47:45 +0800 Subject: [PATCH 2/2] Exclude the Formula directory from RuboCop Homebrew formulas follow brew style, not project RuboCop rules. Co-Authored-By: Claude Fable 5 --- .rubocop.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index 3c0c78c..6957991 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,7 +1,14 @@ +inherit_mode: + merge: + - Exclude + AllCops: TargetRubyVersion: 3.2 NewCops: enable SuggestExtensions: false + Exclude: + # Homebrew formulas follow brew style, not project RuboCop + - 'Formula/**/*' Metrics/AbcSize: Enabled: false