idcf-dns 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/idcf/dns/client.rb +5 -5
- data/lib/idcf/dns/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3400132f655289a5acc5bacb0089f51daa2775e
|
4
|
+
data.tar.gz: 4b3a4d074de7a3996cd1962a20e34b31f288be87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff8b191e6863afc2aeeb9d34c85d44b96e5bdb02d41048a17072a570073d70d950a0caa8edb8c1b929e844f2cf02480eb811059e90b99251dff3a2ef57468654
|
7
|
+
data.tar.gz: 34e350511c35e53bdb40e815f5dd3f6df6b48852575d6aecc4588fabdb9a243ce9a090178bc42c18dd8bcac21b90f9e3e20dda8e0bdab87479724f575ce33138
|
data/lib/idcf/dns/client.rb
CHANGED
@@ -55,7 +55,7 @@ module Idcf
|
|
55
55
|
# @param headers [Hash] HTTP request headers
|
56
56
|
# @return [Response] Response object
|
57
57
|
def delete!(resource, parameters = {}, headers = {})
|
58
|
-
|
58
|
+
send!(:delete, resource, parameters, headers)
|
59
59
|
end
|
60
60
|
|
61
61
|
# Send GET request
|
@@ -75,7 +75,7 @@ module Idcf
|
|
75
75
|
# @param headers [Hash] HTTP request headers
|
76
76
|
# @return [Response] Response object
|
77
77
|
def get!(resource, parameters = {}, headers = {})
|
78
|
-
|
78
|
+
send!(:get, resource, parameters, headers)
|
79
79
|
end
|
80
80
|
|
81
81
|
# Send POST request
|
@@ -95,7 +95,7 @@ module Idcf
|
|
95
95
|
# @param headers [Hash] HTTP request headers
|
96
96
|
# @return [Response] Response object
|
97
97
|
def post!(resource, parameters = {}, headers = {})
|
98
|
-
|
98
|
+
send!(:post, resource, parameters, headers)
|
99
99
|
end
|
100
100
|
|
101
101
|
# Send PUT request
|
@@ -115,7 +115,7 @@ module Idcf
|
|
115
115
|
# @param headers [Hash] HTTP request headers
|
116
116
|
# @return [Response] Response object
|
117
117
|
def put!(resource, parameters = {}, headers = {})
|
118
|
-
|
118
|
+
send!(:put, resource, parameters, headers)
|
119
119
|
end
|
120
120
|
|
121
121
|
private
|
@@ -124,7 +124,7 @@ module Idcf
|
|
124
124
|
Request.new(self, method, resource, parameters, headers).send
|
125
125
|
end
|
126
126
|
|
127
|
-
def
|
127
|
+
def send!(method, resource, parameters = {}, headers = {})
|
128
128
|
response = send(method, resource, parameters, headers)
|
129
129
|
unless response.success?
|
130
130
|
fail(
|
data/lib/idcf/dns/version.rb
CHANGED