contentful 1.0.2 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fa88c4ac86051cce5074ece0a442eba538b391de
4
- data.tar.gz: d3b48ffb2e6415fe4ca1181273ea646c50c66ab6
3
+ metadata.gz: cf533a202661dbb21a1407db9ce750ce065e4b65
4
+ data.tar.gz: ab9be792f8c764a9a3d193b2b48a4023e5d67f7a
5
5
  SHA512:
6
- metadata.gz: ac44810a4f8fa5e725b2953ae54abfb8bb4987d4af1feecfed38631ce4fdade1096f1cfdede0a67fd20fe039e0939243e87ee946568a1cc59cb5107b0c3ac997
7
- data.tar.gz: ca723275d5614061688b12d2cf7d1dcc0ca5881b611378f454b70563297c9df5beea6ef6a9a43606eecf80617e12d9042603714125c5a425fed4410f69675e98
6
+ metadata.gz: 20c2571a350ee58c2b3bb9022067f286b11e853c140d4469ca12b501d0659f1188c9efcf6754d261b334ce387f776b2c8db389261ad909a78fcdcf2eaf8d2c13
7
+ data.tar.gz: 63b528128d85440107f71f696d0e9278aa94b0e0cae82e6e19a3d007269a04f9468e9ad05e298939df78020c864e263cd0b35c19ca7e68a4228ce09debf86577
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 1.1.0
6
+ ### Added
7
+ * Add support for `select` operator in `#entries` and `#assets` call
8
+
5
9
  ## 1.0.2
6
10
  ### Fixed
7
11
  * Fix Link resolution for Arrays on localized content
data/README.md CHANGED
@@ -13,8 +13,6 @@ Add to your Gemfile and bundle:
13
13
  gem 'contentful'
14
14
  ```
15
15
 
16
-
17
-
18
16
  ## Usage
19
17
 
20
18
  ```ruby
@@ -149,6 +149,7 @@ module Contentful
149
149
  #
150
150
  # @return [Contentful::Array<Contentful::Entry>]
151
151
  def entries(query = {})
152
+ normalize_select!(query)
152
153
  Request.new(self, '/entries', query).get
153
154
  end
154
155
 
@@ -168,6 +169,7 @@ module Contentful
168
169
  #
169
170
  # @return [Contentful::Array<Contentful::Asset>]
170
171
  def assets(query = {})
172
+ normalize_select!(query)
171
173
  Request.new(self, '/assets', query).get
172
174
  end
173
175
 
@@ -296,6 +298,18 @@ module Contentful
296
298
 
297
299
  private
298
300
 
301
+ # If the query contains the :select operator, we enforce :sys properties.
302
+ # The SDK requires sys.type to function properly, but as other of our SDKs
303
+ # require more parts of the :sys properties, we decided that every SDK should
304
+ # include the complete :sys block to provide consistency accross our SDKs.
305
+ def normalize_select!(query)
306
+ return unless query.key?(:select)
307
+
308
+ query[:select] = query[:select].split(',').map(&:strip) if query[:select].is_a? String
309
+ query[:select] = query[:select].reject { |p| p.start_with?('sys.') }
310
+ query[:select] << 'sys' unless query[:select].include?('sys')
311
+ end
312
+
299
313
  def normalize_configuration!
300
314
  [:space, :access_token, :api_url, :default_locale].each { |s| configuration[s] = configuration[s].to_s }
301
315
  configuration[:authentication_mechanism] = configuration[:authentication_mechanism].to_sym
@@ -3,7 +3,7 @@ module Contentful
3
3
  # with domain specific logic. The client later uses the Request's #url and #query methods
4
4
  # to execute the HTTP request.
5
5
  class Request
6
- attr_reader :client, :type, :query, :id
6
+ attr_reader :client, :type, :query, :id, :endpoint
7
7
 
8
8
  def initialize(client, endpoint, query = {}, id = nil)
9
9
  @client = client
@@ -142,7 +142,7 @@ module Contentful
142
142
  def initialize_fields_for_localized_resource(object)
143
143
  @fields = {}
144
144
 
145
- object['fields'].each do |field_name, nested_child_object|
145
+ object.fetch('fields', {}).each do |field_name, nested_child_object|
146
146
  if Support.localized?(nested_child_object)
147
147
  nested_child_object.each do |object_locale, real_child_object|
148
148
  @fields[object_locale] ||= {}
@@ -151,8 +151,9 @@ module Contentful
151
151
  )
152
152
  end
153
153
  else
154
- @fields[locale] ||= {}
155
- @fields[locale].merge! extract_from_object({ field_name => nested_child_object }, :fields)
154
+ # if sys.locale property not present (due to select operator) use default_locale
155
+ @fields[locale || default_locale] ||= {}
156
+ @fields[locale || default_locale].merge! extract_from_object({ field_name => nested_child_object }, :fields)
156
157
  end
157
158
  end
158
159
  end
@@ -1,5 +1,5 @@
1
1
  # Contentful Namespace
2
2
  module Contentful
3
3
  # Gem Version
4
- VERSION = '1.0.2'
4
+ VERSION = '1.1.0'
5
5
  end
data/spec/asset_spec.rb CHANGED
@@ -67,4 +67,45 @@ describe Contentful::Asset do
67
67
  expect(unmarshalled.title).to eq 'Nyan Cat'
68
68
  expect(unmarshalled.file).to be_a Contentful::File
69
69
  end
70
+
71
+ describe 'select operator' do
72
+ let(:client) { create_client }
73
+
74
+ context 'with sys sent' do
75
+ it 'properly creates an entry' do
76
+ vcr('asset/select_only_sys') {
77
+ asset = client.assets(select: ['sys']).first
78
+ expect(asset.fields).to be_empty
79
+ expect(asset.sys).not_to be_empty
80
+ }
81
+ end
82
+
83
+ it 'can contain only one field' do
84
+ vcr('asset/select_one_field') {
85
+ asset = client.assets(select: ['sys', 'fields.file']).first
86
+ expect(asset.fields.keys).to eq([:file])
87
+ }
88
+ end
89
+ end
90
+
91
+ context 'without sys sent' do
92
+ it 'will enforce sys anyway' do
93
+ vcr('asset/select_no_sys') {
94
+ asset = client.assets(select: ['fields'], 'sys.id' => 'nyancat').first
95
+
96
+ expect(asset.id).to eq 'nyancat'
97
+ expect(asset.sys).not_to be_empty
98
+ }
99
+ end
100
+
101
+ it 'works with empty array as well, as sys is enforced' do
102
+ vcr('asset/select_empty_array') {
103
+ asset = client.assets(select: [], 'sys.id' => 'nyancat').first
104
+
105
+ expect(asset.id).to eq 'nyancat'
106
+ expect(asset.sys).not_to be_empty
107
+ }
108
+ end
109
+ end
110
+ end
70
111
  end
data/spec/entry_spec.rb CHANGED
@@ -240,4 +240,60 @@ describe Contentful::Entry do
240
240
  end
241
241
  end
242
242
  end
243
+
244
+ describe 'select operator' do
245
+ let(:client) { create_client }
246
+
247
+ context 'with sys sent' do
248
+ it 'properly creates an entry' do
249
+ vcr('entry/select_only_sys') {
250
+ entry = client.entries(select: ['sys'], 'sys.id' => 'nyancat').first
251
+ expect(entry.fields).to be_empty
252
+ expect(entry.entry?).to be_truthy
253
+ }
254
+ end
255
+
256
+ describe 'can contain only one field' do
257
+ context 'with content_type sent' do
258
+ it 'will properly create the entry with one field' do
259
+ vcr('entry/select_one_field_proper') {
260
+ entry = client.entries(content_type: 'cat', select: ['sys', 'fields.name'], 'sys.id' => 'nyancat').first
261
+ expect(entry.fields).not_to be_empty
262
+ expect(entry.entry?).to be_truthy
263
+ expect(entry.fields[:name]).to eq 'Nyan Cat'
264
+ expect(entry.fields).to eq({name: 'Nyan Cat'})
265
+ }
266
+ end
267
+ end
268
+
269
+ context 'without content_type sent' do
270
+ it 'will raise an error' do
271
+ vcr('entry/select_one_field') {
272
+ expect { client.entries(select: ['sys', 'fields.name'], 'sys.id' => 'nyancat') }.to raise_error Contentful::BadRequest
273
+ }
274
+ end
275
+ end
276
+ end
277
+ end
278
+
279
+ context 'without sys sent' do
280
+ it 'will enforce sys anyway' do
281
+ vcr('entry/select_no_sys') {
282
+ entry = client.entries(select: ['fields'], 'sys.id' => 'nyancat').first
283
+
284
+ expect(entry.id).to eq 'nyancat'
285
+ expect(entry.sys).not_to be_empty
286
+ }
287
+ end
288
+
289
+ it 'works with empty array as well, as sys is enforced' do
290
+ vcr('entry/select_empty_array') {
291
+ entry = client.entries(select: [], 'sys.id' => 'nyancat').first
292
+
293
+ expect(entry.id).to eq 'nyancat'
294
+ expect(entry.sys).not_to be_empty
295
+ }
296
+ end
297
+ end
298
+ end
243
299
  end
@@ -0,0 +1,104 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/assets?select=sys&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Etag:
42
+ - '"87f134c2b4adb7ec01f63ac1d3b15dd8"'
43
+ Server:
44
+ - Contentful
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ - nosniff
48
+ X-Contentful-Request-Id:
49
+ - d64c3a9dd291011cd26ee2f99f2aa0d9
50
+ Content-Length:
51
+ - '487'
52
+ Accept-Ranges:
53
+ - bytes
54
+ Date:
55
+ - Tue, 11 Oct 2016 21:52:07 GMT
56
+ Via:
57
+ - 1.1 varnish
58
+ Age:
59
+ - '0'
60
+ Connection:
61
+ - close
62
+ X-Served-By:
63
+ - cache-jfk8126-JFK
64
+ X-Cache:
65
+ - MISS
66
+ X-Cache-Hits:
67
+ - '0'
68
+ X-Timer:
69
+ - S1476222727.316651,VS0,VE51
70
+ Vary:
71
+ - Accept-Encoding
72
+ body:
73
+ encoding: ASCII-8BIT
74
+ string: |
75
+ {
76
+ "sys": {
77
+ "type": "Array"
78
+ },
79
+ "total": 1,
80
+ "skip": 0,
81
+ "limit": 100,
82
+ "items": [
83
+ {
84
+ "sys": {
85
+ "space": {
86
+ "sys": {
87
+ "type": "Link",
88
+ "linkType": "Space",
89
+ "id": "cfexampleapi"
90
+ }
91
+ },
92
+ "id": "nyancat",
93
+ "type": "Asset",
94
+ "createdAt": "2013-09-02T14:56:34.240Z",
95
+ "updatedAt": "2013-09-02T14:56:34.240Z",
96
+ "revision": 1,
97
+ "locale": "en-US"
98
+ }
99
+ }
100
+ ]
101
+ }
102
+ http_version:
103
+ recorded_at: Tue, 11 Oct 2016 21:52:06 GMT
104
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,119 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/assets?select=fields,sys&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Etag:
42
+ - '"0cab5fc96bce67132a639cad150f071d"'
43
+ Server:
44
+ - Contentful
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ - nosniff
48
+ X-Contentful-Request-Id:
49
+ - f55b5b2f93cef644633d281119afb30a
50
+ Content-Length:
51
+ - '952'
52
+ Accept-Ranges:
53
+ - bytes
54
+ Date:
55
+ - Tue, 11 Oct 2016 21:52:06 GMT
56
+ Via:
57
+ - 1.1 varnish
58
+ Age:
59
+ - '0'
60
+ Connection:
61
+ - close
62
+ X-Served-By:
63
+ - cache-jfk8123-JFK
64
+ X-Cache:
65
+ - MISS
66
+ X-Cache-Hits:
67
+ - '0'
68
+ X-Timer:
69
+ - S1476222726.601311,VS0,VE32
70
+ Vary:
71
+ - Accept-Encoding
72
+ body:
73
+ encoding: ASCII-8BIT
74
+ string: |
75
+ {
76
+ "sys": {
77
+ "type": "Array"
78
+ },
79
+ "total": 1,
80
+ "skip": 0,
81
+ "limit": 100,
82
+ "items": [
83
+ {
84
+ "fields": {
85
+ "title": "Nyan Cat",
86
+ "file": {
87
+ "url": "//images.contentful.com/cfexampleapi/4gp6taAwW4CmSgumq2ekUm/9da0cd1936871b8d72343e895a00d611/Nyan_cat_250px_frame.png",
88
+ "details": {
89
+ "size": 12273,
90
+ "image": {
91
+ "width": 250,
92
+ "height": 250
93
+ }
94
+ },
95
+ "fileName": "Nyan_cat_250px_frame.png",
96
+ "contentType": "image/png"
97
+ }
98
+ },
99
+ "sys": {
100
+ "space": {
101
+ "sys": {
102
+ "type": "Link",
103
+ "linkType": "Space",
104
+ "id": "cfexampleapi"
105
+ }
106
+ },
107
+ "id": "nyancat",
108
+ "type": "Asset",
109
+ "createdAt": "2013-09-02T14:56:34.240Z",
110
+ "updatedAt": "2013-09-02T14:56:34.240Z",
111
+ "revision": 1,
112
+ "locale": "en-US"
113
+ }
114
+ }
115
+ ]
116
+ }
117
+ http_version:
118
+ recorded_at: Tue, 11 Oct 2016 21:52:05 GMT
119
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,97 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/assets?select=sys,fields.file
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Encoding:
40
+ - gzip
41
+ Content-Type:
42
+ - application/vnd.contentful.delivery.v1+json
43
+ Etag:
44
+ - W/"085ac6af79cdb4d429d04216f7bb5006"
45
+ Server:
46
+ - Contentful
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ - nosniff
50
+ X-Contentful-Request-Id:
51
+ - d1b7413944dbed021a0834096ac1969e
52
+ Content-Length:
53
+ - '778'
54
+ Accept-Ranges:
55
+ - bytes
56
+ Date:
57
+ - Wed, 12 Oct 2016 01:06:40 GMT
58
+ Via:
59
+ - 1.1 varnish
60
+ Age:
61
+ - '0'
62
+ Connection:
63
+ - close
64
+ X-Served-By:
65
+ - cache-gru7126-GRU
66
+ X-Cache:
67
+ - MISS
68
+ X-Cache-Hits:
69
+ - '0'
70
+ X-Timer:
71
+ - S1476234399.815111,VS0,VE352
72
+ Vary:
73
+ - Accept-Encoding
74
+ body:
75
+ encoding: ASCII-8BIT
76
+ string: !binary |-
77
+ H4sIAAAAAAAAA+WWW2+bMBSA3/srKp4X8A2DeYv6UFVbu1UkatdpqhxsiBMg
78
+ LMCarOp/nyGhITRbuqyTqjVPHNvn7i/H90fHx0a+zA3v+F5/aqFYZlJLRn8+
79
+ 50tDrz28q84Us4LHep3UUj5VmRZALcQqUYWWIFjJqpBJZfBLbXBlVh8LlYzF
80
+ xlHtLFRx5aw5U6+V88qPYVkq4ZHMzWCWFjItwjLWn4kVhHLBkyyWPFMWXIBF
81
+ dl2SzD/1ycdy6i+vTofvrSCACLOAYtcmyJUhoiGBLoAM2Bi50LXELJLmJIuM
82
+ KoHmZwhZcBVvh1iHlKsfVZg2Qozgtoreq6Ps5FAr3SlRjCstd1WXjSO9OZYq
83
+ GldFI9gGrRh0uVtSXfrH8KpiXfCk7s7uBNalGqxbWIdmTTIZVX1c/Rrzj6a3
84
+ ul+dMfKMB92MnpyqTzZ35YNKp1ul1HuxXmsC8WuL3cKJKpF2OzdRtsvQKoKh
85
+ ap3dXW/Z31ziPJdFeyOYS15I0a9KbyAAcQ/CHqADwDxiexCYAICbtkKZia4C
86
+ 6kF3ALGHHA8Sk0FnS2Euv6tczVLtgG4yNuJZwOu7bsi0N/SbVFftWKf4T1HB
87
+ 5zef0snN4Cyf9s/OpmU5y0/y3MIu4sQVIUfBCNKAOFx/OSh0RgiPQsCsMc+y
88
+ ZcCLuwN4YQyzbtf34YKcDmFtWjBzDoDlNym8EWKaChzICGA9gAaQeDb1MDER
89
+ 3b7yTxlZK2iioIeIiSn8FSPoNTFCoowWvH93RU4SPyqTb0hOh4nFBAeBgAxT
90
+ 14EjVzgIEyxdZnMABIXQuljy9FYzcotskC1uw7n+lzaz9A/HC0RP7v7+6aI9
91
+ bhPWxkVvHoDL87LZSU6V8381alLdWd3YF+KG7JstXdA6Cq3ZAl8VN+O4kJf9
92
+ a99VPvh8cj6kl+dXkaUni3ARhYSEABIINEAkCEI7cBkUSAhrwqcHcIIAcTuX
93
+ fj8n68dp8wyqny+PjzBI4QGc7I7+bXBR5f5CUNBnQmF7CHmYmYTSvx8mut1f
94
+ jx6OfgL41JO2/wwAAA==
95
+ http_version:
96
+ recorded_at: Wed, 12 Oct 2016 01:06:40 GMT
97
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,88 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/assets?select=sys
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Encoding:
40
+ - gzip
41
+ Content-Type:
42
+ - application/vnd.contentful.delivery.v1+json
43
+ Etag:
44
+ - W/"ab5a0e424e4930d0e5a81480700cc930"
45
+ Server:
46
+ - Contentful
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ - nosniff
50
+ X-Contentful-Request-Id:
51
+ - 79b396f10bc2940719a0951035039f8f
52
+ Content-Length:
53
+ - '380'
54
+ Accept-Ranges:
55
+ - bytes
56
+ Date:
57
+ - Tue, 11 Oct 2016 21:52:05 GMT
58
+ Via:
59
+ - 1.1 varnish
60
+ Age:
61
+ - '0'
62
+ Connection:
63
+ - close
64
+ X-Served-By:
65
+ - cache-jfk8138-JFK
66
+ X-Cache:
67
+ - MISS
68
+ X-Cache-Hits:
69
+ - '0'
70
+ X-Timer:
71
+ - S1476222725.125826,VS0,VE30
72
+ Vary:
73
+ - Accept-Encoding
74
+ body:
75
+ encoding: ASCII-8BIT
76
+ string: !binary |-
77
+ H4sIAAAAAAAAA+VUPU/DMBDd+yuqzCSyHdcl3jp1AIkhqUAgBis1wiRNrdhF
78
+ jar+d2ynaZ0gVBAsqDf5Xe775W43Go8D1aiAjnfmaYBuJDcomNU1awKj219Z
79
+ G73WrDR67JAqhDQAOFCKldAGQdBiofnKBnxyAduwgywuk5Ist6k6i1bp1WIV
80
+ TtnVdCuqIrA5T2KyV0V2qDl1EQcGYmnbyV/4lq1kyZkUtqtO9se367OVoPWB
81
+ W7CVDxss03mK7zZF2tzPFzde/NOwlOLa/5DXnGm+nNm5BAjAOIQwBCQDCcUT
82
+ CkEEAHj0HTZyOXRAIbzOYEzRlEIcJXDac6j5u1BiXZkExKu8XOesdATyKlyk
83
+ Xattm4cW/zElr0zKJme9WR//2PMkgCQEKIOYTgiNcYRIf6afSTg4GMogRTiK
84
+ CfyKBHQ5JFQNq/6OA3xuEYakDRy8RYCXw8EbK/xL95NLNJwn+SYBE4oQjZMI
85
+ E/L7JTC39nm0H30AkgXzyoAGAAA=
86
+ http_version:
87
+ recorded_at: Tue, 11 Oct 2016 21:52:04 GMT
88
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?select=sys&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Etag:
42
+ - '"df5a0bca323bd8fb0e370f41cf07a148"'
43
+ Server:
44
+ - Contentful
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ - nosniff
48
+ X-Contentful-Request-Id:
49
+ - f8fa255397530ecd6c842426aeeea221
50
+ Content-Length:
51
+ - '645'
52
+ Accept-Ranges:
53
+ - bytes
54
+ Date:
55
+ - Tue, 11 Oct 2016 21:48:00 GMT
56
+ Via:
57
+ - 1.1 varnish
58
+ Age:
59
+ - '114'
60
+ Connection:
61
+ - close
62
+ X-Served-By:
63
+ - cache-jfk8120-JFK
64
+ X-Cache:
65
+ - HIT
66
+ X-Cache-Hits:
67
+ - '1'
68
+ X-Timer:
69
+ - S1476222480.429217,VS0,VE0
70
+ Vary:
71
+ - Accept-Encoding
72
+ body:
73
+ encoding: ASCII-8BIT
74
+ string: |
75
+ {
76
+ "sys": {
77
+ "type": "Array"
78
+ },
79
+ "total": 1,
80
+ "skip": 0,
81
+ "limit": 100,
82
+ "items": [
83
+ {
84
+ "sys": {
85
+ "space": {
86
+ "sys": {
87
+ "type": "Link",
88
+ "linkType": "Space",
89
+ "id": "cfexampleapi"
90
+ }
91
+ },
92
+ "id": "nyancat",
93
+ "type": "Entry",
94
+ "createdAt": "2013-06-27T22:46:19.513Z",
95
+ "updatedAt": "2013-09-04T09:19:39.027Z",
96
+ "revision": 5,
97
+ "contentType": {
98
+ "sys": {
99
+ "type": "Link",
100
+ "linkType": "ContentType",
101
+ "id": "cat"
102
+ }
103
+ },
104
+ "locale": "en-US"
105
+ }
106
+ }
107
+ ]
108
+ }
109
+ http_version:
110
+ recorded_at: Tue, 11 Oct 2016 21:47:59 GMT
111
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,102 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?select=fields,sys&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Encoding:
40
+ - gzip
41
+ Content-Type:
42
+ - application/vnd.contentful.delivery.v1+json
43
+ Etag:
44
+ - W/"3c46068783b671b134692b4f78a7fa2f"
45
+ Server:
46
+ - Contentful
47
+ X-Content-Type-Options:
48
+ - nosniff
49
+ - nosniff
50
+ X-Contentful-Request-Id:
51
+ - b324e9d019b4904cdb24b892102dad8d
52
+ Content-Length:
53
+ - '1022'
54
+ Accept-Ranges:
55
+ - bytes
56
+ Date:
57
+ - Tue, 11 Oct 2016 21:44:39 GMT
58
+ Via:
59
+ - 1.1 varnish
60
+ Age:
61
+ - '0'
62
+ Connection:
63
+ - close
64
+ X-Served-By:
65
+ - cache-jfk8139-JFK
66
+ X-Cache:
67
+ - MISS
68
+ X-Cache-Hits:
69
+ - '0'
70
+ X-Timer:
71
+ - S1476222279.159150,VS0,VE143
72
+ Vary:
73
+ - Accept-Encoding
74
+ body:
75
+ encoding: ASCII-8BIT
76
+ string: !binary |-
77
+ H4sIAAAAAAAAA+VX227bOBB9z1cEeu1a4kX3NyPYxQboFgvERYEURUBLtM1Y
78
+ klWJbuoW+feS1I2UZTdNvU8rGLYoc4YzZ85c9P3q+tqqD7UVX38Xt2LBDyUV
79
+ K2teVeRgiWfPf8g9fMdJJp5Dtaq3rBQLoBYZyxmXf4FmzTjNpcKPSmGjVmxb
80
+ MZqlw0HqsILk6rB3B1Jc3xBuSYXNJdRu6aCmfVgRVix3T7W2UamuN9LU5vqk
81
+ KUl22a6SJ7SC+gFLWvO/KkaLtPe+PUUHpLenA+YtK7bG8QqCYrtogfuz4NVh
82
+ vIHJM6wNKctDItzsbRXw9vcK6NaCJav4JhUBEFIIQDgDrvgsEIoBEJ836ttE
83
+ 64tCC2IcaHpYTtYS4S4KUr0R7192b17XVI+T0ti4V4gonvauda738sgMqy5J
84
+ cllj75TGAQ/N2GRFv5K8zCgp2c/jYTqoAdyxYhx1K6ko4TSdy8yQIcQz4M9Q
85
+ IEPo+jGMbA/iez2C+zIdC0Qy5iASu2Mc2QAFhkBFv7Ca7QpxgGdQvuC04C0d
86
+ Lxf4m92gdxrRlxA72yUkUzlPi9n7uw75Jgvkt8peixVJtk8Vo9u61ADcVZWh
87
+ rkzyeZJKkzsVI86k9ii5pwjV8/8UpfQkb+tpn3ajwqAD25s15pY48Dy7ELBh
88
+ AHWyCJFjfomyAsMF9GIvjAGyAQxHIhrDQsOyROOCWVwuAfJppg1Qm1w7h/AJ
89
+ xhmBmGpO4qyuPf0t6/aoPyliHHcoGZsNpd+W+2pNK72waG1Jbuoa01q2WQPc
90
+ k33pEtgec+l8AT+HrNmkAJ5BMEPhAuETTUpB1rYpw+OpLnUJZ6d6VU+hqWY8
91
+ 8nZozV3zUr9tJK1G/f+yJB0jO1WSRP9CC+jGnh9j10a+0b9EII5LEmhEvBjC
92
+ GLk29sdVTCtJyODQb6Q5Z7xpSSfyfMXU33orlcZXch62HEext7bbmrjaZ+I2
93
+ d/Rm4OB/7v8tHu8Xt/V2fnu73e939U1dOzhExA3TFUHJEvqJGxBxF6BVsER4
94
+ uQKR03H0yX4s1+M5JqWcsMycqJu+YtXsm7TYiyIcmb1a0n9iJmzlnljKN0IQ
95
+ BXgsJgQ3lK03cp7BUdCnRiM5TLFyrU2yqrpIAN+1o/5Zl8y+0ljqPJZ0fWJC
96
+ G8+UQ4iOpktZTybmy0uUmf9oKOjG6cmZ4FUJ6IKfzgRtAvY5eySiJaB6F+wu
97
+ 6xIJOPEe2NLn9/LPXZc+J/OnD+5Nfrfe558R3b7PnSglIElhhP0wgMswDRB2
98
+ MQ0jjwCQ+hA60p4H8UrzgDxQfn1YVYLEdlm8IhUhmsipF6Wip96qzWtIRWHY
99
+ q1Pxpd5NZqVEQTtZe401e6VYPV89X/0A9oLYTmkQAAA=
100
+ http_version:
101
+ recorded_at: Tue, 11 Oct 2016 21:44:38 GMT
102
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,76 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?select=sys,fields.name&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 400
25
+ message: Bad Request
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Server:
42
+ - Contentful
43
+ X-Contentful-Request-Id:
44
+ - 9c4cc23976ca91562c72e53c04fe70c3
45
+ Content-Length:
46
+ - '354'
47
+ Accept-Ranges:
48
+ - bytes
49
+ Date:
50
+ - Tue, 11 Oct 2016 21:48:16 GMT
51
+ Via:
52
+ - 1.1 varnish
53
+ Connection:
54
+ - close
55
+ X-Served-By:
56
+ - cache-jfk8122-JFK
57
+ X-Cache:
58
+ - MISS
59
+ X-Cache-Hits:
60
+ - '0'
61
+ X-Timer:
62
+ - S1476222496.116198,VS0,VE31
63
+ body:
64
+ encoding: ASCII-8BIT
65
+ string: |
66
+ {
67
+ "sys": {
68
+ "type": "Error",
69
+ "id": "BadRequest"
70
+ },
71
+ "message": "A Content Type ID is required. When querying for Entries and involving fields you need to limit your query to a specific Content Type. Please send a Content Type ID (not the name) as the URI query parameter \"content_type\"",
72
+ "requestId": "9c4cc23976ca91562c72e53c04fe70c3"
73
+ }
74
+ http_version:
75
+ recorded_at: Tue, 11 Oct 2016 21:48:15 GMT
76
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,114 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?content_type=cat&select=sys,fields.name&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Etag:
42
+ - '"5bceeb558eb6136686e5aae912e25903"'
43
+ Server:
44
+ - Contentful
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ - nosniff
48
+ X-Contentful-Request-Id:
49
+ - 309c7fd04e9f5a7a4518df8412b92c62
50
+ Content-Length:
51
+ - '699'
52
+ Accept-Ranges:
53
+ - bytes
54
+ Date:
55
+ - Tue, 11 Oct 2016 21:48:15 GMT
56
+ Via:
57
+ - 1.1 varnish
58
+ Age:
59
+ - '0'
60
+ Connection:
61
+ - close
62
+ X-Served-By:
63
+ - cache-jfk8140-JFK
64
+ X-Cache:
65
+ - MISS
66
+ X-Cache-Hits:
67
+ - '0'
68
+ X-Timer:
69
+ - S1476222495.442871,VS0,VE44
70
+ Vary:
71
+ - Accept-Encoding
72
+ body:
73
+ encoding: ASCII-8BIT
74
+ string: |
75
+ {
76
+ "sys": {
77
+ "type": "Array"
78
+ },
79
+ "total": 1,
80
+ "skip": 0,
81
+ "limit": 100,
82
+ "items": [
83
+ {
84
+ "fields": {
85
+ "name": "Nyan Cat"
86
+ },
87
+ "sys": {
88
+ "space": {
89
+ "sys": {
90
+ "type": "Link",
91
+ "linkType": "Space",
92
+ "id": "cfexampleapi"
93
+ }
94
+ },
95
+ "id": "nyancat",
96
+ "type": "Entry",
97
+ "createdAt": "2013-06-27T22:46:19.513Z",
98
+ "updatedAt": "2013-09-04T09:19:39.027Z",
99
+ "revision": 5,
100
+ "contentType": {
101
+ "sys": {
102
+ "type": "Link",
103
+ "linkType": "ContentType",
104
+ "id": "cat"
105
+ }
106
+ },
107
+ "locale": "en-US"
108
+ }
109
+ }
110
+ ]
111
+ }
112
+ http_version:
113
+ recorded_at: Tue, 11 Oct 2016 21:48:14 GMT
114
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,111 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://cdn.contentful.com/spaces/cfexampleapi/entries?select=sys&sys.id=nyancat
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - RubyContentfulGem/1.0.2
12
+ Authorization:
13
+ - Bearer b4c0n73n7fu1
14
+ Content-Type:
15
+ - application/vnd.contentful.delivery.v1+json
16
+ Accept-Encoding:
17
+ - gzip
18
+ Connection:
19
+ - close
20
+ Host:
21
+ - cdn.contentful.com
22
+ response:
23
+ status:
24
+ code: 200
25
+ message: OK
26
+ headers:
27
+ Access-Control-Allow-Headers:
28
+ - Accept,Accept-Language,Authorization,Cache-Control,Content-Length,Content-Range,Content-Type,DNT,Destination,Expires,If-Match,If-Modified-Since,If-None-Match,Keep-Alive,Last-Modified,Origin,Pragma,Range,User-Agent,X-Http-Method-Override,X-Mx-ReqToken,X-Requested-With,X-Contentful-Version,X-Contentful-Content-Type,X-Contentful-Organization,X-Contentful-Skip-Transformation,X-Contentful-User-Agent
29
+ Access-Control-Allow-Methods:
30
+ - GET,HEAD,OPTIONS
31
+ Access-Control-Allow-Origin:
32
+ - "*"
33
+ Access-Control-Expose-Headers:
34
+ - Etag
35
+ Access-Control-Max-Age:
36
+ - '86400'
37
+ Cache-Control:
38
+ - max-age=0
39
+ Content-Type:
40
+ - application/vnd.contentful.delivery.v1+json
41
+ Etag:
42
+ - '"df5a0bca323bd8fb0e370f41cf07a148"'
43
+ Server:
44
+ - Contentful
45
+ X-Content-Type-Options:
46
+ - nosniff
47
+ - nosniff
48
+ X-Contentful-Request-Id:
49
+ - f8fa255397530ecd6c842426aeeea221
50
+ Content-Length:
51
+ - '645'
52
+ Accept-Ranges:
53
+ - bytes
54
+ Date:
55
+ - Tue, 11 Oct 2016 21:47:59 GMT
56
+ Via:
57
+ - 1.1 varnish
58
+ Age:
59
+ - '113'
60
+ Connection:
61
+ - close
62
+ X-Served-By:
63
+ - cache-jfk8121-JFK
64
+ X-Cache:
65
+ - HIT
66
+ X-Cache-Hits:
67
+ - '1'
68
+ X-Timer:
69
+ - S1476222479.776857,VS0,VE0
70
+ Vary:
71
+ - Accept-Encoding
72
+ body:
73
+ encoding: ASCII-8BIT
74
+ string: |
75
+ {
76
+ "sys": {
77
+ "type": "Array"
78
+ },
79
+ "total": 1,
80
+ "skip": 0,
81
+ "limit": 100,
82
+ "items": [
83
+ {
84
+ "sys": {
85
+ "space": {
86
+ "sys": {
87
+ "type": "Link",
88
+ "linkType": "Space",
89
+ "id": "cfexampleapi"
90
+ }
91
+ },
92
+ "id": "nyancat",
93
+ "type": "Entry",
94
+ "createdAt": "2013-06-27T22:46:19.513Z",
95
+ "updatedAt": "2013-09-04T09:19:39.027Z",
96
+ "revision": 5,
97
+ "contentType": {
98
+ "sys": {
99
+ "type": "Link",
100
+ "linkType": "ContentType",
101
+ "id": "cat"
102
+ }
103
+ },
104
+ "locale": "en-US"
105
+ }
106
+ }
107
+ ]
108
+ }
109
+ http_version:
110
+ recorded_at: Tue, 11 Oct 2016 21:47:59 GMT
111
+ recorded_with: VCR 3.0.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Contentful GmbH (Jan Lelis)
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-05 00:00:00.000000000 Z
13
+ date: 2016-10-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http
@@ -278,6 +278,7 @@ files:
278
278
  - doc/Contentful/Resource/CustomResource.html
279
279
  - doc/Contentful/Resource/Fields.html
280
280
  - doc/Contentful/Resource/Fields/ClassMethods.html
281
+ - doc/Contentful/Resource/LocalizedFields.html
281
282
  - doc/Contentful/Resource/SystemProperties.html
282
283
  - doc/Contentful/Resource/SystemProperties/ClassMethods.html
283
284
  - doc/Contentful/ResourceBuilder.html
@@ -370,6 +371,10 @@ files:
370
371
  - spec/fixtures/vcr_cassettes/array_page_1.yml
371
372
  - spec/fixtures/vcr_cassettes/array_page_2.yml
372
373
  - spec/fixtures/vcr_cassettes/asset.yml
374
+ - spec/fixtures/vcr_cassettes/asset/select_empty_array.yml
375
+ - spec/fixtures/vcr_cassettes/asset/select_no_sys.yml
376
+ - spec/fixtures/vcr_cassettes/asset/select_one_field.yml
377
+ - spec/fixtures/vcr_cassettes/asset/select_only_sys.yml
373
378
  - spec/fixtures/vcr_cassettes/bad_request.yml
374
379
  - spec/fixtures/vcr_cassettes/content_type.yml
375
380
  - spec/fixtures/vcr_cassettes/entries.yml
@@ -379,6 +384,11 @@ files:
379
384
  - spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
380
385
  - spec/fixtures/vcr_cassettes/entry/marshall.yml
381
386
  - spec/fixtures/vcr_cassettes/entry/raw.yml
387
+ - spec/fixtures/vcr_cassettes/entry/select_empty_array.yml
388
+ - spec/fixtures/vcr_cassettes/entry/select_no_sys.yml
389
+ - spec/fixtures/vcr_cassettes/entry/select_one_field.yml
390
+ - spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml
391
+ - spec/fixtures/vcr_cassettes/entry/select_only_sys.yml
382
392
  - spec/fixtures/vcr_cassettes/entry_cache.yml
383
393
  - spec/fixtures/vcr_cassettes/entry_locales.yml
384
394
  - spec/fixtures/vcr_cassettes/field.yml
@@ -468,6 +478,10 @@ test_files:
468
478
  - spec/fixtures/vcr_cassettes/array_page_1.yml
469
479
  - spec/fixtures/vcr_cassettes/array_page_2.yml
470
480
  - spec/fixtures/vcr_cassettes/asset.yml
481
+ - spec/fixtures/vcr_cassettes/asset/select_empty_array.yml
482
+ - spec/fixtures/vcr_cassettes/asset/select_no_sys.yml
483
+ - spec/fixtures/vcr_cassettes/asset/select_one_field.yml
484
+ - spec/fixtures/vcr_cassettes/asset/select_only_sys.yml
471
485
  - spec/fixtures/vcr_cassettes/bad_request.yml
472
486
  - spec/fixtures/vcr_cassettes/content_type.yml
473
487
  - spec/fixtures/vcr_cassettes/entries.yml
@@ -477,6 +491,11 @@ test_files:
477
491
  - spec/fixtures/vcr_cassettes/entry/json_objects_client.yml
478
492
  - spec/fixtures/vcr_cassettes/entry/marshall.yml
479
493
  - spec/fixtures/vcr_cassettes/entry/raw.yml
494
+ - spec/fixtures/vcr_cassettes/entry/select_empty_array.yml
495
+ - spec/fixtures/vcr_cassettes/entry/select_no_sys.yml
496
+ - spec/fixtures/vcr_cassettes/entry/select_one_field.yml
497
+ - spec/fixtures/vcr_cassettes/entry/select_one_field_proper.yml
498
+ - spec/fixtures/vcr_cassettes/entry/select_only_sys.yml
480
499
  - spec/fixtures/vcr_cassettes/entry_cache.yml
481
500
  - spec/fixtures/vcr_cassettes/entry_locales.yml
482
501
  - spec/fixtures/vcr_cassettes/field.yml