CyberSource / cybersource-rest-client-ruby

Ruby client library for the CyberSource REST API
Other
6 stars 36 forks source link

Ruby warnings generated by cybersource source code #74

Closed DawidJanczak closed 2 years ago

DawidJanczak commented 2 years ago

Hello,

We're getting a bunch of warnings looking like this:

01:17 deploy:migrating
      01 bundle exec rake db:migrate
      01 /var/www/<snip>/shared/bundle/ruby/2.6.0/gems/cybersource_rest_client-0.0.41/lib/cybersource_rest_client/api/secure_file_share_api.rb:3: warning: encountered \r in middle of line, treated as a mere space

I only pasted one, but this happens on every single line of that file filling our screens with warnings during deploy. The file indeed has \rs with it, but it seems like they are followed by \n so I'm not sure what's going on here. In any case could we remove carriage returns from that file?

rainkinz commented 2 years ago

Same issue here. It looks like you're using Windows carriage returns in the code.

rsachan8 commented 2 years ago

Hi @DawidJanczak We will be fixing this in upcoming release.

rainkinz commented 2 years ago

I looks like you just release 0.0.43 and it's still happening...

/usr/local/bundle/gems/cybersource_rest_client-0.0.43/lib/cybersource_rest_client/api/secure_file_share_api.rb:136: warning: encountered \r in middle of line, treated as a mere space
rsachan8 commented 2 years ago

Hi Guys, Latest release fixes this issue.