garage_client 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -38
- data/README.md +1 -0
- data/lib/garage_client/error.rb +1 -0
- data/lib/garage_client/response/raise_http_exception.rb +2 -0
- data/lib/garage_client/version.rb +1 -1
- data/spec/garage_client/response_spec.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb9db90c3983924e416edc76b11151cac5f88607
|
4
|
+
data.tar.gz: 02feb707a136c0e0706d71ce7a1bfe3251547aaa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92ab1fe88fa7f9d9d7dc5db97ccd4fa96fe341ec0973c1ea02c7bfbd4bc5a0d08f215b654809b35a3d4fadcea1bf83d993ddbe44d599f71411a314529e61be0a
|
7
|
+
data.tar.gz: be97cd43e6162bd312d80a932bd5c5402fb1cd3f5837974e13ea89eb22555f0bfa8c1576a869cafbcd215c1784f70691927b3b75ff38f3c1cf100d08e097501f
|
data/CHANGELOG.md
CHANGED
@@ -1,40 +1,9 @@
|
|
1
|
-
## 2.1.
|
2
|
-
-
|
3
|
-
Before: access token is embedded in both query parameter (`?access_token=XXX`) and in authorization header (`Authorization: Token token="XXX"`).
|
4
|
-
After: access tok is embedded in authorization header as a bearer token (`Authorization: Bearer XXX`).
|
1
|
+
## 2.1.3
|
2
|
+
- Raise GrageClient::BadRequest on 400 response as same as other http errors.
|
5
3
|
|
6
|
-
## 2.
|
7
|
-
-
|
4
|
+
## 2.1.2
|
5
|
+
- Fix GarageClient::Cachers's bug.
|
6
|
+
- Lazy evaluate global configuration.
|
8
7
|
|
9
|
-
## 1.
|
10
|
-
-
|
11
|
-
|
12
|
-
## 1.2.4
|
13
|
-
- Raise GarageClient::InvalidResponseType when receives invalid response (e.g. String)
|
14
|
-
|
15
|
-
## 1.2.3
|
16
|
-
- Fixed response.respond_to?(:name)
|
17
|
-
|
18
|
-
## 1.2.2
|
19
|
-
- GarageClient::Response supports Link header parsing
|
20
|
-
|
21
|
-
## 1.2.1
|
22
|
-
- Set Content-Type with multipart/form-data when multipart params are detected
|
23
|
-
|
24
|
-
## 1.2.0
|
25
|
-
- `:headers` option will overwrite the entire headers
|
26
|
-
- `:default_headers` will be deprecated. Please use `:headers`
|
27
|
-
- `Garage.version` was deprecated. Please use `Garage::VERSION`
|
28
|
-
- `Garage.configuration` was added to configure settings
|
29
|
-
|
30
|
-
## 1.1.2
|
31
|
-
- Remove needless empty module clause (7f5e13)
|
32
|
-
- Change gemspec dependency (`hashie ~> 1.2.0` to `hashie >= 1.2.0`) (632ea1)
|
33
|
-
|
34
|
-
## 1.1.1
|
35
|
-
- GarageClient::Error accepts no argument initialization
|
36
|
-
|
37
|
-
## 1.1.0
|
38
|
-
- Add ``:default_headers`` option
|
39
|
-
- Verbose exception message
|
40
|
-
- Resource#links does not raise error when _links is not existed
|
8
|
+
## 2.1.1
|
9
|
+
- First release of OSS version :tada:.
|
data/README.md
CHANGED
@@ -123,6 +123,7 @@ GarageClient raises one of the following exceptions upon an error.
|
|
123
123
|
Make sure to always look out for these in your code.
|
124
124
|
|
125
125
|
```ruby
|
126
|
+
GarageClient::BadRequest
|
126
127
|
GarageClient::Unauthorized
|
127
128
|
GarageClient::Forbidden
|
128
129
|
GarageClient::NotFound
|
data/lib/garage_client/error.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: garage_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cookpad Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
257
257
|
version: '0'
|
258
258
|
requirements: []
|
259
259
|
rubyforge_project:
|
260
|
-
rubygems_version: 2.
|
260
|
+
rubygems_version: 2.2.2
|
261
261
|
signing_key:
|
262
262
|
specification_version: 4
|
263
263
|
summary: Ruby client library for the Garage API
|
@@ -278,3 +278,4 @@ test_files:
|
|
278
278
|
- spec/garage_client/response_spec.rb
|
279
279
|
- spec/garage_client_spec.rb
|
280
280
|
- spec/spec_helper.rb
|
281
|
+
has_rdoc:
|