Skip to content

Commit

Permalink
Merge pull request #6766 from pocke/use-psych-3.1
Browse files Browse the repository at this point in the history
Drop Ruby 2.2.0 and 2.2.1 to use Psych 3.1
  • Loading branch information
koic committed Feb 15, 2019
2 parents d64cdb5 + b311521 commit 04765f9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,6 +7,10 @@
* [#6763](https://github.com/rubocop-hq/rubocop/pull/6763): Fix false positives in range literals for `Style/MethodCallWithArgsParentheses` `omit_parentheses`. ([@gsamokovarov]][])
* [#6748](https://github.com/rubocop-hq/rubocop/issues/6748): Fix `Style/RaiseArgs` auto-correction breaking in contexts that require parentheses. ([@drenmi][])

### Changes

* [#6766](https://github.com/rubocop-hq/rubocop/pull/6766): Drop support for Ruby 2.2.0 and 2.2.1. ([@pocke][])

## 0.64.0 (2019-02-10)

### New features
Expand Down
5 changes: 1 addition & 4 deletions lib/rubocop/config_loader.rb
Expand Up @@ -183,17 +183,14 @@ def yaml_safe_load(yaml_code, filename)
if defined?(SafeYAML) && SafeYAML.respond_to?(:load)
SafeYAML.load(yaml_code, filename,
whitelisted_tags: %w[!ruby/regexp])
# Ruby 2.6+
elsif Gem::Version.new(Psych::VERSION) >= Gem::Version.new('3.1.0.pre1')
else
YAML.safe_load(
yaml_code,
permitted_classes: [Regexp, Symbol],
permitted_symbols: [],
aliases: false,
filename: filename
)
else
YAML.safe_load(yaml_code, [Regexp, Symbol], [], false, filename)
end
end
end
Expand Down
3 changes: 2 additions & 1 deletion rubocop.gemspec
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |s|
s.name = 'rubocop'
s.version = RuboCop::Version::STRING
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>= 2.2.0'
s.required_ruby_version = '>= 2.2.2'
s.authors = ['Bozhidar Batsov', 'Jonas Arvidsson', 'Yuji Nakayama']
s.description = <<-DESCRIPTION
Automatic Ruby code style checking tool.
Expand Down Expand Up @@ -38,6 +38,7 @@ Gem::Specification.new do |s|
s.add_runtime_dependency('parallel', '~> 1.10')
s.add_runtime_dependency('parser', '>= 2.5', '!= 2.5.1.1')
s.add_runtime_dependency('powerpack', '~> 0.1')
s.add_runtime_dependency('psych', '>= 3.1.0')
s.add_runtime_dependency('rainbow', '>= 2.2.2', '< 4.0')
s.add_runtime_dependency('ruby-progressbar', '~> 1.7')
s.add_runtime_dependency('unicode-display_width', '~> 1.4.0')
Expand Down

0 comments on commit 04765f9

Please sign in to comment.