From 7257477d7f91ec5cf1eda78acd361c988f5db2ac Mon Sep 17 00:00:00 2001 From: Stelios Frantzeskakis Date: Fri, 15 May 2026 01:45:05 +0300 Subject: [PATCH 1/2] [GH-7317] Update gem name --- Gemfile.lock | 4 ++-- README.md | 2 +- lib/rubyzen-lint.rb | 1 + lib/rubyzen.rb | 2 ++ lib/rubyzen/lint.rb | 1 + rubyzen.gemspec => rubyzen-lint.gemspec | 4 ++-- 6 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 lib/rubyzen-lint.rb create mode 100644 lib/rubyzen/lint.rb rename rubyzen.gemspec => rubyzen-lint.gemspec (90%) diff --git a/Gemfile.lock b/Gemfile.lock index a41345a..e9d09be 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - rubyzen (0.1.0) + rubyzen-lint (0.1.0) rspec (~> 3.12) rubocop-ast (~> 1.26) zeitwerk (>= 2.6, < 2.7) @@ -47,7 +47,7 @@ PLATFORMS DEPENDENCIES ostruct (~> 0.6.2) pry (~> 0.14.1) - rubyzen! + rubyzen-lint! yard (~> 0.9) BUNDLED WITH diff --git a/README.md b/README.md index 674b947..22d7254 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ Traditional linters such as [RuboCop](https://github.com/rubocop/rubocop) requir Add Rubyzen to your Gemfile: ```ruby -gem 'rubyzen', group: :test +gem 'rubyzen-lint', group: :test ``` Then run `bundle install`. diff --git a/lib/rubyzen-lint.rb b/lib/rubyzen-lint.rb new file mode 100644 index 0000000..e4e2b54 --- /dev/null +++ b/lib/rubyzen-lint.rb @@ -0,0 +1 @@ +require_relative 'rubyzen' diff --git a/lib/rubyzen.rb b/lib/rubyzen.rb index 5568980..864893a 100644 --- a/lib/rubyzen.rb +++ b/lib/rubyzen.rb @@ -5,6 +5,8 @@ loader = Zeitwerk::Loader.for_gem loader.ignore("#{__dir__}/rubyzen/matchers") loader.ignore("#{__dir__}/rubyzen/rspec") +loader.ignore("#{__dir__}/rubyzen/lint.rb") +loader.ignore("#{__dir__}/rubyzen-lint.rb") loader.setup require_relative 'rubyzen/matchers/matcher_helpers' diff --git a/lib/rubyzen/lint.rb b/lib/rubyzen/lint.rb new file mode 100644 index 0000000..59a2412 --- /dev/null +++ b/lib/rubyzen/lint.rb @@ -0,0 +1 @@ +require_relative '../rubyzen' diff --git a/rubyzen.gemspec b/rubyzen-lint.gemspec similarity index 90% rename from rubyzen.gemspec rename to rubyzen-lint.gemspec index 569a62f..72a68e2 100644 --- a/rubyzen.gemspec +++ b/rubyzen-lint.gemspec @@ -1,7 +1,7 @@ require_relative 'lib/rubyzen/version' Gem::Specification.new do |spec| - spec.name = 'rubyzen' + spec.name = 'rubyzen-lint' spec.version = Rubyzen::VERSION spec.authors = ['Perry Street Software'] spec.summary = 'Architectural linter for Ruby — write lint rules as RSpec tests' @@ -14,7 +14,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 3.1' - spec.files = Dir.glob(%w[lib/**/*.rb rubyzen.gemspec LICENSE README.md]) + spec.files = Dir.glob(%w[lib/**/*.rb rubyzen-lint.gemspec LICENSE README.md]) spec.require_paths = ['lib'] spec.add_dependency 'rubocop-ast', '~> 1.26' From f469d66f0cd4a98db9bb8c29597f8fb9042de383 Mon Sep 17 00:00:00 2001 From: Stelios Frantzeskakis Date: Fri, 15 May 2026 01:59:21 +0300 Subject: [PATCH 2/2] Fix Zeitwerk error --- .gitignore | 6 ++--- Gemfile.lock | 54 -------------------------------------------- rubyzen-lint.gemspec | 2 +- 3 files changed, 4 insertions(+), 58 deletions(-) delete mode 100644 Gemfile.lock diff --git a/.gitignore b/.gitignore index e3200e0..6b8f88f 100644 --- a/.gitignore +++ b/.gitignore @@ -43,9 +43,9 @@ build-iPhoneSimulator/ /vendor/bundle /lib/bundler/man/ -# for a library or gem, you might want to ignore these files since the code is -# intended to run in multiple environments; otherwise, check them in: -# Gemfile.lock +# for a library or gem, ignore Gemfile.lock since the code is +# intended to run in multiple environments +Gemfile.lock # .ruby-version # .ruby-gemset diff --git a/Gemfile.lock b/Gemfile.lock deleted file mode 100644 index e9d09be..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,54 +0,0 @@ -PATH - remote: . - specs: - rubyzen-lint (0.1.0) - rspec (~> 3.12) - rubocop-ast (~> 1.26) - zeitwerk (>= 2.6, < 2.7) - -GEM - remote: https://rubygems.org/ - specs: - ast (2.4.3) - coderay (1.1.3) - diff-lcs (1.6.2) - method_source (1.1.0) - ostruct (0.6.3) - parser (3.3.11.1) - ast (~> 2.4.1) - racc - prism (1.9.0) - pry (0.14.2) - coderay (~> 1.1) - method_source (~> 1.0) - racc (1.8.1) - rspec (3.13.2) - rspec-core (~> 3.13.0) - rspec-expectations (~> 3.13.0) - rspec-mocks (~> 3.13.0) - rspec-core (3.13.6) - rspec-support (~> 3.13.0) - rspec-expectations (3.13.5) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.13.0) - rspec-mocks (3.13.8) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.13.0) - rspec-support (3.13.7) - rubocop-ast (1.49.1) - parser (>= 3.3.7.2) - prism (~> 1.7) - yard (0.9.43) - zeitwerk (2.6.18) - -PLATFORMS - ruby - -DEPENDENCIES - ostruct (~> 0.6.2) - pry (~> 0.14.1) - rubyzen-lint! - yard (~> 0.9) - -BUNDLED WITH - 2.5.22 diff --git a/rubyzen-lint.gemspec b/rubyzen-lint.gemspec index 72a68e2..3f95f78 100644 --- a/rubyzen-lint.gemspec +++ b/rubyzen-lint.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_dependency 'rubocop-ast', '~> 1.26' - spec.add_dependency 'zeitwerk', '>= 2.6', '< 2.7' + spec.add_dependency 'zeitwerk', '~> 2.6' spec.add_dependency 'rspec', '~> 3.12' spec.metadata = {