contentful-management 0.0.1.pre → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. data/CHANGELOG.md +8 -0
  2. data/LICENSE.txt +17 -18
  3. data/README.md +10 -19
  4. data/examples/blog.rb +2 -0
  5. data/examples/create_space.rb +1 -1
  6. data/lib/contentful/management.rb +0 -8
  7. data/lib/contentful/management/asset.rb +41 -38
  8. data/lib/contentful/management/client.rb +8 -1
  9. data/lib/contentful/management/content_type.rb +44 -6
  10. data/lib/contentful/management/entry.rb +61 -29
  11. data/lib/contentful/management/field.rb +1 -1
  12. data/lib/contentful/management/file.rb +1 -0
  13. data/lib/contentful/management/link.rb +1 -1
  14. data/lib/contentful/management/locale.rb +24 -8
  15. data/lib/contentful/management/location.rb +1 -1
  16. data/lib/contentful/management/resource/asset_fields.rb +17 -0
  17. data/lib/contentful/management/resource/entry_fields.rb +13 -0
  18. data/lib/contentful/management/resource/fields.rb +1 -0
  19. data/lib/contentful/management/resource_builder.rb +0 -1
  20. data/lib/contentful/management/space.rb +38 -10
  21. data/lib/contentful/management/support.rb +3 -1
  22. data/lib/contentful/management/version.rb +1 -1
  23. data/spec/fixtures/vcr_cassettes/asset/publish_after_create.yml +268 -0
  24. data/spec/fixtures/vcr_cassettes/content_type/entry/all.yml +777 -0
  25. data/spec/fixtures/vcr_cassettes/entry/content_type_entires.yml +156 -0
  26. data/spec/fixtures/vcr_cassettes/entry/create_with_custom_id.yml +287 -0
  27. data/spec/fixtures/vcr_cassettes/space/{asset/assets.yml → entry/content_type_entires.yml} +369 -367
  28. data/spec/lib/contentful/management/asset_spec.rb +32 -23
  29. data/spec/lib/contentful/management/content_type_spec.rb +31 -6
  30. data/spec/lib/contentful/management/entry_spec.rb +21 -3
  31. data/spec/lib/contentful/management/space_spec.rb +26 -37
  32. metadata +22 -17
  33. data/spec/fixtures/vcr_cassettes/asset/image_url.yml +0 -133
  34. data/spec/fixtures/vcr_cassettes/space/content_type/content_types.yml +0 -341
  35. data/spec/fixtures/vcr_cassettes/space/entry/entries.yml +0 -498
  36. data/spec/fixtures/vcr_cassettes/space/locale/locales.yml +0 -480
@@ -9,7 +9,6 @@ module Contentful
9
9
  describe Asset do
10
10
  let(:token) { '<ACCESS_TOKEN>' }
11
11
  let(:space_id) { 'yr5m0jky5hsh' }
12
-
13
12
  let(:asset_id) { '3PYa73pXXiAmKqm8eu4qOS' }
14
13
  let(:asset_id_2) { '5FDqplZoruAUGmiSa02asE' }
15
14
 
@@ -81,6 +80,24 @@ module Contentful
81
80
  end
82
81
 
83
82
  describe '#publish' do
83
+ it 'returns Contentful::Management::Asset' do
84
+ vcr('asset/publish_after_create') do
85
+ file1 = Contentful::Management::File.new
86
+ file1.properties[:contentType] = 'image/jpeg'
87
+ file1.properties[:fileName] = 'pic1.jpg'
88
+ file1.properties[:upload] = 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg'
89
+
90
+ asset = Contentful::Management::Asset.create(space_id,
91
+ title: 'titlebyCreateAPI',
92
+ description: 'descByAPI',
93
+ file: file1)
94
+ expect(asset).to be_kind_of Contentful::Management::Asset
95
+ asset.publish
96
+ expect(asset.published?).to be_truthy
97
+ end
98
+ end
99
+
100
+
84
101
  it 'returns Contentful::Management::Asset' do
85
102
  vcr('asset/publish') do
86
103
  asset = subject.find(space_id, asset_id_2)
@@ -201,13 +218,15 @@ module Contentful
201
218
  describe '.create' do
202
219
  it 'creates asset ' do
203
220
  vcr('asset/create') do
204
-
205
221
  file1 = Contentful::Management::File.new
206
222
  file1.properties[:contentType] = 'image/jpeg'
207
223
  file1.properties[:fileName] = 'pic1.jpg'
208
224
  file1.properties[:upload] = 'https://upload.wikimedia.org/wikipedia/commons/c/c7/Gasometer_Berlin_Sch%C3%B6neberg_2011.jpg'
209
225
 
210
- asset = Contentful::Management::Asset.create(space_id, title: 'titlebyCreateAPI', description: 'descByAPI', file: file1)
226
+ asset = Contentful::Management::Asset.create(space_id,
227
+ title: 'titlebyCreateAPI',
228
+ description: 'descByAPI',
229
+ file: file1)
211
230
  expect(asset).to be_kind_of Contentful::Management::Asset
212
231
  expect(asset.title).to eq 'titlebyCreateAPI'
213
232
  expect(asset.description).to eq 'descByAPI'
@@ -217,12 +236,15 @@ module Contentful
217
236
  it 'creates asset with custom ID' do
218
237
  vcr('asset/create_with_custom_id') do
219
238
  file = Contentful::Management::File.new
220
-
221
239
  file.properties[:contentType] = 'image/jpeg'
222
240
  file.properties[:fileName] = 'codequest.jpg'
223
241
  file.properties[:upload] = 'http://static.goldenline.pl/firm_logo/082/firm_225106_22f37f_small.jpg'
224
242
 
225
- asset = Contentful::Management::Asset.create(space_id, id: 'codequest_id_test_custom', title: 'titlebyCreateAPI_custom_id', description: 'descByAPI_custom_id', file: file)
243
+ asset = Contentful::Management::Asset.create(space_id,
244
+ id: 'codequest_id_test_custom',
245
+ title: 'titlebyCreateAPI_custom_id',
246
+ description: 'descByAPI_custom_id',
247
+ file: file)
226
248
  expect(asset).to be_kind_of Contentful::Management::Asset
227
249
  expect(asset.id).to eq 'codequest_id_test_custom'
228
250
  expect(asset.title).to eq 'titlebyCreateAPI_custom_id'
@@ -237,7 +259,11 @@ module Contentful
237
259
  file.properties[:fileName] = 'codequest.jpg'
238
260
  file.properties[:upload] = 'http://static.goldenline.pl/firm_logo/082/firm_225106_22f37f_small.jpg'
239
261
 
240
- asset = Contentful::Management::Asset.create(space_id, id: 'codequest_id_test_custom_id', title: 'titlebyCreateAPI_custom_id', description: 'descByAPI_custom_id', file: file)
262
+ asset = Contentful::Management::Asset.create(space_id,
263
+ id: 'codequest_id_test_custom_id',
264
+ title: 'titlebyCreateAPI_custom_id',
265
+ description: 'descByAPI_custom_id',
266
+ file: file)
241
267
  expect(asset).to be_kind_of Contentful::Management::BadRequest
242
268
  end
243
269
  end
@@ -299,23 +325,6 @@ module Contentful
299
325
  end
300
326
  end
301
327
  end
302
- describe '#image_url' do
303
- it 'empty_query' do
304
- vcr('asset/image_url') do
305
- asset = Contentful::Management::Asset.find(space_id, '35Kt2tInIsoauo8sC82q04')
306
- asset.image_url
307
- expect(asset).to be_kind_of Contentful::Management::Asset
308
- end
309
- end
310
- it 'with_params' do
311
- vcr('asset/image_url') do
312
- asset = Contentful::Management::Asset.find(space_id, '35Kt2tInIsoauo8sC82q04')
313
- asset.image_url(w: 111, h: 11)
314
- expect(asset).to be_kind_of Contentful::Management::Asset
315
- end
316
- end
317
- end
318
-
319
328
  end
320
329
  end
321
330
  end
@@ -149,7 +149,8 @@ module Contentful
149
149
  it 'creates a content_type within a space with custom id and without fields' do
150
150
  vcr('content_type/create_content_type_with_id') do
151
151
  content_type_id = 'custom_id'
152
- content_type = Contentful::Management::ContentType.create(space_id, { name: content_type_name, id: content_type_id })
152
+ content_type = Contentful::Management::ContentType.create(space_id, { name: content_type_name,
153
+ id: content_type_id })
153
154
  expect(content_type).to be_kind_of Contentful::Management::ContentType
154
155
  expect(content_type.name).to eq content_type_name
155
156
  expect(content_type.id).to eq content_type_id
@@ -164,7 +165,9 @@ module Contentful
164
165
  field.name = "My #{ field_type } Field"
165
166
  field.type = field_type
166
167
  field.link_type = 'Entry' if field_type == 'Link'
167
- content_type = Contentful::Management::ContentType.create(space_id, name: "#{ field_type }", description: "Content type with #{ field_type } field", fields: [field])
168
+ content_type = Contentful::Management::ContentType.create(space_id, name: "#{ field_type }",
169
+ description: "Content type with #{ field_type } field",
170
+ fields: [field])
168
171
  expect(content_type).to be_kind_of Contentful::Management::ContentType
169
172
  expect(content_type.name).to eq "#{ field_type }"
170
173
  expect(content_type.description).to eq "Content type with #{ field_type } field"
@@ -291,7 +294,11 @@ module Contentful
291
294
  it 'creates new Link field with additional parameters' do
292
295
  vcr('content_type/fields/create_with_params') do
293
296
  content_type = subject.find(space_id, 'qw3F2rn3FeoOiceqAiCSC')
294
- content_type.fields.create(id: 'blog_avatar', name: 'Blog avatar', type: 'Link', link_type: 'Asset', localized: true, required: true)
297
+ content_type.fields.create(id: 'blog_avatar', name: 'Blog avatar',
298
+ type: 'Link',
299
+ link_type: 'Asset',
300
+ localized: true,
301
+ required: true)
295
302
  expect(content_type.fields.size).to eq 2
296
303
  field = content_type.fields.last
297
304
  expect(field.name).to eq 'Blog avatar'
@@ -367,7 +374,9 @@ module Contentful
367
374
  vcr('content_type/entry/create_with_entries') do
368
375
  entry_en = Entry.find(space_id, 'Qa8TW5nPWgiU4MA6AGYgq')
369
376
  content_type = subject.find(space_id, '6xzrdCr33OMAeIYUgs6UKi')
370
- entry = content_type.entries.create(blog_name: 'Piotrek', blog_entry: entry_en, blog_entries: [entry_en, entry_en, entry_en])
377
+ entry = content_type.entries.create(blog_name: 'Piotrek',
378
+ blog_entry: entry_en,
379
+ blog_entries: [entry_en, entry_en, entry_en])
371
380
  expect(entry).to be_kind_of Contentful::Management::Entry
372
381
  expect(entry.blog_name).to eq 'Piotrek'
373
382
  expect(entry.fields[:blog_entry]['sys']['id']).to eq 'Qa8TW5nPWgiU4MA6AGYgq'
@@ -416,7 +425,7 @@ module Contentful
416
425
  it 'with entries' do
417
426
  vcr('content_type/entry/create_with_entries_for_multiple_locales') do
418
427
  space = Contentful::Management::Space.find(space_id)
419
- space.content_types #filling cache
428
+ space.content_types # filling cache
420
429
 
421
430
  entry_en = space.entries.find('664EPJ6zHqAeMO6O0mGggU')
422
431
  entry_pl = space.entries.find('664EPJ6zHqAeMO6O0mGggU')
@@ -434,7 +443,7 @@ module Contentful
434
443
  it 'with assets' do
435
444
  vcr('content_type/entry/create_with_entries_for_multiple_locales') do
436
445
  space = Contentful::Management::Space.find(space_id)
437
- space.content_types #filling cache
446
+ space.content_types # filling cache
438
447
 
439
448
  entry_en = space.entries.find('664EPJ6zHqAeMO6O0mGggU')
440
449
  entry_pl = space.entries.find('664EPJ6zHqAeMO6O0mGggU')
@@ -450,6 +459,22 @@ module Contentful
450
459
  end
451
460
  end
452
461
  end
462
+
463
+ describe '#entries.all' do
464
+ let(:space_id) { '9lxkhjnp8gyx' }
465
+
466
+ it 'returns entries' do
467
+ vcr('content_type/entry/all') do
468
+ space = Contentful::Management::Space.find(space_id)
469
+ content_type = space.content_types.find('category_content_type')
470
+ entries = content_type.entries.all
471
+ expect(entries).to be_kind_of Contentful::Management::Array
472
+ expect(entries.size).to eq 2
473
+ expect(entries.first).to be_kind_of Contentful::Management::Entry
474
+ expect(entries.first.sys[:contentType].id).to eq 'category_content_type'
475
+ end
476
+ end
477
+ end
453
478
  end
454
479
  end
455
480
  end
@@ -21,6 +21,14 @@ module Contentful
21
21
  it 'builds a Contentful::Management::Entry object' do
22
22
  vcr('entry/all') { expect(subject.all(space_id).first).to be_kind_of Contentful::Management::Entry }
23
23
  end
24
+ it 'returns entries in context of specified content type' do
25
+ vcr('entry/content_type_entires') do
26
+ entries = Contentful::Management::Entry.all('9lxkhjnp8gyx', content_type_id: 'category_content_type')
27
+ expect(entries).to be_kind_of Contentful::Management::Array
28
+ expect(entries.first).to be_kind_of Contentful::Management::Entry
29
+ expect(entries.first.sys[:contentType].id).to eq 'category_content_type'
30
+ end
31
+ end
24
32
  end
25
33
 
26
34
  describe '#find' do
@@ -207,7 +215,10 @@ module Contentful
207
215
  it 'with entries' do
208
216
  vcr('entry/create_with_entries') do
209
217
  entry_att = Entry.find(space_id, '1d1QDYzeiyWmgqQYysae8u')
210
- entry2 = subject.create(content_type, name: 'EntryWithEntries', age: 20, entries: [entry_att, entry_att, entry_att])
218
+ entry2 = subject.create(content_type,
219
+ name: 'EntryWithEntries',
220
+ age: 20,
221
+ entries: [entry_att, entry_att, entry_att])
211
222
  expect(entry2.name).to eq 'EntryWithEntries'
212
223
  expect(entry2.age).to eq 20
213
224
  end
@@ -233,6 +244,12 @@ module Contentful
233
244
  expect(entry.name).to eq 'SymbolTest'
234
245
  end
235
246
  end
247
+ it 'with custom id' do
248
+ vcr('entry/create_with_custom_id') do
249
+ entry = subject.create(content_type, id: 'custom_id', name: 'Custom Id')
250
+ expect(entry.id).to eq 'custom_id'
251
+ end
252
+ end
236
253
  end
237
254
 
238
255
  describe '#update' do
@@ -247,7 +264,9 @@ module Contentful
247
264
  location.lat = 22.44
248
265
  location.lon = 33.33
249
266
 
250
- result = entry.update(name: 'Tom Handy', age: 20, birthday: '2000-07-12T11:11:00+02:00', city: location, bool: false,
267
+ result = entry.update(name: 'Tom Handy', age: 20, birthday: '2000-07-12T11:11:00+02:00',
268
+ city: location,
269
+ bool: false,
251
270
  asset: asset, assets: [asset, asset, asset],
252
271
  entry: entry_att, entries: [entry_att, entry_att, entry_att],
253
272
  symbols: ['PL', 'USD', 'XX'])
@@ -302,7 +321,6 @@ module Contentful
302
321
  end
303
322
  end
304
323
  end
305
-
306
324
  end
307
325
  end
308
326
  end
@@ -6,7 +6,7 @@ require 'contentful/management/client'
6
6
  module Contentful
7
7
  module Management
8
8
  describe Space do
9
- let(:token) { '<ACCESS_TOKEN>' }
9
+ let(:token) { '<ACCESS_TOKEN>' }
10
10
  let(:space_id) { 'yr5m0jky5hsh' }
11
11
 
12
12
  let!(:client) { Client.new(token) }
@@ -111,16 +111,6 @@ module Contentful
111
111
  expect(content_type.name).to eq content_type_name
112
112
  end
113
113
  end
114
-
115
- it 'lists content types to given space' do
116
- vcr('space/content_type/content_types') do
117
- content_types = subject.find(space_id).content_types
118
- expect(content_types).to be_kind_of Contentful::Management::Array
119
- end
120
- end
121
- it 'builds a Contentful::Management::ContentType object' do
122
- vcr('space/content_type/content_types') { expect(subject.find(space_id).content_types.first).to be_kind_of Contentful::Management::ContentType }
123
- end
124
114
  it '#content_types.find' do
125
115
  vcr('space/content_type/find') do
126
116
  content_type = subject.find(space_id).content_types.find('1AZQOWKr2I8W2ugY0KiGEU')
@@ -138,15 +128,6 @@ module Contentful
138
128
 
139
129
  describe '#locales' do
140
130
  let(:locale_id) { '42irhRZ5uMrRc9SZ1PyDRk' }
141
- it 'lists locales to given space' do
142
- vcr('space/locale/locales') do
143
- locales = subject.find(space_id).locales
144
- expect(locales).to be_kind_of Contentful::Management::Array
145
- end
146
- end
147
- it 'builds a Contentful::Management::Local object' do
148
- vcr('space/locale/locales') { expect(subject.find(space_id).locales.first).to be_kind_of Contentful::Management::Locale }
149
- end
150
131
 
151
132
  it '#locales.all' do
152
133
  vcr('space/locale/all') do
@@ -174,7 +155,11 @@ module Contentful
174
155
 
175
156
  it 'creates locales to space' do
176
157
  vcr('space/locale/create') do
177
- locale = subject.find(space_id).locales.create(name: 'ru-RU', contentManagementApi: true, publish: true, contentDeliveryApi: true, code: 'ru-RU')
158
+ locale = subject.find(space_id).locales.create(name: 'ru-RU',
159
+ contentManagementApi: true,
160
+ publish: true,
161
+ contentDeliveryApi: true,
162
+ code: 'ru-RU')
178
163
  expect(locale).to be_kind_of Contentful::Management::Locale
179
164
  expect(locale.name).to eql 'ru-RU'
180
165
  end
@@ -182,7 +167,12 @@ module Contentful
182
167
 
183
168
  it 'returns error when locale already exists' do
184
169
  vcr('space/locale/create_with_the_same_code') do
185
- locale = subject.find(space_id).locales.create(name: 'ru-RU', contentManagementApi: true, publish: true, contentDeliveryApi: true, code: 'ru-RU')
170
+ space = subject.find(space_id)
171
+ locale = space.locales.create(name: 'ru-RU',
172
+ contentManagementApi: true,
173
+ publish: true,
174
+ contentDeliveryApi: true,
175
+ code: 'ru-RU')
186
176
  expect(locale).to be_kind_of Contentful::Management::Error
187
177
  end
188
178
  end
@@ -222,12 +212,6 @@ module Contentful
222
212
  end
223
213
 
224
214
  describe '#assets' do
225
- it 'returns a Contentful::Array' do
226
- vcr('space/asset/assets') { expect(subject.find(space_id).assets).to be_kind_of Contentful::Management::Array }
227
- end
228
- it 'builds a Contentful::Management::Asset object' do
229
- vcr('space/asset/assets') { expect(subject.find(space_id).assets.first).to be_kind_of Contentful::Management::Asset }
230
- end
231
215
  it '#assets.all' do
232
216
  vcr('space/asset/all') do
233
217
  assets = subject.find(space_id).assets.all
@@ -269,10 +253,10 @@ module Contentful
269
253
  file.properties[:upload] = 'http://static.goldenline.pl/firm_logo/082/firm_225106_22f37f_small.jpg'
270
254
  space = subject.find(space_id)
271
255
  asset = space.assets.new
272
- asset.title_with_locales = { 'en-US' => 'Company logo', 'pl' => 'Firmowe logo' }
256
+ asset.title_with_locales = {'en-US' => 'Company logo', 'pl' => 'Firmowe logo'}
273
257
  asset.title = 'Logo of Codequest comapny'
274
- asset.description_with_locales = { 'en-US' => 'Company logo codequest', 'pl' => 'Logo firmy Codequest' }
275
- asset.file_with_locales = { 'en-US' => file, 'pl' => file }
258
+ asset.description_with_locales = {'en-US' => 'Company logo codequest', 'pl' => 'Logo firmy Codequest'}
259
+ asset.file_with_locales = {'en-US' => file, 'pl' => file}
276
260
  asset.save
277
261
 
278
262
  expect(asset).to be_kind_of Contentful::Management::Asset
@@ -286,12 +270,6 @@ module Contentful
286
270
  end
287
271
 
288
272
  describe '#entries' do
289
- it 'returns a Contentful::Entry' do
290
- vcr('space/entry/entries') { expect(subject.find(space_id).entries).to be_kind_of Contentful::Management::Array }
291
- end
292
- it 'builds a Contentful::Management::Entry object' do
293
- vcr('space/entry/entries') { expect(subject.find(space_id).entries.first).to be_kind_of Contentful::Management::Entry }
294
- end
295
273
  it '#entries.all' do
296
274
  vcr('space/entry/all') do
297
275
  entries = subject.find(space_id).entries.all
@@ -312,6 +290,17 @@ module Contentful
312
290
  end
313
291
  end
314
292
  end
293
+ describe '#entries(content_type: content_type_id)' do
294
+ it 'returns entries to specified content type' do
295
+ vcr('space/entry/content_type_entires') do
296
+ space = subject.find('9lxkhjnp8gyx')
297
+ entries = space.entries.all(content_type_id: 'category_content_type')
298
+ expect(entries).to be_kind_of Contentful::Management::Array
299
+ expect(entries.first).to be_kind_of Contentful::Management::Entry
300
+ expect(entries.first.sys[:contentType].id).to eq 'category_content_type'
301
+ end
302
+ end
303
+ end
315
304
  end
316
305
  end
317
306
  end
metadata CHANGED
@@ -1,8 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.pre
5
- prerelease: 6
4
+ version: 0.0.1
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Piotr Protas
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2014-08-04 00:00:00.000000000 Z
14
+ date: 2014-08-13 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: http
@@ -221,6 +221,8 @@ files:
221
221
  - lib/contentful/management/request.rb
222
222
  - lib/contentful/management/resource.rb
223
223
  - lib/contentful/management/resource/array_like.rb
224
+ - lib/contentful/management/resource/asset_fields.rb
225
+ - lib/contentful/management/resource/entry_fields.rb
224
226
  - lib/contentful/management/resource/fields.rb
225
227
  - lib/contentful/management/resource/refresher.rb
226
228
  - lib/contentful/management/resource/system_properties.rb
@@ -242,9 +244,9 @@ files:
242
244
  - spec/fixtures/vcr_cassettes/asset/destroy_published.yml
243
245
  - spec/fixtures/vcr_cassettes/asset/find.yml
244
246
  - spec/fixtures/vcr_cassettes/asset/find_not_found.yml
245
- - spec/fixtures/vcr_cassettes/asset/image_url.yml
246
247
  - spec/fixtures/vcr_cassettes/asset/locale.yml
247
248
  - spec/fixtures/vcr_cassettes/asset/publish.yml
249
+ - spec/fixtures/vcr_cassettes/asset/publish_after_create.yml
248
250
  - spec/fixtures/vcr_cassettes/asset/publish_already_published.yml
249
251
  - spec/fixtures/vcr_cassettes/asset/published_false.yml
250
252
  - spec/fixtures/vcr_cassettes/asset/published_true.yml
@@ -281,6 +283,7 @@ files:
281
283
  - spec/fixtures/vcr_cassettes/content_type/deactivate_with_version_change.yml
282
284
  - spec/fixtures/vcr_cassettes/content_type/destroy.yml
283
285
  - spec/fixtures/vcr_cassettes/content_type/destroy_activated.yml
286
+ - spec/fixtures/vcr_cassettes/content_type/entry/all.yml
284
287
  - spec/fixtures/vcr_cassettes/content_type/entry/create.yml
285
288
  - spec/fixtures/vcr_cassettes/content_type/entry/create_with_camel_case_id_to_multiple_locales.yml
286
289
  - spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries.yml
@@ -307,10 +310,12 @@ files:
307
310
  - spec/fixtures/vcr_cassettes/entry/archive_published.yml
308
311
  - spec/fixtures/vcr_cassettes/entry/archived_false.yml
309
312
  - spec/fixtures/vcr_cassettes/entry/archived_true.yml
313
+ - spec/fixtures/vcr_cassettes/entry/content_type_entires.yml
310
314
  - spec/fixtures/vcr_cassettes/entry/create.yml
311
315
  - spec/fixtures/vcr_cassettes/entry/create_test.yml
312
316
  - spec/fixtures/vcr_cassettes/entry/create_with_asset.yml
313
317
  - spec/fixtures/vcr_cassettes/entry/create_with_assets.yml
318
+ - spec/fixtures/vcr_cassettes/entry/create_with_custom_id.yml
314
319
  - spec/fixtures/vcr_cassettes/entry/create_with_entries.yml
315
320
  - spec/fixtures/vcr_cassettes/entry/create_with_entry.yml
316
321
  - spec/fixtures/vcr_cassettes/entry/create_with_location.yml
@@ -338,12 +343,10 @@ files:
338
343
  - spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml
339
344
  - spec/fixtures/vcr_cassettes/space/all.yml
340
345
  - spec/fixtures/vcr_cassettes/space/asset/all.yml
341
- - spec/fixtures/vcr_cassettes/space/asset/assets.yml
342
346
  - spec/fixtures/vcr_cassettes/space/asset/create.yml
343
347
  - spec/fixtures/vcr_cassettes/space/asset/create_with_multiple_locales.yml
344
348
  - spec/fixtures/vcr_cassettes/space/asset/find.yml
345
349
  - spec/fixtures/vcr_cassettes/space/content_type/all.yml
346
- - spec/fixtures/vcr_cassettes/space/content_type/content_types.yml
347
350
  - spec/fixtures/vcr_cassettes/space/content_type/create.yml
348
351
  - spec/fixtures/vcr_cassettes/space/content_type/find.yml
349
352
  - spec/fixtures/vcr_cassettes/space/create.yml
@@ -352,7 +355,7 @@ files:
352
355
  - spec/fixtures/vcr_cassettes/space/create_without_organization.yml
353
356
  - spec/fixtures/vcr_cassettes/space/destory.yml
354
357
  - spec/fixtures/vcr_cassettes/space/entry/all.yml
355
- - spec/fixtures/vcr_cassettes/space/entry/entries.yml
358
+ - spec/fixtures/vcr_cassettes/space/entry/content_type_entires.yml
356
359
  - spec/fixtures/vcr_cassettes/space/entry/find.yml
357
360
  - spec/fixtures/vcr_cassettes/space/find.yml
358
361
  - spec/fixtures/vcr_cassettes/space/find_not_found.yml
@@ -361,7 +364,6 @@ files:
361
364
  - spec/fixtures/vcr_cassettes/space/locale/create_with_the_same_code.yml
362
365
  - spec/fixtures/vcr_cassettes/space/locale/find.yml
363
366
  - spec/fixtures/vcr_cassettes/space/locale/find_not_found.yml
364
- - spec/fixtures/vcr_cassettes/space/locale/locales.yml
365
367
  - spec/fixtures/vcr_cassettes/space/locale/update.yml
366
368
  - spec/fixtures/vcr_cassettes/space/save_new_space.yml
367
369
  - spec/fixtures/vcr_cassettes/space/save_update_space.yml
@@ -391,16 +393,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
391
393
  version: '0'
392
394
  segments:
393
395
  - 0
394
- hash: -3897468172085756465
396
+ hash: -732349025618682586
395
397
  required_rubygems_version: !ruby/object:Gem::Requirement
396
398
  none: false
397
399
  requirements:
398
- - - ! '>'
400
+ - - ! '>='
399
401
  - !ruby/object:Gem::Version
400
- version: 1.3.1
402
+ version: '0'
403
+ segments:
404
+ - 0
405
+ hash: -732349025618682586
401
406
  requirements: []
402
407
  rubyforge_project:
403
- rubygems_version: 1.8.23
408
+ rubygems_version: 1.8.23.2
404
409
  signing_key:
405
410
  specification_version: 3
406
411
  summary: contentful management api
@@ -418,9 +423,9 @@ test_files:
418
423
  - spec/fixtures/vcr_cassettes/asset/destroy_published.yml
419
424
  - spec/fixtures/vcr_cassettes/asset/find.yml
420
425
  - spec/fixtures/vcr_cassettes/asset/find_not_found.yml
421
- - spec/fixtures/vcr_cassettes/asset/image_url.yml
422
426
  - spec/fixtures/vcr_cassettes/asset/locale.yml
423
427
  - spec/fixtures/vcr_cassettes/asset/publish.yml
428
+ - spec/fixtures/vcr_cassettes/asset/publish_after_create.yml
424
429
  - spec/fixtures/vcr_cassettes/asset/publish_already_published.yml
425
430
  - spec/fixtures/vcr_cassettes/asset/published_false.yml
426
431
  - spec/fixtures/vcr_cassettes/asset/published_true.yml
@@ -457,6 +462,7 @@ test_files:
457
462
  - spec/fixtures/vcr_cassettes/content_type/deactivate_with_version_change.yml
458
463
  - spec/fixtures/vcr_cassettes/content_type/destroy.yml
459
464
  - spec/fixtures/vcr_cassettes/content_type/destroy_activated.yml
465
+ - spec/fixtures/vcr_cassettes/content_type/entry/all.yml
460
466
  - spec/fixtures/vcr_cassettes/content_type/entry/create.yml
461
467
  - spec/fixtures/vcr_cassettes/content_type/entry/create_with_camel_case_id_to_multiple_locales.yml
462
468
  - spec/fixtures/vcr_cassettes/content_type/entry/create_with_entries.yml
@@ -483,10 +489,12 @@ test_files:
483
489
  - spec/fixtures/vcr_cassettes/entry/archive_published.yml
484
490
  - spec/fixtures/vcr_cassettes/entry/archived_false.yml
485
491
  - spec/fixtures/vcr_cassettes/entry/archived_true.yml
492
+ - spec/fixtures/vcr_cassettes/entry/content_type_entires.yml
486
493
  - spec/fixtures/vcr_cassettes/entry/create.yml
487
494
  - spec/fixtures/vcr_cassettes/entry/create_test.yml
488
495
  - spec/fixtures/vcr_cassettes/entry/create_with_asset.yml
489
496
  - spec/fixtures/vcr_cassettes/entry/create_with_assets.yml
497
+ - spec/fixtures/vcr_cassettes/entry/create_with_custom_id.yml
490
498
  - spec/fixtures/vcr_cassettes/entry/create_with_entries.yml
491
499
  - spec/fixtures/vcr_cassettes/entry/create_with_entry.yml
492
500
  - spec/fixtures/vcr_cassettes/entry/create_with_location.yml
@@ -514,12 +522,10 @@ test_files:
514
522
  - spec/fixtures/vcr_cassettes/locale/find_for_space_not_found.yml
515
523
  - spec/fixtures/vcr_cassettes/space/all.yml
516
524
  - spec/fixtures/vcr_cassettes/space/asset/all.yml
517
- - spec/fixtures/vcr_cassettes/space/asset/assets.yml
518
525
  - spec/fixtures/vcr_cassettes/space/asset/create.yml
519
526
  - spec/fixtures/vcr_cassettes/space/asset/create_with_multiple_locales.yml
520
527
  - spec/fixtures/vcr_cassettes/space/asset/find.yml
521
528
  - spec/fixtures/vcr_cassettes/space/content_type/all.yml
522
- - spec/fixtures/vcr_cassettes/space/content_type/content_types.yml
523
529
  - spec/fixtures/vcr_cassettes/space/content_type/create.yml
524
530
  - spec/fixtures/vcr_cassettes/space/content_type/find.yml
525
531
  - spec/fixtures/vcr_cassettes/space/create.yml
@@ -528,7 +534,7 @@ test_files:
528
534
  - spec/fixtures/vcr_cassettes/space/create_without_organization.yml
529
535
  - spec/fixtures/vcr_cassettes/space/destory.yml
530
536
  - spec/fixtures/vcr_cassettes/space/entry/all.yml
531
- - spec/fixtures/vcr_cassettes/space/entry/entries.yml
537
+ - spec/fixtures/vcr_cassettes/space/entry/content_type_entires.yml
532
538
  - spec/fixtures/vcr_cassettes/space/entry/find.yml
533
539
  - spec/fixtures/vcr_cassettes/space/find.yml
534
540
  - spec/fixtures/vcr_cassettes/space/find_not_found.yml
@@ -537,7 +543,6 @@ test_files:
537
543
  - spec/fixtures/vcr_cassettes/space/locale/create_with_the_same_code.yml
538
544
  - spec/fixtures/vcr_cassettes/space/locale/find.yml
539
545
  - spec/fixtures/vcr_cassettes/space/locale/find_not_found.yml
540
- - spec/fixtures/vcr_cassettes/space/locale/locales.yml
541
546
  - spec/fixtures/vcr_cassettes/space/locale/update.yml
542
547
  - spec/fixtures/vcr_cassettes/space/save_new_space.yml
543
548
  - spec/fixtures/vcr_cassettes/space/save_update_space.yml