http_api_client 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -0
- data/lib/http_api_client/client.rb +0 -4
- data/lib/http_api_client/errors.rb +1 -1
- data/lib/http_api_client/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -162,3 +162,8 @@ This will install `/usr/local/opt/curl-ca-bundle/share/ca-bundle.crt`
|
|
162
162
|
### 0.1.5 - 2014-04-08
|
163
163
|
* Logging and metrics are separate concerns and both are injectable
|
164
164
|
|
165
|
+
### 0.2.0 - 2014-04-08
|
166
|
+
* 422's are now treated as exceptional which allows much easier use of http_api_client when not using Hooroo Api Tools. This moved some responsibility away from http_api_client into HoorooApiTools
|
167
|
+
|
168
|
+
### 0.2.1 - 2014-04-08
|
169
|
+
* A couple of code cleanup actions
|
@@ -107,10 +107,6 @@ module HttpApiClient
|
|
107
107
|
Integer(response.status).between?(200, 299)
|
108
108
|
end
|
109
109
|
|
110
|
-
def validation_failed?(response)
|
111
|
-
Integer(response.status) == 422
|
112
|
-
end
|
113
|
-
|
114
110
|
def full_path(path)
|
115
111
|
path = "/#{config.base_uri}/#{path}".gsub(/\/+/, '/')
|
116
112
|
path
|