rspec_api_documentation 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rspec_api_documentation/curl.rb +8 -0
- metadata +2 -2
@@ -25,6 +25,14 @@ module RspecApiDocumentation
|
|
25
25
|
"curl \"#{url}\" #{post_data} -X DELETE #{headers}"
|
26
26
|
end
|
27
27
|
|
28
|
+
def head
|
29
|
+
"curl \"#{url}#{get_data}\" -X HEAD #{headers}"
|
30
|
+
end
|
31
|
+
|
32
|
+
def patch
|
33
|
+
"curl \"#{url}\" #{post_data} -X PATCH #{headers}"
|
34
|
+
end
|
35
|
+
|
28
36
|
def url
|
29
37
|
"#{host}#{path}"
|
30
38
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_api_documentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-04-
|
14
|
+
date: 2013-04-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: rspec
|