contentful-management 2.9.0 → 2.12.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +37 -0
- data/README.md +19 -13
- data/contentful-management.gemspec +6 -5
- data/lib/contentful/management/client.rb +10 -12
- data/lib/contentful/management/{client_usage_period_methods_factory.rb → client_organization_periodic_usage_methods_factory.rb} +3 -4
- data/lib/contentful/management/client_space_methods_factory.rb +2 -2
- data/lib/contentful/management/{client_api_usage_methods_factory.rb → client_space_periodic_usage_methods_factory.rb} +4 -11
- data/lib/contentful/management/entry.rb +14 -12
- data/lib/contentful/management/environment.rb +3 -2
- data/lib/contentful/management/organization.rb +8 -8
- data/lib/contentful/management/{api_usage.rb → organization_periodic_usage.rb} +13 -18
- data/lib/contentful/management/resource.rb +7 -4
- data/lib/contentful/management/resource/environment_aware.rb +11 -8
- data/lib/contentful/management/resource_builder.rb +5 -6
- data/lib/contentful/management/space.rb +2 -2
- data/lib/contentful/management/{usage_period.rb → space_periodic_usage.rb} +12 -9
- data/lib/contentful/management/validation.rb +6 -1
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/asset/196_environment_id.yml +140 -0
- data/spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml +150 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_215_1.yml +905 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_215_2.yml +899 -0
- data/spec/fixtures/vcr_cassettes/entry/issue_215_3.yml +893 -0
- data/spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml +368 -0
- data/spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml +167 -0
- data/spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml +6800 -0
- data/spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml +1976 -0
- data/spec/lib/contentful/management/asset_spec.rb +8 -0
- data/spec/lib/contentful/management/content_type_spec.rb +6 -0
- data/spec/lib/contentful/management/entry_spec.rb +48 -0
- data/spec/lib/contentful/management/organization_periodic_usage_spec.rb +36 -0
- data/spec/lib/contentful/management/space_periodic_usage_spec.rb +36 -0
- metadata +60 -32
- data/spec/fixtures/vcr_cassettes/api_usage/all.yml +0 -155
- data/spec/fixtures/vcr_cassettes/usage_period/all.yml +0 -114
- data/spec/lib/contentful/management/api_usage_spec.rb +0 -28
- data/spec/lib/contentful/management/usage_period_spec.rb +0 -27
@@ -465,6 +465,14 @@ module Contentful
|
|
465
465
|
end
|
466
466
|
end
|
467
467
|
end
|
468
|
+
describe 'Assets created through environment retain environment identity - #196' do
|
469
|
+
it 'should return proper environment id' do
|
470
|
+
vcr('asset/196_environment_id') do
|
471
|
+
environment = client.environments('facgnwwgj5fe').find('testing')
|
472
|
+
expect(environment.assets.new.environment_id).to eq 'testing'
|
473
|
+
end
|
474
|
+
end
|
475
|
+
end
|
468
476
|
end
|
469
477
|
end
|
470
478
|
end
|
@@ -849,6 +849,12 @@ module Contentful
|
|
849
849
|
expect(content_type.sys[:version] > 0).to be_truthy
|
850
850
|
}
|
851
851
|
end
|
852
|
+
it 'entries created through a content type retain environment id - #196' do
|
853
|
+
vcr('content_type/196_retain_environment_id') {
|
854
|
+
content_type = described_class.find(client, 'facgnwwgj5fe', 'testing', 'foo')
|
855
|
+
expect(content_type.entries.new.environment_id).to eq 'testing'
|
856
|
+
}
|
857
|
+
end
|
852
858
|
end
|
853
859
|
end
|
854
860
|
end
|
@@ -866,6 +866,54 @@ describe Contentful::Management::Entry do
|
|
866
866
|
end
|
867
867
|
|
868
868
|
describe 'issues' do
|
869
|
+
let(:space_id) { 'vuo79u060fmw' }
|
870
|
+
let(:space) { client.spaces.find(space_id) }
|
871
|
+
let(:environment) { space.environments.find('master') }
|
872
|
+
|
873
|
+
describe 'json fields do not get reset on save - #215' do
|
874
|
+
it 'can load a json array, modify it, save it, and retrieve it' do
|
875
|
+
vcr('entry/issue_215_1') {
|
876
|
+
entry = environment.entries.find('30QNJFxJQwLpdqZn8CHsHf')
|
877
|
+
expect(entry.json).to eq([1, 2, 3])
|
878
|
+
|
879
|
+
entry.json = entry.json.map { |e| e + 1 }
|
880
|
+
entry.save
|
881
|
+
|
882
|
+
entry.reload
|
883
|
+
|
884
|
+
expect(entry.json).to eq([2, 3, 4])
|
885
|
+
}
|
886
|
+
end
|
887
|
+
|
888
|
+
it 'can load a json object, modify it, save it, and retrieve it' do
|
889
|
+
vcr('entry/issue_215_2') {
|
890
|
+
entry = environment.entries.find('6kcaBzW7xgjVr825PmGCvP')
|
891
|
+
expect(entry.json).to eq({ "a" => 1 })
|
892
|
+
|
893
|
+
entry.json["a"] = 2
|
894
|
+
entry.save
|
895
|
+
|
896
|
+
entry.reload
|
897
|
+
|
898
|
+
expect(entry.json).to eq({ "a" => 2 })
|
899
|
+
}
|
900
|
+
end
|
901
|
+
|
902
|
+
it 'can load an empty json object, set it, save it, and retrieve it' do
|
903
|
+
vcr('entry/issue_215_3') {
|
904
|
+
entry = environment.entries.find('4aVBlJajh2rZb7ybW2tY2X')
|
905
|
+
expect(entry.json).to be_nil
|
906
|
+
|
907
|
+
entry.json = { "a" => 1 }
|
908
|
+
entry.save
|
909
|
+
|
910
|
+
entry.reload
|
911
|
+
|
912
|
+
expect(entry.json).to eq({ "a" => 1 })
|
913
|
+
}
|
914
|
+
end
|
915
|
+
end
|
916
|
+
|
869
917
|
describe 'can send query parameters when requesting through environment proxy - #160' do
|
870
918
|
it 'can filter by content type and set a limit different than 100' do
|
871
919
|
vcr('entry/issue_160') {
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contentful/management/space'
|
3
|
+
require 'contentful/management/client'
|
4
|
+
|
5
|
+
module Contentful
|
6
|
+
module Management
|
7
|
+
describe OrganizationPeriodicUsage do
|
8
|
+
let(:token) { ENV.fetch('CF_TEST_CMA_TOKEN', '<ACCESS_TOKEN>') }
|
9
|
+
let(:organization_id) { 'org_id' }
|
10
|
+
|
11
|
+
let!(:client) { Client.new(token) }
|
12
|
+
|
13
|
+
subject { client.organization_periodic_usages(organization_id) }
|
14
|
+
|
15
|
+
describe '.all' do
|
16
|
+
it 'class method also works' do
|
17
|
+
vcr('organization_periodic_usage/all') { expect(Contentful::Management::OrganizationPeriodicUsage.all(client, organization_id)).to be_kind_of Contentful::Management::Array }
|
18
|
+
end
|
19
|
+
it 'returns a Contentful::Array' do
|
20
|
+
vcr('organization_periodic_usage/all') { expect(subject.all).to be_kind_of Contentful::Management::Array }
|
21
|
+
end
|
22
|
+
it 'builds a Contentful::Management::OrganizationPeriodicUsage object' do
|
23
|
+
vcr('organization_periodic_usage/all') { expect(subject.all.first).to be_kind_of Contentful::Management::OrganizationPeriodicUsage }
|
24
|
+
end
|
25
|
+
it 'builds a Contentful::Management::OrganizationPeriodicUsage object' do
|
26
|
+
vcr('organization_periodic_usage/filters') {
|
27
|
+
result = subject.all('metric[in]' => 'cda')
|
28
|
+
expect(result.size).to eq 1
|
29
|
+
expect(result.first).to be_kind_of Contentful::Management::OrganizationPeriodicUsage
|
30
|
+
expect(result.first.metric).to eq 'cda'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
require 'contentful/management/space'
|
3
|
+
require 'contentful/management/client'
|
4
|
+
|
5
|
+
module Contentful
|
6
|
+
module Management
|
7
|
+
describe SpacePeriodicUsage do
|
8
|
+
let(:token) { ENV.fetch('CF_TEST_CMA_TOKEN', '<ACCESS_TOKEN>') }
|
9
|
+
let(:organization_id) { 'org_id' }
|
10
|
+
|
11
|
+
let!(:client) { Client.new(token) }
|
12
|
+
|
13
|
+
subject { client.space_periodic_usages(organization_id) }
|
14
|
+
|
15
|
+
describe '.all' do
|
16
|
+
it 'class method also works' do
|
17
|
+
vcr('space_periodic_usage/all') { expect(Contentful::Management::SpacePeriodicUsage.all(client, organization_id)).to be_kind_of Contentful::Management::Array }
|
18
|
+
end
|
19
|
+
it 'returns a Contentful::Array' do
|
20
|
+
vcr('space_periodic_usage/all') { expect(subject.all).to be_kind_of Contentful::Management::Array }
|
21
|
+
end
|
22
|
+
it 'builds a Contentful::Management::SpacePeriodicUsage object' do
|
23
|
+
vcr('space_periodic_usage/all') { expect(subject.all.first).to be_kind_of Contentful::Management::SpacePeriodicUsage }
|
24
|
+
end
|
25
|
+
it 'builds a Contentful::Management::SpacePeriodicUsage object' do
|
26
|
+
vcr('space_periodic_usage/filters') {
|
27
|
+
result = subject.all('metric[in]' => 'cda')
|
28
|
+
expect(result.all? { |pu| pu.metric == 'cda' }).to be_truthy
|
29
|
+
expect(result.first).to be_kind_of Contentful::Management::SpacePeriodicUsage
|
30
|
+
expect(result.first.metric).to eq 'cda'
|
31
|
+
}
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
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: 2.
|
4
|
+
version: 2.12.1
|
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:
|
13
|
+
date: 2020-07-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '1.0'
|
22
22
|
- - "<"
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: '
|
24
|
+
version: '5.0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
27
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
version: '1.0'
|
32
32
|
- - "<"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '
|
34
|
+
version: '5.0'
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: multi_json
|
37
37
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,16 +50,22 @@ dependencies:
|
|
50
50
|
name: json
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- - "
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: '1.8'
|
56
|
+
- - "<"
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '3.0'
|
56
59
|
type: :runtime
|
57
60
|
prerelease: false
|
58
61
|
version_requirements: !ruby/object:Gem::Requirement
|
59
62
|
requirements:
|
60
|
-
- - "
|
63
|
+
- - ">="
|
61
64
|
- !ruby/object:Gem::Version
|
62
65
|
version: '1.8'
|
66
|
+
- - "<"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
63
69
|
- !ruby/object:Gem::Dependency
|
64
70
|
name: bundler
|
65
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,16 +84,16 @@ dependencies:
|
|
78
84
|
name: rake
|
79
85
|
requirement: !ruby/object:Gem::Requirement
|
80
86
|
requirements:
|
81
|
-
- - "
|
87
|
+
- - ">="
|
82
88
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
89
|
+
version: 12.3.3
|
84
90
|
type: :development
|
85
91
|
prerelease: false
|
86
92
|
version_requirements: !ruby/object:Gem::Requirement
|
87
93
|
requirements:
|
88
|
-
- - "
|
94
|
+
- - ">="
|
89
95
|
- !ruby/object:Gem::Version
|
90
|
-
version:
|
96
|
+
version: 12.3.3
|
91
97
|
- !ruby/object:Gem::Dependency
|
92
98
|
name: public_suffix
|
93
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -216,6 +222,20 @@ dependencies:
|
|
216
222
|
version: '3.0'
|
217
223
|
- !ruby/object:Gem::Dependency
|
218
224
|
name: vcr
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '4.0'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '4.0'
|
237
|
+
- !ruby/object:Gem::Dependency
|
238
|
+
name: webmock
|
219
239
|
requirement: !ruby/object:Gem::Requirement
|
220
240
|
requirements:
|
221
241
|
- - ">="
|
@@ -229,25 +249,19 @@ dependencies:
|
|
229
249
|
- !ruby/object:Gem::Version
|
230
250
|
version: '0'
|
231
251
|
- !ruby/object:Gem::Dependency
|
232
|
-
name:
|
252
|
+
name: tins
|
233
253
|
requirement: !ruby/object:Gem::Requirement
|
234
254
|
requirements:
|
235
255
|
- - "~>"
|
236
256
|
- !ruby/object:Gem::Version
|
237
|
-
version:
|
238
|
-
- - ">="
|
239
|
-
- !ruby/object:Gem::Version
|
240
|
-
version: 1.17.3
|
257
|
+
version: 1.6.0
|
241
258
|
type: :development
|
242
259
|
prerelease: false
|
243
260
|
version_requirements: !ruby/object:Gem::Requirement
|
244
261
|
requirements:
|
245
262
|
- - "~>"
|
246
263
|
- !ruby/object:Gem::Version
|
247
|
-
version:
|
248
|
-
- - ">="
|
249
|
-
- !ruby/object:Gem::Version
|
250
|
-
version: 1.17.3
|
264
|
+
version: 1.6.0
|
251
265
|
- !ruby/object:Gem::Dependency
|
252
266
|
name: simplecov
|
253
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -293,12 +307,10 @@ files:
|
|
293
307
|
- examples/create_space.rb
|
294
308
|
- lib/contentful/management.rb
|
295
309
|
- lib/contentful/management/api_key.rb
|
296
|
-
- lib/contentful/management/api_usage.rb
|
297
310
|
- lib/contentful/management/array.rb
|
298
311
|
- lib/contentful/management/asset.rb
|
299
312
|
- lib/contentful/management/client.rb
|
300
313
|
- lib/contentful/management/client_api_key_methods_factory.rb
|
301
|
-
- lib/contentful/management/client_api_usage_methods_factory.rb
|
302
314
|
- lib/contentful/management/client_asset_methods_factory.rb
|
303
315
|
- lib/contentful/management/client_association_all_published_method_factory.rb
|
304
316
|
- lib/contentful/management/client_association_methods_factory.rb
|
@@ -308,15 +320,16 @@ files:
|
|
308
320
|
- lib/contentful/management/client_environment_methods_factory.rb
|
309
321
|
- lib/contentful/management/client_locale_methods_factory.rb
|
310
322
|
- lib/contentful/management/client_organization_methods_factory.rb
|
323
|
+
- lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
|
311
324
|
- lib/contentful/management/client_personal_access_tokens_methods_factory.rb
|
312
325
|
- lib/contentful/management/client_preview_api_key_methods_factory.rb
|
313
326
|
- lib/contentful/management/client_role_methods_factory.rb
|
314
327
|
- lib/contentful/management/client_snapshot_methods_factory.rb
|
315
328
|
- lib/contentful/management/client_space_membership_methods_factory.rb
|
316
329
|
- lib/contentful/management/client_space_methods_factory.rb
|
330
|
+
- lib/contentful/management/client_space_periodic_usage_methods_factory.rb
|
317
331
|
- lib/contentful/management/client_ui_extension_methods_factory.rb
|
318
332
|
- lib/contentful/management/client_upload_methods_factory.rb
|
319
|
-
- lib/contentful/management/client_usage_period_methods_factory.rb
|
320
333
|
- lib/contentful/management/client_user_methods_factory.rb
|
321
334
|
- lib/contentful/management/client_webhook_call_methods_factory.rb
|
322
335
|
- lib/contentful/management/client_webhook_health_methods_factory.rb
|
@@ -345,6 +358,7 @@ files:
|
|
345
358
|
- lib/contentful/management/locale.rb
|
346
359
|
- lib/contentful/management/location.rb
|
347
360
|
- lib/contentful/management/organization.rb
|
361
|
+
- lib/contentful/management/organization_periodic_usage.rb
|
348
362
|
- lib/contentful/management/personal_access_token.rb
|
349
363
|
- lib/contentful/management/preview_api_key.rb
|
350
364
|
- lib/contentful/management/request.rb
|
@@ -370,6 +384,7 @@ files:
|
|
370
384
|
- lib/contentful/management/space_association_methods_factory.rb
|
371
385
|
- lib/contentful/management/space_environment_methods_factory.rb
|
372
386
|
- lib/contentful/management/space_membership.rb
|
387
|
+
- lib/contentful/management/space_periodic_usage.rb
|
373
388
|
- lib/contentful/management/space_preview_api_key_methods_factory.rb
|
374
389
|
- lib/contentful/management/space_role_methods_factory.rb
|
375
390
|
- lib/contentful/management/space_space_membership_methods_factory.rb
|
@@ -377,7 +392,6 @@ files:
|
|
377
392
|
- lib/contentful/management/support.rb
|
378
393
|
- lib/contentful/management/ui_extension.rb
|
379
394
|
- lib/contentful/management/upload.rb
|
380
|
-
- lib/contentful/management/usage_period.rb
|
381
395
|
- lib/contentful/management/user.rb
|
382
396
|
- lib/contentful/management/validation.rb
|
383
397
|
- lib/contentful/management/version.rb
|
@@ -419,9 +433,9 @@ files:
|
|
419
433
|
- spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
|
420
434
|
- spec/fixtures/vcr_cassettes/api_key/issue_189.yml
|
421
435
|
- spec/fixtures/vcr_cassettes/api_key/preview.yml
|
422
|
-
- spec/fixtures/vcr_cassettes/api_usage/all.yml
|
423
436
|
- spec/fixtures/vcr_cassettes/array_page_1.yml
|
424
437
|
- spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
|
438
|
+
- spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
|
425
439
|
- spec/fixtures/vcr_cassettes/asset/all.yml
|
426
440
|
- spec/fixtures/vcr_cassettes/asset/archive.yml
|
427
441
|
- spec/fixtures/vcr_cassettes/asset/archive_published.yml
|
@@ -456,6 +470,7 @@ files:
|
|
456
470
|
- spec/fixtures/vcr_cassettes/asset/update_file.yml
|
457
471
|
- spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml
|
458
472
|
- spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml
|
473
|
+
- spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml
|
459
474
|
- spec/fixtures/vcr_cassettes/content_type/activate.yml
|
460
475
|
- spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml
|
461
476
|
- spec/fixtures/vcr_cassettes/content_type/activated_false.yml
|
@@ -551,6 +566,9 @@ files:
|
|
551
566
|
- spec/fixtures/vcr_cassettes/entry/find.yml
|
552
567
|
- spec/fixtures/vcr_cassettes/entry/find_not_found.yml
|
553
568
|
- spec/fixtures/vcr_cassettes/entry/issue_160.yml
|
569
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_1.yml
|
570
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_2.yml
|
571
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_3.yml
|
554
572
|
- spec/fixtures/vcr_cassettes/entry/issue_61_1.yml
|
555
573
|
- spec/fixtures/vcr_cassettes/entry/issue_61_2.yml
|
556
574
|
- spec/fixtures/vcr_cassettes/entry/issue_61_3.yml
|
@@ -631,6 +649,8 @@ files:
|
|
631
649
|
- spec/fixtures/vcr_cassettes/locale/update_code.yml
|
632
650
|
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
633
651
|
- spec/fixtures/vcr_cassettes/organization/all.yml
|
652
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
|
653
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
|
634
654
|
- spec/fixtures/vcr_cassettes/personal_access_token/all.yml
|
635
655
|
- spec/fixtures/vcr_cassettes/personal_access_token/create.yml
|
636
656
|
- spec/fixtures/vcr_cassettes/personal_access_token/find.yml
|
@@ -706,6 +726,8 @@ files:
|
|
706
726
|
- spec/fixtures/vcr_cassettes/space_memberships/delete.yml
|
707
727
|
- spec/fixtures/vcr_cassettes/space_memberships/find.yml
|
708
728
|
- spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
|
729
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
|
730
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
|
709
731
|
- spec/fixtures/vcr_cassettes/ui_extension/all.yml
|
710
732
|
- spec/fixtures/vcr_cassettes/ui_extension/create.yml
|
711
733
|
- spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
|
@@ -717,7 +739,6 @@ files:
|
|
717
739
|
- spec/fixtures/vcr_cassettes/upload/destroy.yml
|
718
740
|
- spec/fixtures/vcr_cassettes/upload/find.yml
|
719
741
|
- spec/fixtures/vcr_cassettes/upload/find_not_found.yml
|
720
|
-
- spec/fixtures/vcr_cassettes/usage_period/all.yml
|
721
742
|
- spec/fixtures/vcr_cassettes/user/find.yml
|
722
743
|
- spec/fixtures/vcr_cassettes/webhook/all.yml
|
723
744
|
- spec/fixtures/vcr_cassettes/webhook/create.yml
|
@@ -736,7 +757,6 @@ files:
|
|
736
757
|
- spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
|
737
758
|
- spec/fixtures/vcr_cassettes/webhook_health/find.yml
|
738
759
|
- spec/lib/contentful/management/api_key_spec.rb
|
739
|
-
- spec/lib/contentful/management/api_usage_spec.rb
|
740
760
|
- spec/lib/contentful/management/array_spec.rb
|
741
761
|
- spec/lib/contentful/management/asset_spec.rb
|
742
762
|
- spec/lib/contentful/management/client_spec.rb
|
@@ -746,15 +766,16 @@ files:
|
|
746
766
|
- spec/lib/contentful/management/environment_spec.rb
|
747
767
|
- spec/lib/contentful/management/error_class_spec.rb
|
748
768
|
- spec/lib/contentful/management/locale_spec.rb
|
769
|
+
- spec/lib/contentful/management/organization_periodic_usage_spec.rb
|
749
770
|
- spec/lib/contentful/management/organization_spec.rb
|
750
771
|
- spec/lib/contentful/management/personal_access_token_spec.rb
|
751
772
|
- spec/lib/contentful/management/role_spec.rb
|
752
773
|
- spec/lib/contentful/management/snapshot_spec.rb
|
753
774
|
- spec/lib/contentful/management/space_membership_spec.rb
|
775
|
+
- spec/lib/contentful/management/space_periodic_usage_spec.rb
|
754
776
|
- spec/lib/contentful/management/space_spec.rb
|
755
777
|
- spec/lib/contentful/management/ui_extension_spec.rb
|
756
778
|
- spec/lib/contentful/management/upload_spec.rb
|
757
|
-
- spec/lib/contentful/management/usage_period_spec.rb
|
758
779
|
- spec/lib/contentful/management/user_spec.rb
|
759
780
|
- spec/lib/contentful/management/webhook_calls_spec.rb
|
760
781
|
- spec/lib/contentful/management/webhook_health_spec.rb
|
@@ -781,7 +802,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
781
802
|
- !ruby/object:Gem::Version
|
782
803
|
version: '0'
|
783
804
|
requirements: []
|
784
|
-
rubygems_version: 3.
|
805
|
+
rubygems_version: 3.1.2
|
785
806
|
signing_key:
|
786
807
|
specification_version: 4
|
787
808
|
summary: contentful management api
|
@@ -819,9 +840,9 @@ test_files:
|
|
819
840
|
- spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
|
820
841
|
- spec/fixtures/vcr_cassettes/api_key/issue_189.yml
|
821
842
|
- spec/fixtures/vcr_cassettes/api_key/preview.yml
|
822
|
-
- spec/fixtures/vcr_cassettes/api_usage/all.yml
|
823
843
|
- spec/fixtures/vcr_cassettes/array_page_1.yml
|
824
844
|
- spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
|
845
|
+
- spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
|
825
846
|
- spec/fixtures/vcr_cassettes/asset/all.yml
|
826
847
|
- spec/fixtures/vcr_cassettes/asset/archive.yml
|
827
848
|
- spec/fixtures/vcr_cassettes/asset/archive_published.yml
|
@@ -856,6 +877,7 @@ test_files:
|
|
856
877
|
- spec/fixtures/vcr_cassettes/asset/update_file.yml
|
857
878
|
- spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml
|
858
879
|
- spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml
|
880
|
+
- spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml
|
859
881
|
- spec/fixtures/vcr_cassettes/content_type/activate.yml
|
860
882
|
- spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml
|
861
883
|
- spec/fixtures/vcr_cassettes/content_type/activated_false.yml
|
@@ -951,6 +973,9 @@ test_files:
|
|
951
973
|
- spec/fixtures/vcr_cassettes/entry/find.yml
|
952
974
|
- spec/fixtures/vcr_cassettes/entry/find_not_found.yml
|
953
975
|
- spec/fixtures/vcr_cassettes/entry/issue_160.yml
|
976
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_1.yml
|
977
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_2.yml
|
978
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_3.yml
|
954
979
|
- spec/fixtures/vcr_cassettes/entry/issue_61_1.yml
|
955
980
|
- spec/fixtures/vcr_cassettes/entry/issue_61_2.yml
|
956
981
|
- spec/fixtures/vcr_cassettes/entry/issue_61_3.yml
|
@@ -1031,6 +1056,8 @@ test_files:
|
|
1031
1056
|
- spec/fixtures/vcr_cassettes/locale/update_code.yml
|
1032
1057
|
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
1033
1058
|
- spec/fixtures/vcr_cassettes/organization/all.yml
|
1059
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
|
1060
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
|
1034
1061
|
- spec/fixtures/vcr_cassettes/personal_access_token/all.yml
|
1035
1062
|
- spec/fixtures/vcr_cassettes/personal_access_token/create.yml
|
1036
1063
|
- spec/fixtures/vcr_cassettes/personal_access_token/find.yml
|
@@ -1106,6 +1133,8 @@ test_files:
|
|
1106
1133
|
- spec/fixtures/vcr_cassettes/space_memberships/delete.yml
|
1107
1134
|
- spec/fixtures/vcr_cassettes/space_memberships/find.yml
|
1108
1135
|
- spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
|
1136
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
|
1137
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
|
1109
1138
|
- spec/fixtures/vcr_cassettes/ui_extension/all.yml
|
1110
1139
|
- spec/fixtures/vcr_cassettes/ui_extension/create.yml
|
1111
1140
|
- spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
|
@@ -1117,7 +1146,6 @@ test_files:
|
|
1117
1146
|
- spec/fixtures/vcr_cassettes/upload/destroy.yml
|
1118
1147
|
- spec/fixtures/vcr_cassettes/upload/find.yml
|
1119
1148
|
- spec/fixtures/vcr_cassettes/upload/find_not_found.yml
|
1120
|
-
- spec/fixtures/vcr_cassettes/usage_period/all.yml
|
1121
1149
|
- spec/fixtures/vcr_cassettes/user/find.yml
|
1122
1150
|
- spec/fixtures/vcr_cassettes/webhook/all.yml
|
1123
1151
|
- spec/fixtures/vcr_cassettes/webhook/create.yml
|
@@ -1136,7 +1164,6 @@ test_files:
|
|
1136
1164
|
- spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
|
1137
1165
|
- spec/fixtures/vcr_cassettes/webhook_health/find.yml
|
1138
1166
|
- spec/lib/contentful/management/api_key_spec.rb
|
1139
|
-
- spec/lib/contentful/management/api_usage_spec.rb
|
1140
1167
|
- spec/lib/contentful/management/array_spec.rb
|
1141
1168
|
- spec/lib/contentful/management/asset_spec.rb
|
1142
1169
|
- spec/lib/contentful/management/client_spec.rb
|
@@ -1146,15 +1173,16 @@ test_files:
|
|
1146
1173
|
- spec/lib/contentful/management/environment_spec.rb
|
1147
1174
|
- spec/lib/contentful/management/error_class_spec.rb
|
1148
1175
|
- spec/lib/contentful/management/locale_spec.rb
|
1176
|
+
- spec/lib/contentful/management/organization_periodic_usage_spec.rb
|
1149
1177
|
- spec/lib/contentful/management/organization_spec.rb
|
1150
1178
|
- spec/lib/contentful/management/personal_access_token_spec.rb
|
1151
1179
|
- spec/lib/contentful/management/role_spec.rb
|
1152
1180
|
- spec/lib/contentful/management/snapshot_spec.rb
|
1153
1181
|
- spec/lib/contentful/management/space_membership_spec.rb
|
1182
|
+
- spec/lib/contentful/management/space_periodic_usage_spec.rb
|
1154
1183
|
- spec/lib/contentful/management/space_spec.rb
|
1155
1184
|
- spec/lib/contentful/management/ui_extension_spec.rb
|
1156
1185
|
- spec/lib/contentful/management/upload_spec.rb
|
1157
|
-
- spec/lib/contentful/management/usage_period_spec.rb
|
1158
1186
|
- spec/lib/contentful/management/user_spec.rb
|
1159
1187
|
- spec/lib/contentful/management/webhook_calls_spec.rb
|
1160
1188
|
- spec/lib/contentful/management/webhook_health_spec.rb
|