contentful-management 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +12 -29
- data/.rubocop_todo.yml +24 -0
- data/.travis.yml +1 -1
- data/.yardopts +4 -0
- data/CHANGELOG.md +12 -0
- data/Gemfile +1 -0
- data/Guardfile +39 -34
- data/README.md +42 -1
- data/Rakefile +2 -0
- data/contentful-management.gemspec +2 -1
- data/lib/contentful/management/api_key.rb +65 -0
- data/lib/contentful/management/array.rb +3 -2
- data/lib/contentful/management/asset.rb +124 -58
- data/lib/contentful/management/client.rb +60 -19
- data/lib/contentful/management/content_type.rb +104 -49
- data/lib/contentful/management/content_type_entry_methods_factory.rb +21 -0
- data/lib/contentful/management/dynamic_entry.rb +22 -18
- data/lib/contentful/management/entry.rb +138 -80
- data/lib/contentful/management/error.rb +23 -23
- data/lib/contentful/management/field.rb +16 -13
- data/lib/contentful/management/http_client.rb +29 -0
- data/lib/contentful/management/link.rb +3 -3
- data/lib/contentful/management/locale.rb +55 -26
- data/lib/contentful/management/location.rb +1 -1
- data/lib/contentful/management/request.rb +11 -12
- data/lib/contentful/management/resource.rb +27 -12
- data/lib/contentful/management/resource/array_like.rb +1 -1
- data/lib/contentful/management/resource/asset_fields.rb +1 -0
- data/lib/contentful/management/resource/entry_fields.rb +2 -0
- data/lib/contentful/management/resource/field_aware.rb +16 -5
- data/lib/contentful/management/resource/fields.rb +16 -8
- data/lib/contentful/management/resource/refresher.rb +1 -0
- data/lib/contentful/management/resource/system_properties.rb +13 -6
- data/lib/contentful/management/resource_builder.rb +43 -40
- data/lib/contentful/management/space.rb +67 -28
- data/lib/contentful/management/space_api_key_methods_factory.rb +15 -0
- data/lib/contentful/management/space_asset_methods_factory.rb +4 -0
- data/lib/contentful/management/space_association_all_published_method_factory.rb +11 -0
- data/lib/contentful/management/space_association_methods_factory.rb +4 -2
- data/lib/contentful/management/space_content_type_methods_factory.rb +4 -0
- data/lib/contentful/management/space_entry_methods_factory.rb +4 -0
- data/lib/contentful/management/space_locale_methods_factory.rb +2 -0
- data/lib/contentful/management/space_webhook_methods_factory.rb +2 -0
- data/lib/contentful/management/validation.rb +3 -2
- data/lib/contentful/management/version.rb +4 -1
- data/lib/contentful/management/webhook.rb +42 -21
- data/spec/fixtures/vcr_cassettes/api_key/all_for_space.yml +194 -0
- data/spec/fixtures/vcr_cassettes/api_key/create_for_space.yml +113 -0
- data/spec/fixtures/vcr_cassettes/api_key/find.yml +113 -0
- data/spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml +71 -0
- data/spec/fixtures/vcr_cassettes/asset/all_public.yml +112 -0
- data/spec/fixtures/vcr_cassettes/content_type/all_public.yml +106 -0
- data/spec/fixtures/vcr_cassettes/entry/all_public.yml +102 -0
- data/spec/fixtures/vcr_cassettes/locale/destroy.yml +330 -0
- data/spec/fixtures/vcr_cassettes/locale/update_both.yml +306 -0
- data/spec/fixtures/vcr_cassettes/locale/update_code.yml +306 -0
- data/spec/fixtures/vcr_cassettes/locale/update_name.yml +306 -0
- data/spec/fixtures/vcr_cassettes/space/api_key/all.yml +410 -0
- data/spec/fixtures/vcr_cassettes/space/api_key/create.yml +329 -0
- data/spec/fixtures/vcr_cassettes/space/api_key/find.yml +329 -0
- data/spec/fixtures/vcr_cassettes/space/asset/all_public.yml +328 -0
- data/spec/fixtures/vcr_cassettes/space/content_type/all_public.yml +322 -0
- data/spec/fixtures/vcr_cassettes/space/entry/all_public.yml +318 -0
- data/spec/lib/contentful/management/api_key_spec.rb +55 -0
- data/spec/lib/contentful/management/asset_spec.rb +10 -0
- data/spec/lib/contentful/management/content_type_spec.rb +10 -0
- data/spec/lib/contentful/management/entry_spec.rb +10 -0
- data/spec/lib/contentful/management/locale_spec.rb +58 -0
- data/spec/lib/contentful/management/space_spec.rb +53 -0
- metadata +58 -9
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contentful/management/space'
|
3
|
+
require 'contentful/management/client'
|
4
|
+
|
5
|
+
module Contentful
|
6
|
+
module Management
|
7
|
+
describe ApiKey do
|
8
|
+
let(:token) { '<ACCESS_TOKEN>' }
|
9
|
+
let(:space_id) { 'bjwq7b86vgmm' }
|
10
|
+
let(:api_key_id) { '6vbW35TjBTc8FyRTAuXZZe' }
|
11
|
+
|
12
|
+
let!(:client) { Client.new(token) }
|
13
|
+
|
14
|
+
subject { Contentful::Management::ApiKey }
|
15
|
+
|
16
|
+
describe '.all' do
|
17
|
+
it 'returns a Contentful::Array' do
|
18
|
+
vcr('api_key/all_for_space') { expect(subject.all(space_id)).to be_kind_of Contentful::Management::Array }
|
19
|
+
end
|
20
|
+
it 'builds a Contentful::Management::ApiKey object' do
|
21
|
+
vcr('api_key/all_for_space') { expect(subject.all(space_id).first).to be_kind_of Contentful::Management::ApiKey }
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
describe '.find' do
|
26
|
+
it 'returns a Contentful::Management::ApiKey' do
|
27
|
+
vcr('api_key/find') { expect(subject.find(space_id, api_key_id)).to be_kind_of Contentful::Management::ApiKey }
|
28
|
+
end
|
29
|
+
it 'returns the api_key for a given key' do
|
30
|
+
vcr('api_key/find') do
|
31
|
+
api_key = subject.find(space_id, api_key_id)
|
32
|
+
expect(api_key.id).to eql api_key_id
|
33
|
+
expect(api_key.access_token).to eql '833ea085204398499ea424c8ad832f1ae1cac4d64e2cc56db774aff87ef20b33'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
it 'returns an error when api_key does not exists' do
|
37
|
+
vcr('api_key/find_for_space_not_found') do
|
38
|
+
result = subject.find(space_id, 'not_exist')
|
39
|
+
expect(result).to be_kind_of Contentful::Management::NotFound
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe '.create' do
|
45
|
+
it 'create api_keys for space' do
|
46
|
+
vcr('api_key/create_for_space') do
|
47
|
+
api_key = subject.create(space_id, name: 'testLocalCreate', description: 'bg')
|
48
|
+
expect(api_key.name).to eql 'testLocalCreate'
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
@@ -33,6 +33,16 @@ module Contentful
|
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
36
|
+
describe '.all_published' do
|
37
|
+
let!(:space_id) { 'bjwq7b86vgmm' }
|
38
|
+
it 'returns a Contentful::Array' do
|
39
|
+
vcr('asset/all_public') { expect(subject.all_published(space_id)).to be_kind_of Contentful::Management::Array }
|
40
|
+
end
|
41
|
+
it 'builds a Contentful::Management::Asset object' do
|
42
|
+
vcr('asset/all_public') { expect(subject.all_published(space_id).first).to be_kind_of Contentful::Management::Asset }
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
36
46
|
describe '#find' do
|
37
47
|
it 'returns a Contentful::Management::Asset' do
|
38
48
|
vcr('asset/find') { expect(subject.find(space_id, asset_id)).to be_kind_of Contentful::Management::Asset }
|
@@ -21,6 +21,16 @@ module Contentful
|
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
|
+
describe '.all_published' do
|
25
|
+
let!(:space_id) { 'bjwq7b86vgmm' }
|
26
|
+
it 'returns a Contentful::Array' do
|
27
|
+
vcr('content_type/all_public') { expect(subject.all_published(space_id)).to be_kind_of Contentful::Management::Array }
|
28
|
+
end
|
29
|
+
it 'builds a Contentful::Management::ContentType object' do
|
30
|
+
vcr('content_type/all_public') { expect(subject.all_published(space_id).first).to be_kind_of Contentful::Management::ContentType }
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
24
34
|
describe '#find' do
|
25
35
|
it 'returns a Contentful::Management::ContentType' do
|
26
36
|
vcr('content_type/find') { expect(subject.find(space_id, content_type_id)).to be_kind_of Contentful::Management::ContentType }
|
@@ -39,6 +39,16 @@ module Contentful
|
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
|
+
describe '.all_published' do
|
43
|
+
let!(:space_id) { 'bjwq7b86vgmm' }
|
44
|
+
it 'returns a Contentful::Array' do
|
45
|
+
vcr('entry/all_public') { expect(subject.all_published(space_id)).to be_kind_of Contentful::Management::Array }
|
46
|
+
end
|
47
|
+
it 'builds a Contentful::Management::Entry object' do
|
48
|
+
vcr('entry/all_public') { expect(subject.all_published(space_id).first).to be_kind_of Contentful::Management::Entry }
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
42
52
|
describe '#find' do
|
43
53
|
it 'returns null as nil on empty Symbols' do
|
44
54
|
vcr('entry/find-with-null-symbols') do
|
@@ -76,6 +76,64 @@ module Contentful
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
end
|
79
|
+
|
80
|
+
describe '#update' do
|
81
|
+
let!(:space_id) { 'bjwq7b86vgmm' }
|
82
|
+
let!(:locale_id) { '63274yOrU0s4XiJlAp1ZMQ' }
|
83
|
+
it 'can update the locale name' do
|
84
|
+
vcr('locale/update_name') do
|
85
|
+
locale = subject.find(space_id, locale_id)
|
86
|
+
locale.update(name: 'Something')
|
87
|
+
|
88
|
+
locale.reload
|
89
|
+
|
90
|
+
expect(locale.name).to eq 'Something'
|
91
|
+
expect(locale.code).to eq 'en-US'
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
it 'can update the locale code' do
|
96
|
+
vcr('locale/update_code') do
|
97
|
+
locale = subject.find(space_id, locale_id)
|
98
|
+
locale.update(code: 'es')
|
99
|
+
|
100
|
+
locale.reload
|
101
|
+
|
102
|
+
expect(locale.name).to eq 'U. S. English'
|
103
|
+
expect(locale.code).to eq 'es'
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
it 'can update both' do
|
108
|
+
vcr('locale/update_both') do
|
109
|
+
locale = subject.find(space_id, locale_id)
|
110
|
+
locale.update(name: 'Spanish', code: 'es')
|
111
|
+
|
112
|
+
locale.reload
|
113
|
+
|
114
|
+
expect(locale.name).to eq 'Spanish'
|
115
|
+
expect(locale.code).to eq 'es'
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe '#destroy' do
|
120
|
+
let!(:space_id) { 'bjwq7b86vgmm' }
|
121
|
+
let!(:locale_id) { '63274yOrU0s4XiJlAp1ZMQ' }
|
122
|
+
it 'can destroy locales' do
|
123
|
+
vcr('locale/destroy') do
|
124
|
+
locale = subject.create(space_id, name: 'Spanish (Argentina)', code: 'es-AR')
|
125
|
+
|
126
|
+
expect(subject.find(space_id, locale.id).code).to eq 'es-AR'
|
127
|
+
|
128
|
+
locale.destroy
|
129
|
+
|
130
|
+
error = subject.find(space_id, locale.id)
|
131
|
+
|
132
|
+
expect(error).to be_a Contentful::Management::NotFound
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
79
137
|
end
|
80
138
|
end
|
81
139
|
end
|
@@ -150,6 +150,42 @@ module Contentful
|
|
150
150
|
expect(content_types).to be_kind_of Contentful::Management::Array
|
151
151
|
end
|
152
152
|
end
|
153
|
+
|
154
|
+
it '.content_types.all_published' do
|
155
|
+
space_id = 'bjwq7b86vgmm'
|
156
|
+
vcr('space/content_type/all_public') do
|
157
|
+
content_types = subject.find(space_id).content_types.all_published
|
158
|
+
expect(content_types).to be_kind_of Contentful::Management::Array
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
|
163
|
+
describe '#api_keys' do
|
164
|
+
let!(:space_id) { 'bjwq7b86vgmm' }
|
165
|
+
let(:api_key_id) { '6vbW35TjBTc8FyRTAuXZZe' }
|
166
|
+
let(:api_key_name) { 'ApiKeyForSpace' }
|
167
|
+
|
168
|
+
it '#api_keys.create' do
|
169
|
+
vcr('space/api_key/create') do
|
170
|
+
api_key = subject.find(space_id).api_keys.create(name: api_key_name)
|
171
|
+
expect(api_key).to be_kind_of Contentful::Management::ApiKey
|
172
|
+
expect(api_key.name).to eq api_key_name
|
173
|
+
end
|
174
|
+
end
|
175
|
+
it '#api_keys.find' do
|
176
|
+
vcr('space/api_key/find') do
|
177
|
+
api_key = subject.find(space_id).api_keys.find(api_key_id)
|
178
|
+
expect(api_key).to be_kind_of Contentful::Management::ApiKey
|
179
|
+
expect(api_key.name).to eq 'testKey'
|
180
|
+
expect(api_key.access_token).to eq '833ea085204398499ea424c8ad832f1ae1cac4d64e2cc56db774aff87ef20b33'
|
181
|
+
end
|
182
|
+
end
|
183
|
+
it '#api_keys.all' do
|
184
|
+
vcr('space/api_key/all') do
|
185
|
+
api_keys = subject.find(space_id).api_keys.all
|
186
|
+
expect(api_keys).to be_kind_of Contentful::Management::Array
|
187
|
+
end
|
188
|
+
end
|
153
189
|
end
|
154
190
|
|
155
191
|
describe '#default_locale' do
|
@@ -273,6 +309,14 @@ module Contentful
|
|
273
309
|
end
|
274
310
|
end
|
275
311
|
|
312
|
+
it '#assets.all_published' do
|
313
|
+
space_id = 'bjwq7b86vgmm'
|
314
|
+
vcr('space/asset/all_public') do
|
315
|
+
assets = subject.find(space_id).assets.all_published
|
316
|
+
expect(assets).to be_kind_of Contentful::Management::Array
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
276
320
|
it 'create asset for space' do
|
277
321
|
vcr('space/asset/create') do
|
278
322
|
file = Contentful::Management::File.new
|
@@ -334,6 +378,15 @@ module Contentful
|
|
334
378
|
it 'builds a Contentful::Management::Entry object' do
|
335
379
|
vcr('space/entry/all') { expect(subject.find(space_id).entries.all.first).to be_kind_of Contentful::Management::Entry }
|
336
380
|
end
|
381
|
+
|
382
|
+
it '#entries.all_published' do
|
383
|
+
space_id = 'bjwq7b86vgmm'
|
384
|
+
vcr('space/entry/all_public') do
|
385
|
+
entries = subject.find(space_id).entries.all_published
|
386
|
+
expect(entries).to be_kind_of Contentful::Management::Array
|
387
|
+
end
|
388
|
+
end
|
389
|
+
|
337
390
|
it 'return entry for a given key' do
|
338
391
|
vcr('space/entry/find') do
|
339
392
|
result = subject.find(space_id).entries.find('4Rouux8SoUCKwkyCq2I0E0')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contentful-management
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Piotr Protas
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|
@@ -116,20 +116,28 @@ dependencies:
|
|
116
116
|
requirements:
|
117
117
|
- - "~>"
|
118
118
|
- !ruby/object:Gem::Version
|
119
|
-
version:
|
120
|
-
- - ">="
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version: 2.0.4
|
119
|
+
version: 2.2.1
|
123
120
|
type: :development
|
124
121
|
prerelease: false
|
125
122
|
version_requirements: !ruby/object:Gem::Requirement
|
126
123
|
requirements:
|
127
124
|
- - "~>"
|
128
125
|
- !ruby/object:Gem::Version
|
129
|
-
version:
|
130
|
-
|
126
|
+
version: 2.2.1
|
127
|
+
- !ruby/object:Gem::Dependency
|
128
|
+
name: unparser
|
129
|
+
requirement: !ruby/object:Gem::Requirement
|
130
|
+
requirements:
|
131
|
+
- - '='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: 0.2.4
|
134
|
+
type: :development
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
requirements:
|
138
|
+
- - '='
|
131
139
|
- !ruby/object:Gem::Version
|
132
|
-
version: 2.
|
140
|
+
version: 0.2.4
|
133
141
|
- !ruby/object:Gem::Dependency
|
134
142
|
name: vcr
|
135
143
|
requirement: !ruby/object:Gem::Requirement
|
@@ -178,7 +186,9 @@ files:
|
|
178
186
|
- ".reek"
|
179
187
|
- ".rspec"
|
180
188
|
- ".rubocop.yml"
|
189
|
+
- ".rubocop_todo.yml"
|
181
190
|
- ".travis.yml"
|
191
|
+
- ".yardopts"
|
182
192
|
- CHANGELOG.md
|
183
193
|
- Gemfile
|
184
194
|
- Guardfile
|
@@ -192,6 +202,7 @@ files:
|
|
192
202
|
- examples/content_types.rb
|
193
203
|
- examples/create_space.rb
|
194
204
|
- lib/contentful/management.rb
|
205
|
+
- lib/contentful/management/api_key.rb
|
195
206
|
- lib/contentful/management/array.rb
|
196
207
|
- lib/contentful/management/asset.rb
|
197
208
|
- lib/contentful/management/client.rb
|
@@ -218,7 +229,9 @@ files:
|
|
218
229
|
- lib/contentful/management/resource_builder.rb
|
219
230
|
- lib/contentful/management/response.rb
|
220
231
|
- lib/contentful/management/space.rb
|
232
|
+
- lib/contentful/management/space_api_key_methods_factory.rb
|
221
233
|
- lib/contentful/management/space_asset_methods_factory.rb
|
234
|
+
- lib/contentful/management/space_association_all_published_method_factory.rb
|
222
235
|
- lib/contentful/management/space_association_methods_factory.rb
|
223
236
|
- lib/contentful/management/space_content_type_methods_factory.rb
|
224
237
|
- lib/contentful/management/space_entry_methods_factory.rb
|
@@ -228,8 +241,13 @@ files:
|
|
228
241
|
- lib/contentful/management/validation.rb
|
229
242
|
- lib/contentful/management/version.rb
|
230
243
|
- lib/contentful/management/webhook.rb
|
244
|
+
- spec/fixtures/vcr_cassettes/api_key/all_for_space.yml
|
245
|
+
- spec/fixtures/vcr_cassettes/api_key/create_for_space.yml
|
246
|
+
- spec/fixtures/vcr_cassettes/api_key/find.yml
|
247
|
+
- spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
|
231
248
|
- spec/fixtures/vcr_cassettes/array_page_1.yml
|
232
249
|
- spec/fixtures/vcr_cassettes/asset/all.yml
|
250
|
+
- spec/fixtures/vcr_cassettes/asset/all_public.yml
|
233
251
|
- spec/fixtures/vcr_cassettes/asset/archive.yml
|
234
252
|
- spec/fixtures/vcr_cassettes/asset/archive_published.yml
|
235
253
|
- spec/fixtures/vcr_cassettes/asset/archived_false.yml
|
@@ -267,6 +285,7 @@ files:
|
|
267
285
|
- spec/fixtures/vcr_cassettes/content_type/activated_false.yml
|
268
286
|
- spec/fixtures/vcr_cassettes/content_type/activated_true.yml
|
269
287
|
- spec/fixtures/vcr_cassettes/content_type/all.yml
|
288
|
+
- spec/fixtures/vcr_cassettes/content_type/all_public.yml
|
270
289
|
- spec/fixtures/vcr_cassettes/content_type/create.yml
|
271
290
|
- spec/fixtures/vcr_cassettes/content_type/create_content_type_with_id.yml
|
272
291
|
- spec/fixtures/vcr_cassettes/content_type/create_with_Array_field.yml
|
@@ -326,6 +345,7 @@ files:
|
|
326
345
|
- spec/fixtures/vcr_cassettes/content_type/validation/regexp.yml
|
327
346
|
- spec/fixtures/vcr_cassettes/content_type/validation/size.yml
|
328
347
|
- spec/fixtures/vcr_cassettes/entry/all.yml
|
348
|
+
- spec/fixtures/vcr_cassettes/entry/all_public.yml
|
329
349
|
- spec/fixtures/vcr_cassettes/entry/archive.yml
|
330
350
|
- spec/fixtures/vcr_cassettes/entry/archive_published.yml
|
331
351
|
- spec/fixtures/vcr_cassettes/entry/archived_false.yml
|
@@ -396,19 +416,28 @@ files:
|
|
396
416
|
- spec/fixtures/vcr_cassettes/get_request.yml
|
397
417
|
- spec/fixtures/vcr_cassettes/locale/all_for_space.yml
|
398
418
|
- spec/fixtures/vcr_cassettes/locale/create_for_space.yml
|
419
|
+
- spec/fixtures/vcr_cassettes/locale/destroy.yml
|
399
420
|
- spec/fixtures/vcr_cassettes/locale/find.yml
|
400
421
|
- spec/fixtures/vcr_cassettes/locale/find_default.yml
|
401
422
|
- spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml
|
402
423
|
- spec/fixtures/vcr_cassettes/locale/find_not_default.yml
|
403
424
|
- spec/fixtures/vcr_cassettes/locale/reload.yml
|
425
|
+
- spec/fixtures/vcr_cassettes/locale/update_both.yml
|
426
|
+
- spec/fixtures/vcr_cassettes/locale/update_code.yml
|
427
|
+
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
404
428
|
- spec/fixtures/vcr_cassettes/space/all.yml
|
429
|
+
- spec/fixtures/vcr_cassettes/space/api_key/all.yml
|
430
|
+
- spec/fixtures/vcr_cassettes/space/api_key/create.yml
|
431
|
+
- spec/fixtures/vcr_cassettes/space/api_key/find.yml
|
405
432
|
- spec/fixtures/vcr_cassettes/space/asset/all.yml
|
433
|
+
- spec/fixtures/vcr_cassettes/space/asset/all_public.yml
|
406
434
|
- spec/fixtures/vcr_cassettes/space/asset/all_with_skip_and_limit.yml
|
407
435
|
- spec/fixtures/vcr_cassettes/space/asset/create.yml
|
408
436
|
- spec/fixtures/vcr_cassettes/space/asset/create_with_multiple_locales.yml
|
409
437
|
- spec/fixtures/vcr_cassettes/space/asset/find.yml
|
410
438
|
- spec/fixtures/vcr_cassettes/space/asset/with_skipped_and_limited_assets_next_page.yml
|
411
439
|
- spec/fixtures/vcr_cassettes/space/content_type/all.yml
|
440
|
+
- spec/fixtures/vcr_cassettes/space/content_type/all_public.yml
|
412
441
|
- spec/fixtures/vcr_cassettes/space/content_type/create.yml
|
413
442
|
- spec/fixtures/vcr_cassettes/space/content_type/find.yml
|
414
443
|
- spec/fixtures/vcr_cassettes/space/create.yml
|
@@ -419,6 +448,7 @@ files:
|
|
419
448
|
- spec/fixtures/vcr_cassettes/space/create_without_organization.yml
|
420
449
|
- spec/fixtures/vcr_cassettes/space/destory.yml
|
421
450
|
- spec/fixtures/vcr_cassettes/space/entry/all.yml
|
451
|
+
- spec/fixtures/vcr_cassettes/space/entry/all_public.yml
|
422
452
|
- spec/fixtures/vcr_cassettes/space/entry/content_type_entires.yml
|
423
453
|
- spec/fixtures/vcr_cassettes/space/entry/find.yml
|
424
454
|
- spec/fixtures/vcr_cassettes/space/entry/with_skipped_and_limited_entires_next_page.yml
|
@@ -447,6 +477,7 @@ files:
|
|
447
477
|
- spec/fixtures/vcr_cassettes/webhook/find.yml
|
448
478
|
- spec/fixtures/vcr_cassettes/webhook/find_not_found.yml
|
449
479
|
- spec/fixtures/vcr_cassettes/webhook/update.yml
|
480
|
+
- spec/lib/contentful/management/api_key_spec.rb
|
450
481
|
- spec/lib/contentful/management/array_spec.rb
|
451
482
|
- spec/lib/contentful/management/asset_spec.rb
|
452
483
|
- spec/lib/contentful/management/client_spec.rb
|
@@ -482,8 +513,13 @@ signing_key:
|
|
482
513
|
specification_version: 4
|
483
514
|
summary: contentful management api
|
484
515
|
test_files:
|
516
|
+
- spec/fixtures/vcr_cassettes/api_key/all_for_space.yml
|
517
|
+
- spec/fixtures/vcr_cassettes/api_key/create_for_space.yml
|
518
|
+
- spec/fixtures/vcr_cassettes/api_key/find.yml
|
519
|
+
- spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
|
485
520
|
- spec/fixtures/vcr_cassettes/array_page_1.yml
|
486
521
|
- spec/fixtures/vcr_cassettes/asset/all.yml
|
522
|
+
- spec/fixtures/vcr_cassettes/asset/all_public.yml
|
487
523
|
- spec/fixtures/vcr_cassettes/asset/archive.yml
|
488
524
|
- spec/fixtures/vcr_cassettes/asset/archive_published.yml
|
489
525
|
- spec/fixtures/vcr_cassettes/asset/archived_false.yml
|
@@ -521,6 +557,7 @@ test_files:
|
|
521
557
|
- spec/fixtures/vcr_cassettes/content_type/activated_false.yml
|
522
558
|
- spec/fixtures/vcr_cassettes/content_type/activated_true.yml
|
523
559
|
- spec/fixtures/vcr_cassettes/content_type/all.yml
|
560
|
+
- spec/fixtures/vcr_cassettes/content_type/all_public.yml
|
524
561
|
- spec/fixtures/vcr_cassettes/content_type/create.yml
|
525
562
|
- spec/fixtures/vcr_cassettes/content_type/create_content_type_with_id.yml
|
526
563
|
- spec/fixtures/vcr_cassettes/content_type/create_with_Array_field.yml
|
@@ -580,6 +617,7 @@ test_files:
|
|
580
617
|
- spec/fixtures/vcr_cassettes/content_type/validation/regexp.yml
|
581
618
|
- spec/fixtures/vcr_cassettes/content_type/validation/size.yml
|
582
619
|
- spec/fixtures/vcr_cassettes/entry/all.yml
|
620
|
+
- spec/fixtures/vcr_cassettes/entry/all_public.yml
|
583
621
|
- spec/fixtures/vcr_cassettes/entry/archive.yml
|
584
622
|
- spec/fixtures/vcr_cassettes/entry/archive_published.yml
|
585
623
|
- spec/fixtures/vcr_cassettes/entry/archived_false.yml
|
@@ -650,19 +688,28 @@ test_files:
|
|
650
688
|
- spec/fixtures/vcr_cassettes/get_request.yml
|
651
689
|
- spec/fixtures/vcr_cassettes/locale/all_for_space.yml
|
652
690
|
- spec/fixtures/vcr_cassettes/locale/create_for_space.yml
|
691
|
+
- spec/fixtures/vcr_cassettes/locale/destroy.yml
|
653
692
|
- spec/fixtures/vcr_cassettes/locale/find.yml
|
654
693
|
- spec/fixtures/vcr_cassettes/locale/find_default.yml
|
655
694
|
- spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml
|
656
695
|
- spec/fixtures/vcr_cassettes/locale/find_not_default.yml
|
657
696
|
- spec/fixtures/vcr_cassettes/locale/reload.yml
|
697
|
+
- spec/fixtures/vcr_cassettes/locale/update_both.yml
|
698
|
+
- spec/fixtures/vcr_cassettes/locale/update_code.yml
|
699
|
+
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
658
700
|
- spec/fixtures/vcr_cassettes/space/all.yml
|
701
|
+
- spec/fixtures/vcr_cassettes/space/api_key/all.yml
|
702
|
+
- spec/fixtures/vcr_cassettes/space/api_key/create.yml
|
703
|
+
- spec/fixtures/vcr_cassettes/space/api_key/find.yml
|
659
704
|
- spec/fixtures/vcr_cassettes/space/asset/all.yml
|
705
|
+
- spec/fixtures/vcr_cassettes/space/asset/all_public.yml
|
660
706
|
- spec/fixtures/vcr_cassettes/space/asset/all_with_skip_and_limit.yml
|
661
707
|
- spec/fixtures/vcr_cassettes/space/asset/create.yml
|
662
708
|
- spec/fixtures/vcr_cassettes/space/asset/create_with_multiple_locales.yml
|
663
709
|
- spec/fixtures/vcr_cassettes/space/asset/find.yml
|
664
710
|
- spec/fixtures/vcr_cassettes/space/asset/with_skipped_and_limited_assets_next_page.yml
|
665
711
|
- spec/fixtures/vcr_cassettes/space/content_type/all.yml
|
712
|
+
- spec/fixtures/vcr_cassettes/space/content_type/all_public.yml
|
666
713
|
- spec/fixtures/vcr_cassettes/space/content_type/create.yml
|
667
714
|
- spec/fixtures/vcr_cassettes/space/content_type/find.yml
|
668
715
|
- spec/fixtures/vcr_cassettes/space/create.yml
|
@@ -673,6 +720,7 @@ test_files:
|
|
673
720
|
- spec/fixtures/vcr_cassettes/space/create_without_organization.yml
|
674
721
|
- spec/fixtures/vcr_cassettes/space/destory.yml
|
675
722
|
- spec/fixtures/vcr_cassettes/space/entry/all.yml
|
723
|
+
- spec/fixtures/vcr_cassettes/space/entry/all_public.yml
|
676
724
|
- spec/fixtures/vcr_cassettes/space/entry/content_type_entires.yml
|
677
725
|
- spec/fixtures/vcr_cassettes/space/entry/find.yml
|
678
726
|
- spec/fixtures/vcr_cassettes/space/entry/with_skipped_and_limited_entires_next_page.yml
|
@@ -701,6 +749,7 @@ test_files:
|
|
701
749
|
- spec/fixtures/vcr_cassettes/webhook/find.yml
|
702
750
|
- spec/fixtures/vcr_cassettes/webhook/find_not_found.yml
|
703
751
|
- spec/fixtures/vcr_cassettes/webhook/update.yml
|
752
|
+
- spec/lib/contentful/management/api_key_spec.rb
|
704
753
|
- spec/lib/contentful/management/array_spec.rb
|
705
754
|
- spec/lib/contentful/management/asset_spec.rb
|
706
755
|
- spec/lib/contentful/management/client_spec.rb
|