Skip to content

Commit

Permalink
Remove support for ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mbj committed Dec 7, 2023
1 parent 13da8f9 commit 278848d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 16 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ AllCops:
- '**/*.rake'
- 'Gemfile'
- 'Gemfile.triage'
TargetRubyVersion: 3.0
Exclude:
- tmp/**/*
- vendor/**/*
Expand Down
4 changes: 4 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# v0.6.11 2023-10-31

* Remove support for ruby 2.7

# v0.6.10 2023-10-31

[#351](https://github.com/mbj/unparser/pull/351)
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
unparser (0.6.10)
unparser (0.6.11)
diff-lcs (~> 1.3)
parser (>= 3.2.2.4)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The following constraints apply:

* No support for macruby extensions
* Only support for the [modern AST](https://github.com/whitequark/parser/#usage) format
* Only support for Ruby >= 2.7
* Only support for Ruby >= 3.0

Notable Users:

Expand Down
1 change: 0 additions & 1 deletion config/mutant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ matcher:
- 'Unparser::Emitter::HashPattern#write_symbol_body'
- 'Unparser::Emitter::LocalVariableRoot*'
- 'Unparser::Emitter::LocalVariableRoot.included'
- 'Unparser::Emitter::MatchPattern#dispatch' # 2.7+ specific
- 'Unparser::Emitter::MatchPatternP#dispatch' # 3.0+ specific
- 'Unparser::Emitter::MatchRest#dispatch' # 3.0+ specific
- 'Unparser::Emitter::Module#local_variable_scope'
Expand Down
4 changes: 2 additions & 2 deletions lib/unparser/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ def effective_targets

def targets(file_name)
if File.directory?(file_name)
Dir.glob(File.join(file_name, '**/*.rb')).sort
Dir.glob(File.join(file_name, '**/*.rb'))
elsif File.file?(file_name)
[file_name]
else
Dir.glob(file_name).sort
Dir.glob(file_name)
end.map { |file| Target::Path.new(Pathname.new(file)) }
end
end # CLI
Expand Down
9 changes: 0 additions & 9 deletions spec/unit/unparser_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -383,15 +383,6 @@ def noop
)
end

if RUBY_VERSION < '2.7.'
excludes.concat(
%w[
test/corpus/literal/pattern.rb
test/corpus/literal/since/27.rb
]
)
end

excludes.flat_map { |file| ['--ignore', file] }
end

Expand Down
4 changes: 2 additions & 2 deletions unparser.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |gem|
gem.name = 'unparser'
gem.version = '0.6.10'
gem.version = '0.6.11'

gem.authors = ['Markus Schirp']
gem.email = 'mbj@schirp-dso.com'
Expand All @@ -23,7 +23,7 @@ Gem::Specification.new do |gem|

gem.metadata['rubygems_mfa_required'] = 'true'

gem.required_ruby_version = '>= 2.7'
gem.required_ruby_version = '>= 3.0'

gem.add_dependency('diff-lcs', '~> 1.3')
gem.add_dependency('parser', '>= 3.2.2.4')
Expand Down

0 comments on commit 278848d

Please sign in to comment.