steve8x8 / geotoad

Geocaching query tool written in Ruby
https://buymeacoffee.com/steve8x8
Other
28 stars 8 forks source link

fetchURL': undefined method `ciphers=' for #<Net::HTTP #240

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
[Please include the relevant parts of your command line, if applicable.
Don't send your password though!]

Starting with R1127 I get the following error when executing the following 
commandline:

/tmp/geotoad-read-only_SVN1128/geotoad.rb --distanceMax=2 --format=gpx  
--output='/home/xxx/daten_mini/geocaches/GPX/' --password=xxxxxx 
--queryType=coord --user=xxxxxx 'n45.191232 e5.715415'

GeoToad (CURRENT) (i686-linux-1.8.7)
- Report bugs or suggestions at http://code.google.com/p/geotoad/issues/
- Please include verbose output (-v) without passwords in the bug report.
( - ) Your cache directory is /home/xxx/.geotoad/cache
( o ) Logging in as xxxxxx
/tmp/geotoad-read-only_SVN1128/lib/shadowget.rb:254:in `fetchURL': undefined 
method `ciphers=' for #<Net::HTTP www.geocaching.com:443 open=false> 
(NoMethodError)
    from /tmp/geotoad-read-only_SVN1128/lib/shadowget.rb:228:in `fetchRemote'
    from /tmp/geotoad-read-only_SVN1128/lib/shadowget.rb:167:in `fetch'
    from /tmp/geotoad-read-only_SVN1128/lib/auth.rb:120:in `checkLoginScreen'
    from /tmp/geotoad-read-only_SVN1128/lib/auth.rb:20:in `login'
    from /tmp/geotoad-read-only_SVN1128/geotoad.rb:253:in `downloadGeocacheList'
    from /tmp/geotoad-read-only_SVN1128/geotoad.rb:805

Original issue reported on code.google.com by jorg.sch...@gmx.de on 22 Apr 2012 at 4:05

GoogleCodeExporter commented 9 years ago
Obviously, Ruby 1.8.x doesn't support the patch applied to cure issue 237.
Thanks for reporting that. Got to check whether there's ruby 1.8 for my Debian 
Wheezy...
(Can you confirm the problem disappears  with Ruby 1.9.y?)

I'm afraid we've got to drop Ruby 1.8 support in the not-so-far future... we 
might even address Unicode issues then!

For now, r1129 only sets http.ciphers when a Ruby version >=1.9 has been 
detected.

Merging this issue with 237...

Original comment by Steve8x8 on 23 Apr 2012 at 10:22

GoogleCodeExporter commented 9 years ago
Thanks for the quick fix. I can confirm that it's now working.

Ruby 1.8 seems to be the only one available for my up-to-date ubuntu 11.10 
installation:

dpkg -l ruby*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  ruby           4.8            Transitional package for ruby1.8
un  ruby-dev       <none>         (no description available)
un  ruby-interpret <none>         (no description available)
ii  ruby1.8        1.8.7.352-2ubu Interpreter of object-oriented scripting lan
un  ruby1.8-exampl <none>         (no description available)

I would suggest to wait until new ruby versions have made it into the standard 
repositories.

Cheers,

JCS.

Original comment by jorg.sch...@gmx.de on 23 Apr 2012 at 5:15