@@ -17,9 +17,9 @@ if RUBY_VERSION =~ /^1\.?9/
1717 gem 'ffi' , '<= 1.9.14'
1818end
1919
20- gem 'rspec' , *location_for ( ENV [ 'RSPEC_GEM_VERSION' ] || '~> 3.0' )
21- gem 'puppet' , *location_for ( ENV [ 'PUPPET_GEM_VERSION' ] || '~> 7.0' )
22- gem 'facter' , *location_for ( ENV [ 'FACTER_GEM_VERSION' ] || '~> 4.0' )
20+ gem 'rspec' , *location_for ( ! ENV [ 'RSPEC_GEM_VERSION' ] &. empty? ? ENV [ 'RSPEC_GEM_VERSION' ] : '~> 3.0' )
21+ gem 'puppet' , *location_for ( ! ENV [ 'PUPPET_GEM_VERSION' ] &. empty? ? ENV [ 'PUPPET_GEM_VERSION' ] : '~> 7.0' )
22+ gem 'facter' , *location_for ( ! ENV [ 'FACTER_GEM_VERSION' ] &. empty? ? ENV [ 'FACTER_GEM_VERSION' ] : '~> 4.0' )
2323gem 'pry' , :group => :development
2424
2525if RUBY_VERSION =~ /^1\. ?/
@@ -38,8 +38,9 @@ if RUBY_VERSION =~ /^1\.?9/
3838elsif RUBY_VERSION =~ /^1\. ?8/
3939 gem 'json_pure' , '< 2.0.0'
4040else
41- gem 'rubocop'
42- gem 'rubocop-rspec' , '~> 1.6' if ( RUBY_VERSION >= '2.3.0' || RUBY_VERSION >= '23' )
41+ gem "rubocop" , '= 1.6.1' , require : false
42+ gem "rubocop-performance" , '= 1.9.1' , require : false
43+ gem "rubocop-rspec" , '= 2.0.1' , require : false
4344 gem 'sync' if ( RUBY_VERSION >= '2.7.0' )
4445end
4546
0 commit comments