lib/twilio-ruby/rest.rb in twilio-ruby-6.0.0 vs lib/twilio-ruby/rest.rb in twilio-ruby-6.0.1

- old
+ new

@@ -3,10 +3,10 @@ Dir[File.join(__dir__, 'framework/rest/*.rb')].sort.each do |file| require file end Dir[File.join(__dir__, 'rest/*.rb')].sort.each do |file| - require file.gsub('.rb', '_base.rb') unless file.end_with?('client.rb') || file.end_with?('_base.rb') + require file.gsub(/\.rb$/, '_base.rb') unless file.end_with?('client.rb') || file.end_with?('_base.rb') require file end Dir[File.join(__dir__, 'rest/**/*.rb')].sort.each do |file| require file