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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fd73aeb9d5c21ced1f411e55d6c5580cbf4a47e4c53e079c20a6042c6e4c8a86
4
- data.tar.gz: 69e4592d7a990b1bafca69909f27435e7882c25c80b8936541b83d29567fdd5a
3
+ metadata.gz: 17b341ec92359e512b2638aba5a81ac13a30721434f518ceff2b11e7f1cbea58
4
+ data.tar.gz: 19db0ecfb6e1317d2fc4079ee3a908d33afbafed49a56a49beb63c743a3ca4da
5
5
  SHA512:
6
- metadata.gz: 55367ece8fc6d59d62180aab48359507335b0b87e3d38cea94a3e923dc06ddf14cda1be62dca0bf373e7714fc6723aefd90b5878893717d682d49571ad535a79
7
- data.tar.gz: 6b90bb56897fcbed3bf7cc61e0d0f74a65e5d0d2c14578fd997192d5d2b1e2ef555eeccd9f56675dc9d493f5f44fcb288e738245ac9910bf5d953356e977f86e
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
- yield Delivery::Responses::ResponseBase.new err.http_code, err.response
49
+ resp = Delivery::Responses::ResponseBase.new err.http_code, err.response
50
50
  rescue RestClient::SSLCertificateNotVerified => err
51
- yield Delivery::Responses::ResponseBase.new 500, err
51
+ resp = Delivery::Responses::ResponseBase.new 500, err
52
52
  rescue SocketError => err
53
- yield Delivery::Responses::ResponseBase.new 500, err.message
53
+ resp = Delivery::Responses::ResponseBase.new 500, err.message
54
54
  else
55
- yield make_response resp
55
+ resp = make_response resp
56
+ ensure
57
+ yield resp if block_given?
58
+ resp
56
59
  end
57
60
  end
58
61
 
@@ -1,3 +1,3 @@
1
1
  module Delivery
2
- VERSION = '0.11.0'.freeze
2
+ VERSION = '0.11.1'.freeze
3
3
  end
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.0
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 00:00:00.000000000 Z
11
+ date: 2019-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri