Sha256: 059c136e541e5eceeab870f98334f8caa23c589a55fb01f1e819add28cb7453f

Contents?: true

Size: 267 Bytes

Versions: 24

Compression:

Stored size: 267 Bytes

Contents

# frozen_string_literal: true

require 'sawyer'

patch = Module.new do
  def href(options = nil)
    # Temporary workaround for: https://github.com/octokit/octokit.rb/issues/727
    name.to_s == 'ssh' ? @href : super
  end
end

Sawyer::Relation.send(:prepend, patch)

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
octokit-9.2.0 lib/ext/sawyer/relation.rb
octokit-9.1.0 lib/ext/sawyer/relation.rb
octokit-9.0.0 lib/ext/sawyer/relation.rb
octokit-8.1.0 lib/ext/sawyer/relation.rb
octokit-8.0.0 lib/ext/sawyer/relation.rb
octokit-7.2.0 lib/ext/sawyer/relation.rb
octokit-7.1.0 lib/ext/sawyer/relation.rb
octokit-7.0.0 lib/ext/sawyer/relation.rb
octokit-6.1.1 lib/ext/sawyer/relation.rb
octokit-6.1.0 lib/ext/sawyer/relation.rb
tdiary-5.2.4 vendor/bundle/ruby/3.1.0/gems/octokit-4.25.1/lib/ext/sawyer/relation.rb
octokit-6.0.1 lib/ext/sawyer/relation.rb
octokit-6.0.0 lib/ext/sawyer/relation.rb
octokit-5.6.1 lib/ext/sawyer/relation.rb
octokit-5.6.0 lib/ext/sawyer/relation.rb
octokit-5.5.0 lib/ext/sawyer/relation.rb
octokit-5.4.0 lib/ext/sawyer/relation.rb
tdiary-5.2.3 vendor/bundle/ruby/3.1.0/gems/octokit-5.3.0/lib/ext/sawyer/relation.rb
octokit-5.3.0 lib/ext/sawyer/relation.rb
octokit-5.2.0 lib/ext/sawyer/relation.rb