Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cache calls invalid method on ObjectCache

Đang mở
#13 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
ruby
Lĩnh vực
authentication

Hướng nghiên cứu

Start by reading lib/github_authentication/cache.rb around line 23 and compare its clear path with lib/github_authentication/object_cache.rb. Reproduce the failure using github-authentication in a script, then verify that clearing the in-memory cache no longer raises the reported NoMethodError.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

As far as I can tell, cache calls an invalid method when using the in-memory cache:

/Library/Ruby/Gems/2.6.0/gems/github-authentication-0.1.2/lib/github/authentication/cache.rb:24:in `clear': undefined method `delete' for #<Github::Authentication::ObjectCache:0x00007ff6e00edc90> (NoMethodError)

cache calls delete here:

https://github.com/Shopify/github-authentication/blob/master/lib/github_authentication/cache.rb#L23

but object cache does not have a delete method defined:

https://github.com/Shopify/github-authentication/blob/master/lib/github_authentication/object_cache.rb

running into this when trying to use github-authentication in a script

Ngôn ngữ chính
Ruby
Star
8
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.