kontent-ai-delivery 3.0.0 → 3.0.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 +3 -3
- data/lib/delivery/client/delivery_query.rb +2 -5
- 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: cff689b5a560ce0e814903f66b15ce3ce65cf351fd858545b63f78151b7aeaf9
|
4
|
+
data.tar.gz: e39a336ee24769ff39bc8e5df53a2311a8824941fad8ec9806d08db9e878a249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65b628c91dfa84af621d77f577b64a0f2ba358dc84e413160c3dde0d62679da74fee8286dc101635d47e19fc2796697cc5132a4fc89eafb199482ea27adce299
|
7
|
+
data.tar.gz: a2f9c66a0b130cea6bb46d34860ed42a808bae9890dcf3505fc85896237501f0702cdc3bc798a28b171a2495117ad2d82f0f0fae4d324cb7e4e2bf493c6dda86
|
data/README.md
CHANGED
@@ -50,13 +50,13 @@ See [How to setup a development environment on Windows](./docs/How-to-setup-deve
|
|
50
50
|
To use the SDK in your own project, add the gem to your Gemfile:
|
51
51
|
|
52
52
|
```ruby
|
53
|
-
gem '
|
53
|
+
gem 'kontent-ai-delivery'
|
54
54
|
```
|
55
55
|
|
56
|
-
Then run `bundle install`. You can also download the gem from [RubyGems.org](https://rubygems.org/gems/
|
56
|
+
Then run `bundle install`. You can also download the gem from [RubyGems.org](https://rubygems.org/gems/kontent-ai-delivery). To use the SDK in an `.rb` file, you need to require it:
|
57
57
|
|
58
58
|
```ruby
|
59
|
-
require '
|
59
|
+
require 'kontent-ai-delivery'
|
60
60
|
```
|
61
61
|
|
62
62
|
## Creating a client
|
@@ -15,6 +15,7 @@ module Kontent
|
|
15
15
|
'. See https://github.com/kontent-ai/delivery-sdk-ruby#filtering'.freeze
|
16
16
|
HEADER_WAIT_FOR_CONTENT = 'X-KC-Wait-For-Loading-New-Content'.freeze
|
17
17
|
HEADER_SDK_ID = 'X-KC-SDKID'.freeze
|
18
|
+
HEADER_SDK_VALUE = 'rubygems.org;kontent-ai-delivery;3.0.1'.freeze
|
18
19
|
HEADER_CONTINUATION = 'X-Continuation'.freeze
|
19
20
|
attr_accessor :use_preview,
|
20
21
|
:preview_key,
|
@@ -269,7 +270,7 @@ module Kontent
|
|
269
270
|
# - +Hash+
|
270
271
|
def headers
|
271
272
|
headers = @headers.clone
|
272
|
-
headers[HEADER_SDK_ID] =
|
273
|
+
headers[HEADER_SDK_ID] = HEADER_SDK_VALUE
|
273
274
|
headers['Authorization'] = "Bearer #{preview_key}" if should_preview
|
274
275
|
headers['Authorization'] = "Bearer #{secure_key}" if !should_preview && secure_key
|
275
276
|
|
@@ -298,10 +299,6 @@ module Kontent
|
|
298
299
|
end
|
299
300
|
end
|
300
301
|
end
|
301
|
-
|
302
|
-
def provide_sdk_header
|
303
|
-
'rubygems.org;delivery-sdk-ruby;'
|
304
|
-
end
|
305
302
|
end
|
306
303
|
end
|
307
304
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kontent-ai-delivery
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kontent.ai DevRel
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|