File: Gemfile

package info (click to toggle)
ruby-rubocop-ast 1.49.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,768 kB
  • sloc: ruby: 17,017; yacc: 90; makefile: 9
file content (35 lines) | stat: -rw-r--r-- 987 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true

##### IMPORTANT: All dependencies that require 'rubocop'
##### MUST be in the `else` section below!
##### This is so we can run our specs completely independently from RuboCop

source 'https://rubygems.org'

gemspec

gem 'bump', require: false
gem 'oedipus_lex', '>= 2.6.0', require: false
gem 'racc'
gem 'rake', '~> 13.0'
gem 'rspec', '~> 3.7'
gem 'simplecov', '~> 0.20'

if ENV.fetch('RUBOCOP_VERSION', nil) == 'none'
  # Set this way on CI
  puts 'Running specs independently of RuboCop'
else
  local_ast = File.expand_path('../rubocop', __dir__)
  if File.exist?(local_ast)
    gem 'rubocop', path: local_ast
  elsif ENV.fetch('RUBOCOP_VERSION', nil) == 'master'
    gem 'rubocop', git: 'https://github.com/rubocop/rubocop.git'
  else
    gem 'rubocop', '>= 1.0'
  end
  gem 'rubocop-performance'
  gem 'rubocop-rspec', '~> 3.5.0'
end

local_gemfile = File.expand_path('Gemfile.local', __dir__)
eval_gemfile local_gemfile if File.exist?(local_gemfile)