Use parser 2.4.0.0

This matches the version that supports Ruby 2.3.3 syntax (which is the
version we use).
This commit is contained in:
Mike McQuaid 2018-01-07 14:29:19 +00:00
parent 4e29152603
commit 1bd7d7df04
4 changed files with 5 additions and 1 deletions

View File

@ -70,6 +70,7 @@ module Homebrew
def check_style_impl(files, output_type, options = {}) def check_style_impl(files, output_type, options = {})
fix = options[:fix] fix = options[:fix]
Homebrew.install_gem_setup_path! "parser", HOMEBREW_RUBOCOP_PARSER_VERSION, "ruby-parse"
Homebrew.install_gem_setup_path! "rubocop", HOMEBREW_RUBOCOP_VERSION Homebrew.install_gem_setup_path! "rubocop", HOMEBREW_RUBOCOP_VERSION
require "rubocop" require "rubocop"
require_relative "../rubocops" require_relative "../rubocops"

View File

@ -2,4 +2,5 @@
# RuboCop version used for `brew style` and `brew cask style` # RuboCop version used for `brew style` and `brew cask style`
HOMEBREW_RUBOCOP_VERSION = "0.51.0" HOMEBREW_RUBOCOP_VERSION = "0.51.0"
HOMEBREW_RUBOCOP_PARSER_VERSION = "2.4.0.0" # for Ruby 2.3.3
HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.15.1" # has to be updated when RuboCop version changes HOMEBREW_RUBOCOP_CASK_VERSION = "~> 0.15.1" # has to be updated when RuboCop version changes

View File

@ -3,6 +3,7 @@ source "https://rubygems.org"
require_relative "../constants" require_relative "../constants"
gem "parallel_tests" gem "parallel_tests"
gem "parser", HOMEBREW_RUBOCOP_PARSER_VERSION
gem "rspec" gem "rspec"
gem "rspec-its", require: false gem "rspec-its", require: false
gem "rspec-wait", require: false gem "rspec-wait", require: false

View File

@ -58,6 +58,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
codecov codecov
parallel_tests parallel_tests
parser (= 2.4.0.0)
rspec rspec
rspec-its rspec-its
rspec-wait rspec-wait
@ -65,4 +66,4 @@ DEPENDENCIES
simplecov simplecov
BUNDLED WITH BUNDLED WITH
1.15.4 1.16.0