1
0
Fork 0
mirror of https://github.com/jnunemaker/httparty synced 2023-03-27 23:23:07 -04:00

added lock and unlock http support

This commit is contained in:
Fabian Oudhaarlem 2018-05-02 22:26:33 +02:00
parent da1b1ad1d6
commit 0eab9103cd
4 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View file

@ -10,3 +10,4 @@ pkg/
.rvmrc .rvmrc
coverage coverage
*.gem *.gem
.idea

View file

@ -546,6 +546,14 @@ module HTTParty
perform_request Net::HTTP::Mkcol, path, options, &block perform_request Net::HTTP::Mkcol, path, options, &block
end end
def lock(path, options = {}, &block)
perform_request Net::HTTP::Lock, path, options, &block
end
def unlock(path, options = {}, &block)
perform_request Net::HTTP::Unlock, path, options, &block
end
attr_reader :default_options attr_reader :default_options
private private

View file

@ -14,6 +14,8 @@ module HTTParty
Net::HTTP::Move, Net::HTTP::Move,
Net::HTTP::Copy, Net::HTTP::Copy,
Net::HTTP::Mkcol, Net::HTTP::Mkcol,
Net::HTTP::Lock,
Net::HTTP::Unlock,
] ]
SupportedURISchemes = ['http', 'https', 'webcal', nil] SupportedURISchemes = ['http', 'https', 'webcal', nil]

View file

@ -1,3 +1,3 @@
module HTTParty module HTTParty
VERSION = "0.16.2" VERSION = "0.16.3"
end end