Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return actual hash algorithm from GPGME adapter #110

Merged
merged 5 commits into from
Sep 19, 2018
Merged

Conversation

skalee
Copy link
Contributor

@skalee skalee commented Sep 14, 2018

Fixes #107. Algorithm preference should be set in a gpg.conf file.

@ronaldtse
Copy link
Contributor

Thanks @skalee !

@skalee
Copy link
Contributor Author

skalee commented Sep 15, 2018

I got no idea why CodeCov reports are so negative. Perhaps re-running that will change something.

@ronaldtse
Copy link
Contributor

@skalee happy to have it merged as long as it works. CodeCov is not always accurate anyway.

Whilst less convenient, it allows for greater control, which will be
required soon for obtaining the hash algorithm.
Determine actual hash algorithm used for signature computation, and
return it from #compute_signature defined in GPGME adapter.
@codecov
Copy link

codecov bot commented Sep 19, 2018

Codecov Report

Merging #110 into master will decrease coverage by 0.15%.
The diff coverage is 91.3%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
- Coverage   99.92%   99.76%   -0.16%     
==========================================
  Files          37       37              
  Lines        1253     1273      +20     
==========================================
+ Hits         1252     1270      +18     
- Misses          1        3       +2
Impacted Files Coverage Δ
spec/support/gpgme_spec_helpers.rb 100% <100%> (ø) ⬆️
lib/enmail/adapters/gpgme.rb 94.73% <90.9%> (-5.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 06e28b1...7df19e0. Read the comment docs.

@skalee
Copy link
Contributor Author

skalee commented Sep 19, 2018

CodeCov is accurate here. I've switched from high-level API to mid-level one by copy-pasting few of code from gpgme gem. The untested part is two lines in exception handling, and because this pull request is concentrated on just few methods, this is enough to impact codecov/patch report drastically. A slight drop in overall coverage is also a fact.

Nevertheless, this is not critical. I'll add a comment and merge.

@ronaldtse
Copy link
Contributor

Got it. Thanks @skalee !

@skalee skalee merged commit 1b05d87 into master Sep 19, 2018
@skalee skalee deleted the micalg-in-gpgme branch September 19, 2018 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants