[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sup-devel] sup dies when gpgme not present



>> I have some more ideas for improvements, but I'm happy that this
>> reproduces the behaviour of using the gpg binary, and I find sup usage
>> much smoother with this change.

Thank you.

> When the gpgme gem is not installed, this patch makes sup die on start
> with:
>
> --- NameError from thread: main
> uninitialized constant Redwood::CryptoManager::GPGME
> /home/alvherre/Code/sup-mail/lib/sup/crypto.rb:49:in `initialize'
> ...

The code around that line is:

    # test if the gpgme gem is available
    @gpgme_present =
      begin
        begin
          GPGME.check_version({:protocol => GPGME::PROTOCOL_OpenPGP})
     <-- line 49
          true
        rescue GPGME::Error
          false
        end
      rescue NameError
        false
      end

So we should rescue the NameError. Could you check whether the code
for your sup looks like that? Could you also temporarily remove the
gpgme gem, update to the latest from master and see if you still get
the same problem?

Thanks in advance, and sorry for not getting back sooner.
Hamish
_______________________________________________
Sup-devel mailing list
Sup-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/sup-devel