diff --git a/.rubocop.yml b/.rubocop.yml index 0ab291f02..5b679d463 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,7 +10,7 @@ AllCops: - 'lib/twilio-ruby/util/configuration.rb' - 'vendor/**/*' -Metrics/LineLength: +Layout/LineLength: Max: 120 Exclude: - 'spec/**/*' diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 123a46e23..bc289b3a8 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config` -# on 2019-12-18 11:23:55 -0600 using RuboCop version 0.77.0. +# on 2020-01-06 13:56:04 -0300 using RuboCop version 0.79.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -16,7 +16,7 @@ Gemspec/OrderedDependencies: # Offense count: 1 # Configuration parameters: Include. -# Include: **/*.gemspec, +# Include: **/*.gemspec Gemspec/RequiredRubyVersion: Exclude: - 'twilio-ruby.gemspec' @@ -37,7 +37,8 @@ Layout/ExtraSpacing: # Offense count: 2 # Cop supports --auto-correct. -# Configuration parameters: AllowForAlignment. +# Configuration parameters: AllowForAlignment, EnforcedStyleForExponentOperator. +# SupportedStylesForExponentOperator: space, no_space Layout/SpaceAroundOperators: Exclude: - 'spec/jwt/client_capability_spec.rb' diff --git a/lib/twilio-ruby.rb b/lib/twilio-ruby.rb index 106404d02..9440900bf 100644 --- a/lib/twilio-ruby.rb +++ b/lib/twilio-ruby.rb @@ -27,19 +27,19 @@ require 'twilio-ruby/twiml/messaging_response' require 'twilio-ruby/twiml/voice_response' -Dir[File.dirname(__FILE__) + '/twilio-ruby/http/**/*.rb'].each do |file| +Dir[File.dirname(__FILE__) + '/twilio-ruby/http/**/*.rb'].sort.each do |file| require file end -Dir[File.dirname(__FILE__) + '/twilio-ruby/framework/**/*.rb'].each do |file| +Dir[File.dirname(__FILE__) + '/twilio-ruby/framework/**/*.rb'].sort.each do |file| require file end -Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/*.rb'].each do |file| +Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/*.rb'].sort.each do |file| require file end -Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/**/*.rb'].each do |file| +Dir[File.dirname(__FILE__) + '/twilio-ruby/rest/**/*.rb'].sort.each do |file| require file end -Dir[File.dirname(__FILE__) + '/twilio-ruby/compatibility/**/*.rb'].each do |file| +Dir[File.dirname(__FILE__) + '/twilio-ruby/compatibility/**/*.rb'].sort.each do |file| require file end diff --git a/twilio-ruby.gemspec b/twilio-ruby.gemspec index f4500e4e1..55204fa11 100644 --- a/twilio-ruby.gemspec +++ b/twilio-ruby.gemspec @@ -31,6 +31,6 @@ Gem::Specification.new do |spec| spec.add_dependency('rubysl') if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx' spec.add_development_dependency 'bundler', '>= 1.5', '< 3.0' - spec.add_development_dependency 'rubocop', '~> 0.77.0' + spec.add_development_dependency 'rubocop', '~> 0.79.0' spec.add_development_dependency 'yard', '~> 0.9.9' end