google-api-ruby-client icon indicating copy to clipboard operation
google-api-ruby-client copied to clipboard

Lots of warnings

Open tscheingeld32 opened this issue 9 years ago • 4 comments

A simple script with warnings enabled gives lots of warnings. The script:

#!/usr/bin/ruby -w
require 'google/apis/people_v1'

The warnings:

/var/lib/gems/2.3.0/gems/google-api-client-0.15.0/lib/google/apis/core/batch.rb:169: warning: assigned but unused variable - length
/var/lib/gems/2.3.0/gems/os-0.9.6/lib/os.rb:154: warning: mismatched indentations at 'end' with 'for' at 151
/var/lib/gems/2.3.0/gems/os-0.9.6/lib/os.rb:158: warning: assigned but unused variable - kb
/var/lib/gems/2.3.0/gems/os-0.9.6/lib/os.rb:198: warning: mismatched indentations at 'end' with 'def' at 190
/var/lib/gems/2.3.0/gems/os-0.9.6/lib/os.rb:240: warning: mismatched indentations at 'end' with 'case' at 218
/var/lib/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_config.rb:51: warning: method redefined; discarding old initialize
/var/lib/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_config.rb:58: warning: method redefined; discarding old add_cert
/var/lib/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_config.rb:58: warning: method redefined; discarding old add_file
/var/lib/gems/2.3.0/gems/httpclient-2.8.3/lib/httpclient/ssl_config.rb:58: warning: method redefined; discarding old add_path
/var/lib/gems/2.3.0/gems/google-api-client-0.15.0/lib/google/apis/core/base_service.rb:215: warning: method redefined; discarding old client

tscheingeld32 avatar Nov 01 '17 07:11 tscheingeld32

@tscheingeld32 I could not replicate it in my MacOSX 10.12.6 with ruby v2.4.2. What is your OS and Ruby version?

bantini avatar Nov 02 '17 22:11 bantini

Operating system: Ubuntu Linux 16.04.1 Kernel and CPU: Linux 4.4.0-98-generic on x86_64 Processor information: Intel(R) Xeon(R) CPU E5-2630L v2 @ 2.40GHz, 2 cores ruby: ruby 2.3.1p112 (2016-04-26) [x86_64-linux-gnu]

tscheingeld32 avatar Nov 18 '17 21:11 tscheingeld32

@bantini Just a thought, when you tested, did you make sure to turn on warnings?

tscheingeld32 avatar Nov 19 '17 20:11 tscheingeld32

Sorry for the slow response. We’re looking at old questions like this one. Are you still having trouble with the warnings?

TheRoyalTnetennba avatar Jun 06 '18 00:06 TheRoyalTnetennba