diff options
| author | Mike McQuaid | 2018-01-07 14:29:19 +0000 | 
|---|---|---|
| committer | Mike McQuaid | 2018-01-07 14:29:19 +0000 | 
| commit | 1bd7d7df04321ebf39cc39d06486768df7245650 (patch) | |
| tree | d3fb9a08a938c6abf348311f0df2b07250ad8bce | |
| parent | 4e29152603ed192e90b83b66f0ad92a676549c43 (diff) | |
| download | brew-1bd7d7df04321ebf39cc39d06486768df7245650.tar.bz2 | |
Use parser 2.4.0.0
This matches the version that supports Ruby 2.3.3 syntax (which is the
version we use).
| -rw-r--r-- | Library/Homebrew/cmd/style.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/constants.rb | 1 | ||||
| -rw-r--r-- | Library/Homebrew/test/Gemfile | 1 | ||||
| -rw-r--r-- | Library/Homebrew/test/Gemfile.lock | 3 | 
4 files changed, 5 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/style.rb b/Library/Homebrew/cmd/style.rb index 89484d67d..27047dfd0 100644 --- a/Library/Homebrew/cmd/style.rb +++ b/Library/Homebrew/cmd/style.rb @@ -70,6 +70,7 @@ module Homebrew    def check_style_impl(files, output_type, options = {})      fix = options[:fix] +    Homebrew.install_gem_setup_path! "parser", HOMEBREW_RUBOCOP_PARSER_VERSION, "ruby-parse"      Homebrew.install_gem_setup_path! "rubocop", HOMEBREW_RUBOCOP_VERSION      require "rubocop"      require_relative "../rubocops" diff --git a/Library/Homebrew/constants.rb b/Library/Homebrew/constants.rb index 529c49feb..41274922c 100644 --- a/Library/Homebrew/constants.rb +++ b/Library/Homebrew/constants.rb @@ -2,4 +2,5 @@  # RuboCop version used for `brew style` and `brew cask style`  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 diff --git a/Library/Homebrew/test/Gemfile b/Library/Homebrew/test/Gemfile index b6d1405ff..2dcb670aa 100644 --- a/Library/Homebrew/test/Gemfile +++ b/Library/Homebrew/test/Gemfile @@ -3,6 +3,7 @@ source "https://rubygems.org"  require_relative "../constants"  gem "parallel_tests" +gem "parser", HOMEBREW_RUBOCOP_PARSER_VERSION  gem "rspec"  gem "rspec-its", require: false  gem "rspec-wait", require: false diff --git a/Library/Homebrew/test/Gemfile.lock b/Library/Homebrew/test/Gemfile.lock index 1620d7099..9ddc18e71 100644 --- a/Library/Homebrew/test/Gemfile.lock +++ b/Library/Homebrew/test/Gemfile.lock @@ -58,6 +58,7 @@ PLATFORMS  DEPENDENCIES    codecov    parallel_tests +  parser (= 2.4.0.0)    rspec    rspec-its    rspec-wait @@ -65,4 +66,4 @@ DEPENDENCIES    simplecov  BUNDLED WITH -   1.15.4 +   1.16.0 | 
