lib/support/gateway_support.rb in activemerchant-1.79.2 vs lib/support/gateway_support.rb in activemerchant-1.80.0
- old
+ new
@@ -15,11 +15,11 @@
filename = File.basename(f, '.rb')
gateway_name = filename + '_gateway'
begin
gateway_class = ('ActiveMerchant::Billing::' + gateway_name.camelize).constantize
rescue NameError
- puts "Could not load gateway " + gateway_name.camelize + " from " + f + "."
+ puts 'Could not load gateway ' + gateway_name.camelize + ' from ' + f + '.'
end
end
@gateways = Gateway.implementations.sort_by(&:name)
@gateways.delete(ActiveMerchant::Billing::BogusGateway)
end
@@ -29,10 +29,10 @@
end
def features
width = 15
- print "Name".center(width + 20)
+ print 'Name'.center(width + 20)
ACTIONS.each{|f| print "#{f.to_s.capitalize.center(width)}" }
puts
each_gateway do |g|
print "#{g.display_name.ljust(width + 20)}"