Bug 242703 - net/rubygem-octokit deprecated class used
Summary: net/rubygem-octokit deprecated class used
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ruby mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-12-18 13:14 UTC by Guillaume Bibaut
Modified: 2019-12-18 13:14 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (ruby)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Bibaut 2019-12-18 13:14:27 UTC
Recently got a problem using www/gitlab-ce which is using net/rubygem-octokit.
I can't paste here exact messages because I forgot to copy that to some place this week-end.

It seems that I had to patch this file:
/usr/local/lib/ruby/gems/2.6/gems/octokit-4.13.0/lib/octokit/middleware/follow_redirects.rb

so that it does not use a deprecated '...ClientError' class, and had to replace with 'Faraday::ClientError' instead of the one used when the package is installed from packages. It should be located on line 14, and now is :

```
    class RedirectLimitReached < Faraday::ClientError
```

Sorry if this is not very clear.