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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 98032912f6081933ba743910474df098a6fe6e52
4
- data.tar.gz: b957f8dd35397928b1f0dcdd5b4c67318b3ae1a6
3
+ metadata.gz: a3400132f655289a5acc5bacb0089f51daa2775e
4
+ data.tar.gz: 4b3a4d074de7a3996cd1962a20e34b31f288be87
5
5
  SHA512:
6
- metadata.gz: d361f8adaba339dbab6ba919cabb5eb4a10b33fd5c75b6bec6cdfeb3b1b5afc0a1868e79c8b49fb1fd4c45ce9186321a7bf80de928ac727af9b7995cfad8287b
7
- data.tar.gz: 7968f8c82d86121fffdf5751d7d25983edf1126b23b1546a8d16d5182a796dcb3528f552c1cff4cc72f72dbe1d52182f685136558c578a5c4c4d0cabccf5afd8
6
+ metadata.gz: ff8b191e6863afc2aeeb9d34c85d44b96e5bdb02d41048a17072a570073d70d950a0caa8edb8c1b929e844f2cf02480eb811059e90b99251dff3a2ef57468654
7
+ data.tar.gz: 34e350511c35e53bdb40e815f5dd3f6df6b48852575d6aecc4588fabdb9a243ce9a090178bc42c18dd8bcac21b90f9e3e20dda8e0bdab87479724f575ce33138
@@ -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
- send_with_handling_error(:delete, resource, parameters, headers)
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
- send_with_handling_error(:get, resource, parameters, headers)
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
- send_with_handling_error(:post, resource, parameters, headers)
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
- send_with_handling_error(:put, resource, parameters, headers)
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 send_with_handling_error(method, resource, parameters = {}, headers = {})
127
+ def send!(method, resource, parameters = {}, headers = {})
128
128
  response = send(method, resource, parameters, headers)
129
129
  unless response.success?
130
130
  fail(
@@ -1,5 +1,5 @@
1
1
  module Idcf
2
2
  module Dns
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: idcf-dns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - nownabe