Title: Fix undefined instance var AS encryptor by swiknaba · Pull Request #31 · diffcrypt/diffcrypt-ruby · GitHub
Open Graph Title: Fix undefined instance var AS encryptor by swiknaba · Pull Request #31 · diffcrypt/diffcrypt-ruby
X Title: Fix undefined instance var AS encryptor by swiknaba · Pull Request #31 · diffcrypt/diffcrypt-ruby
Description: creating new credentials fails with 0.4.0/lib/diffcrypt/rails/encrypted_configuration.rb:102:in `decrypt': undefined method `decrypt_and_verify' for nil:NilClass (NoMethodError) it seems decrypt_and_verify is never called, thus @decrypt_and_verify is not populated and hence results in this error. Not sure if def active_support_encryptor @active_support_encryptor = ActiveSupport::MessageEncryptor.new( [key].pack('H*'), cipher: @diffcrypt_file.cipher, ) end was intended to memorize the AS Message Encryptor instance, if so, we can drop in @active_support_encryptor ||= ....
Open Graph Description: creating new credentials fails with 0.4.0/lib/diffcrypt/rails/encrypted_configuration.rb:102:in `decrypt': undefined method `decrypt_and_verify' for nil:NilClass (NoMethodError) it seems d...
X Description: creating new credentials fails with 0.4.0/lib/diffcrypt/rails/encrypted_configuration.rb:102:in `decrypt': undefined method `decrypt_and_verify' for nil:NilClass (NoMethodError) it...
Opengraph URL: https://github.com/diffcrypt/diffcrypt-ruby/pull/31
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cbf19e81-261f-2e99-c7db-79346af27c8a |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E9CC:9D969:2974F35:353BC53:697FEBE1 |
| html-safe-nonce | d3dc018b4cf0323dc9f963e791d59a0a42bc579bc0bc606aacf9bc78399f0eaa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOUNDOjlEOTY5OjI5NzRGMzU6MzUzQkM1Mzo2OTdGRUJFMSIsInZpc2l0b3JfaWQiOiIxNzYwNjQ2MzAzNTc1MDA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a80b71735f2176c1a7ba262ac23e029f8a6a38255cc131ff27bb621c6552b43b |
| hovercard-subject-tag | pull_request:498658226 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/diffcrypt/diffcrypt-ruby/pull/31/files |
| twitter:image | https://avatars.githubusercontent.com/u/20702503?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/20702503?s=400&v=4 |
| og:image:alt | creating new credentials fails with 0.4.0/lib/diffcrypt/rails/encrypted_configuration.rb:102:in `decrypt': undefined method `decrypt_and_verify' for nil:NilClass (NoMethodError) it seems d... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/diffcrypt/diffcrypt-ruby git https://github.com/diffcrypt/diffcrypt-ruby.git |
| octolytics-dimension-user_id | 77545058 |
| octolytics-dimension-user_login | diffcrypt |
| octolytics-dimension-repository_id | 275567034 |
| octolytics-dimension-repository_nwo | diffcrypt/diffcrypt-ruby |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 275567034 |
| octolytics-dimension-repository_network_root_nwo | diffcrypt/diffcrypt-ruby |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width