diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9489c71..2182364 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,7 +16,7 @@ jobs: ruby: - '3.4' - '3.3' - - '3.2' + - '3.2' # EOL: 2026-03-31 (expected) steps: - uses: actions/checkout@v4 diff --git a/README.md b/README.md index a9c3cef..77838f8 100644 --- a/README.md +++ b/README.md @@ -4,14 +4,16 @@ Chatwerk provides AI tool integration for the [QueryPackwerk](https://github.com ## Installation -Install the gem, either add in to your packwerk'd application's Gemfile: +Install the gem. + +Either add it to your packwerk'd application's Gemfile: ```ruby $ bundle add chatwerk $ bundle install ``` -or install it on its own: +Or, install it on its own: ```bash $ gem install chatwerk diff --git a/lib/chatwerk/cli.rb b/lib/chatwerk/cli.rb index 0b5bc48..98c89cd 100644 --- a/lib/chatwerk/cli.rb +++ b/lib/chatwerk/cli.rb @@ -1,4 +1,3 @@ -# typed: false # frozen_string_literal: true require 'thor' diff --git a/lib/chatwerk/helpers.rb b/lib/chatwerk/helpers.rb index 6a910bb..face5bb 100644 --- a/lib/chatwerk/helpers.rb +++ b/lib/chatwerk/helpers.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Chatwerk module Helpers def chdir(&) diff --git a/lib/chatwerk/mcp.rb b/lib/chatwerk/mcp.rb index 4535ec8..6c29972 100644 --- a/lib/chatwerk/mcp.rb +++ b/lib/chatwerk/mcp.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'mcp' module Chatwerk diff --git a/lib/chatwerk/tools/print_env_tool.rb b/lib/chatwerk/tools/print_env_tool.rb index 9dbff03..360ad92 100644 --- a/lib/chatwerk/tools/print_env_tool.rb +++ b/lib/chatwerk/tools/print_env_tool.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'mcp' require_relative '../helpers' diff --git a/lib/chatwerk/version.rb b/lib/chatwerk/version.rb index 509f910..d28d118 100644 --- a/lib/chatwerk/version.rb +++ b/lib/chatwerk/version.rb @@ -1,4 +1,3 @@ -# typed: false # frozen_string_literal: true module Chatwerk diff --git a/lib/chatwerk/views.rb b/lib/chatwerk/views.rb index c7ba7b8..d162987 100644 --- a/lib/chatwerk/views.rb +++ b/lib/chatwerk/views.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module Chatwerk module Views autoload :NoPackagesView, 'chatwerk/views/no_packages_view' diff --git a/spec/chatwerk/api_spec.rb b/spec/chatwerk/api_spec.rb index 21f0644..9eb79ba 100644 --- a/spec/chatwerk/api_spec.rb +++ b/spec/chatwerk/api_spec.rb @@ -1,8 +1,5 @@ -# typed: false # frozen_string_literal: true -require 'spec_helper' - RSpec.describe Chatwerk::Api do let(:pwd) { '/test/workspace' } let(:package_path) { 'packs/test_package' } diff --git a/spec/chatwerk/error_spec.rb b/spec/chatwerk/error_spec.rb index e0bea16..30897f2 100644 --- a/spec/chatwerk/error_spec.rb +++ b/spec/chatwerk/error_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Error do context 'with a Chatwerk::Error' do diff --git a/spec/chatwerk/helpers_spec.rb b/spec/chatwerk/helpers_spec.rb index 4f6ad87..3e32196 100644 --- a/spec/chatwerk/helpers_spec.rb +++ b/spec/chatwerk/helpers_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Helpers do describe '.chdir' do diff --git a/spec/chatwerk/mcp_tools_spec.rb b/spec/chatwerk/mcp_tools_spec.rb index b825c72..c671b67 100644 --- a/spec/chatwerk/mcp_tools_spec.rb +++ b/spec/chatwerk/mcp_tools_spec.rb @@ -1,9 +1,5 @@ -# typed: false # frozen_string_literal: true -require 'spec_helper' -require 'chatwerk/mcp' - RSpec.describe 'MCP Tools' do let(:server_context) { double('server_context') } diff --git a/spec/chatwerk/views/no_packages_view_spec.rb b/spec/chatwerk/views/no_packages_view_spec.rb index 5bfb8c0..a1d81c5 100644 --- a/spec/chatwerk/views/no_packages_view_spec.rb +++ b/spec/chatwerk/views/no_packages_view_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Views::NoPackagesView do context 'when packwerk.yml exists' do diff --git a/spec/chatwerk/views/no_violations_view_spec.rb b/spec/chatwerk/views/no_violations_view_spec.rb index e96fde8..0937fe6 100644 --- a/spec/chatwerk/views/no_violations_view_spec.rb +++ b/spec/chatwerk/views/no_violations_view_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Views::NoViolationsView do it 'renders a message indicating no violations found' do diff --git a/spec/chatwerk/views/package_view_spec.rb b/spec/chatwerk/views/package_view_spec.rb index 32d298b..8a8f1a0 100644 --- a/spec/chatwerk/views/package_view_spec.rb +++ b/spec/chatwerk/views/package_view_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Views::PackageView do context 'with a valid package' do diff --git a/spec/chatwerk/views/packages_view_spec.rb b/spec/chatwerk/views/packages_view_spec.rb index 428288d..dbe37c6 100644 --- a/spec/chatwerk/views/packages_view_spec.rb +++ b/spec/chatwerk/views/packages_view_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Views::PackagesView do context 'when packages are found' do diff --git a/spec/chatwerk/views/violations_details_view_spec.rb b/spec/chatwerk/views/violations_details_view_spec.rb index 597b9df..9d423cd 100644 --- a/spec/chatwerk/views/violations_details_view_spec.rb +++ b/spec/chatwerk/views/violations_details_view_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Views::ViolationsDetailsView do context 'with violations having source locations' do diff --git a/spec/chatwerk/views/violations_list_view_spec.rb b/spec/chatwerk/views/violations_list_view_spec.rb index 847d4d5..726025c 100644 --- a/spec/chatwerk/views/violations_list_view_spec.rb +++ b/spec/chatwerk/views/violations_list_view_spec.rb @@ -1,4 +1,4 @@ -require 'spec_helper' +# frozen_string_literal: true RSpec.describe Chatwerk::Views::ViolationsListView do context 'with multiple violations' do diff --git a/spec/chatwerk_spec.rb b/spec/chatwerk_spec.rb index 3ca5617..2bf5ed2 100644 --- a/spec/chatwerk_spec.rb +++ b/spec/chatwerk_spec.rb @@ -1,4 +1,3 @@ -# typed: false # frozen_string_literal: true RSpec.describe Chatwerk do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 95fbb37..b5a2311 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,4 +1,3 @@ -# typed: false # frozen_string_literal: true require 'chatwerk'