Sha256: 1ea4896addbcb608656ff9f0f5604bead026ea0ace0cea20d899472bbb5ea2ca

Contents?: true

Size: 755 Bytes

Versions: 60

Compression:

Stored size: 755 Bytes

Contents

module HTTParty
  if defined?(::BasicObject)
    BasicObject = ::BasicObject #:nodoc:
  else
    class BasicObject #:nodoc:
      instance_methods.each { |m| undef_method m unless m =~ /^__|instance_eval/ }
    end
  end

  unless defined?(Net::HTTP::Patch)
    class Net::HTTP
      def patch(path, data, initheader = nil, dest = nil, &block) #:nodoc:
        res = nil
        request(Patch.new(path, initheader), data) {|r|
          r.read_body dest, &block
          res = r
        }
        unless @newimpl
          res.value
          return res, res.body
        end
        res
      end

      class Patch < Net::HTTPRequest
        METHOD = 'PATCH'
        REQUEST_HAS_BODY = true
        RESPONSE_HAS_BODY = true
      end
    end
  end
end

Version data entries

60 entries across 59 versions & 9 rubygems

Version Path
alloy_sdk-0.1.0 vendor/bundle/ruby/3.0.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
alloy_sdk-0.1.0 vendor/bundle/ruby/2.6.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
httsoiree-0.13.3 lib/httparty/core_extensions.rb
allegro_api_client-0.0.9 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
httparty-0.13.3 lib/httparty/core_extensions.rb
allegro_api_client-0.0.8 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
allegro_api_client-0.0.7 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
httparty-0.13.2 lib/httparty/core_extensions.rb
asana2flowdock-1.0.0 vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
allegro_api_client-0.0.6 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
allegro_api_client-0.0.5 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
allegro_api_client-0.0.4 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
allegro_api_client-0.0.3 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
allegro_api_client-0.0.2 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
allegro_api_client-0.0.1 gems/ruby/2.1.0/gems/httparty-0.13.1/lib/httparty/core_extensions.rb
httsoiree-0.13.1.1 lib/httparty/core_extensions.rb
httsoiree-0.13.1 lib/httparty/core_extensions.rb
httparty-enterprise-edition-0.13.1.1 lib/httparty/core_extensions.rb
httparty-enterprise-edition-0.13.1 lib/httparty/core_extensions.rb
httparty-0.13.1 lib/httparty/core_extensions.rb