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 a41345a..0000000 --- a/Gemfile.lock +++ /dev/null @@ -1,54 +0,0 @@ -PATH - remote: . - specs: - rubyzen (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! - yard (~> 0.9) - -BUNDLED WITH - 2.5.22 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 86% rename from rubyzen.gemspec rename to rubyzen-lint.gemspec index 569a62f..3f95f78 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,11 +14,11 @@ 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' - spec.add_dependency 'zeitwerk', '>= 2.6', '< 2.7' + spec.add_dependency 'zeitwerk', '~> 2.6' spec.add_dependency 'rspec', '~> 3.12' spec.metadata = {