delivery-sdk-ruby 0.11.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -0
- data/lib/delivery/client/delivery_query.rb +7 -4
- data/lib/delivery/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17b341ec92359e512b2638aba5a81ac13a30721434f518ceff2b11e7f1cbea58
|
4
|
+
data.tar.gz: 19db0ecfb6e1317d2fc4079ee3a908d33afbafed49a56a49beb63c743a3ca4da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 919f879192f09a7bd4ce3f233eb696a5e81317ea66f13e00c9c76695bac3ecfe6d6fa3d717417e1498539040bd7e00cb1cc871ff622b93396fa20af9c5caceef
|
7
|
+
data.tar.gz: bf334e2f3acc95688be1b3fc69082938f0b21d1368b877298a21232dd4df238d139faea5e1fd7759afb0789e0f38f6178102c7dd0d325c9aa24171f2a56f6a16
|
data/README.md
CHANGED
@@ -72,6 +72,12 @@ delivery_client.items.execute do |response|
|
|
72
72
|
end
|
73
73
|
```
|
74
74
|
|
75
|
+
You can also execute the query without a block and just get the response:
|
76
|
+
|
77
|
+
```ruby
|
78
|
+
response = delivery_client.items.execute
|
79
|
+
```
|
80
|
+
|
75
81
|
### Filtering
|
76
82
|
|
77
83
|
You can use [filtering](https://developer.kenticocloud.com/v1/reference#content-filtering "filtering") to retrieve particular items. The filtering methods are applied directly to a string and the available methods are:
|
@@ -46,13 +46,16 @@ module Delivery
|
|
46
46
|
begin
|
47
47
|
resp = execute_rest
|
48
48
|
rescue RestClient::ExceptionWithResponse => err
|
49
|
-
|
49
|
+
resp = Delivery::Responses::ResponseBase.new err.http_code, err.response
|
50
50
|
rescue RestClient::SSLCertificateNotVerified => err
|
51
|
-
|
51
|
+
resp = Delivery::Responses::ResponseBase.new 500, err
|
52
52
|
rescue SocketError => err
|
53
|
-
|
53
|
+
resp = Delivery::Responses::ResponseBase.new 500, err.message
|
54
54
|
else
|
55
|
-
|
55
|
+
resp = make_response resp
|
56
|
+
ensure
|
57
|
+
yield resp if block_given?
|
58
|
+
resp
|
56
59
|
end
|
57
60
|
end
|
58
61
|
|
data/lib/delivery/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: delivery-sdk-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Dugre
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-02-
|
11
|
+
date: 2019-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|