mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
This commit adds the rubocop gem, a rubocop rake task and an initial rubocop configuration file in prepartion for using rubocop in CI. This commit also adds a rubocop todo file that exempts existing files from violations.
38 lines
983 B
Ruby
38 lines
983 B
Ruby
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
|
|
|
|
if RUBY_VERSION =~ /^1\.9\./
|
|
gem 'json', '~> 1.8'
|
|
else
|
|
gem 'json', '>= 1.8'
|
|
end
|
|
|
|
gem 'puma', '>= 3.6.0'
|
|
gem 'rack', '>= 1.6'
|
|
gem 'rake', '>= 10.4'
|
|
gem 'rbvmomi', '>= 1.8'
|
|
gem 'redis', '>= 3.2'
|
|
gem 'sinatra', '>= 1.4'
|
|
gem 'net-ldap', '<= 0.12.1' # keep compatibility w/ jruby & mri-1.9.3
|
|
gem 'statsd-ruby', '>= 1.3.0', :require => 'statsd'
|
|
|
|
# Test deps
|
|
group :test do
|
|
gem 'mock_redis', '>= 0.17.0'
|
|
gem 'rack-test', '>= 0.6'
|
|
gem 'rspec', '>= 3.2'
|
|
gem 'simplecov', '>= 0.11.2'
|
|
gem 'yarjuf', '>= 2.0'
|
|
# Rubocop would be ok jruby but for now we only use it on
|
|
# MRI or Windows platforms
|
|
gem "rubocop", :platforms => [:ruby, :x64_mingw]
|
|
end
|
|
|
|
# Evaluate Gemfile.local if it exists
|
|
if File.exists? "#{__FILE__}.local"
|
|
instance_eval(File.read("#{__FILE__}.local"))
|
|
end
|
|
|
|
# Evaluate ~/.gemfile if it exists
|
|
if File.exists?(File.join(Dir.home, '.gemfile'))
|
|
instance_eval(File.read(File.join(Dir.home, '.gemfile')))
|
|
end
|