Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
54 changes: 0 additions & 54 deletions Gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
1 change: 1 addition & 0 deletions lib/rubyzen-lint.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require_relative 'rubyzen'
2 changes: 2 additions & 0 deletions lib/rubyzen.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
1 change: 1 addition & 0 deletions lib/rubyzen/lint.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require_relative '../rubyzen'
6 changes: 3 additions & 3 deletions rubyzen.gemspec → rubyzen-lint.gemspec
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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 = {
Expand Down