contentful-management 2.9.1 → 2.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +40 -0
  3. data/README.md +30 -13
  4. data/contentful-management.gemspec +6 -5
  5. data/lib/contentful/management/client.rb +10 -12
  6. data/lib/contentful/management/{client_usage_period_methods_factory.rb → client_organization_periodic_usage_methods_factory.rb} +3 -4
  7. data/lib/contentful/management/client_space_methods_factory.rb +2 -2
  8. data/lib/contentful/management/{client_api_usage_methods_factory.rb → client_space_periodic_usage_methods_factory.rb} +4 -11
  9. data/lib/contentful/management/entry.rb +14 -12
  10. data/lib/contentful/management/field.rb +3 -1
  11. data/lib/contentful/management/organization.rb +18 -8
  12. data/lib/contentful/management/{api_usage.rb → organization_periodic_usage.rb} +13 -18
  13. data/lib/contentful/management/organization_user_methods_factory.rb +18 -0
  14. data/lib/contentful/management/resource.rb +3 -2
  15. data/lib/contentful/management/resource/environment_aware.rb +11 -8
  16. data/lib/contentful/management/resource_builder.rb +4 -4
  17. data/lib/contentful/management/space.rb +12 -2
  18. data/lib/contentful/management/{usage_period.rb → space_periodic_usage.rb} +12 -9
  19. data/lib/contentful/management/space_user_methods_factory.rb +19 -0
  20. data/lib/contentful/management/user.rb +7 -1
  21. data/lib/contentful/management/validation.rb +6 -1
  22. data/lib/contentful/management/version.rb +1 -1
  23. data/spec/fixtures/vcr_cassettes/asset/196_environment_id.yml +140 -0
  24. data/spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml +150 -0
  25. data/spec/fixtures/vcr_cassettes/entry/issue_215_1.yml +905 -0
  26. data/spec/fixtures/vcr_cassettes/entry/issue_215_2.yml +899 -0
  27. data/spec/fixtures/vcr_cassettes/entry/issue_215_3.yml +893 -0
  28. data/spec/fixtures/vcr_cassettes/organization/user.yml +238 -0
  29. data/spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml +368 -0
  30. data/spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml +167 -0
  31. data/spec/fixtures/vcr_cassettes/space/user.yml +254 -0
  32. data/spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml +6800 -0
  33. data/spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml +1976 -0
  34. data/spec/lib/contentful/management/asset_spec.rb +8 -0
  35. data/spec/lib/contentful/management/content_type_spec.rb +6 -0
  36. data/spec/lib/contentful/management/entry_spec.rb +48 -0
  37. data/spec/lib/contentful/management/organization_periodic_usage_spec.rb +36 -0
  38. data/spec/lib/contentful/management/organization_spec.rb +20 -0
  39. data/spec/lib/contentful/management/space_periodic_usage_spec.rb +36 -0
  40. data/spec/lib/contentful/management/space_spec.rb +20 -0
  41. metadata +68 -34
  42. data/spec/fixtures/vcr_cassettes/api_usage/all.yml +0 -155
  43. data/spec/fixtures/vcr_cassettes/usage_period/all.yml +0 -114
  44. data/spec/lib/contentful/management/api_usage_spec.rb +0 -28
  45. 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
@@ -28,6 +28,26 @@ module Contentful
28
28
  expect { subject.find }.to raise_error 'Not supported'
29
29
  end
30
30
  end
31
+
32
+ describe "users" do
33
+ describe '.find' do
34
+ it "should fetch the user if under the organizaton id" do
35
+ vcr('organization/user') {
36
+ organization = subject.all.first
37
+ user = organization.users.find('user_id')
38
+
39
+ expect(user).to be_a Contentful::Management::User
40
+ expect(user.first_name).to eq 'Bhushan'
41
+ expect(user.last_name).to eq 'Lodha'
42
+ expect(user.email).to eq 'bhushanlodha@gmail.com'
43
+ expect(user.activated).to eq true
44
+ expect(user.confirmed).to eq true
45
+ expect(user.sign_in_count).to eq 42
46
+ expect(user.avatar_url).to be_truthy
47
+ }
48
+ end
49
+ end
50
+ end
31
51
  end
32
52
  end
33
53
  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
@@ -240,6 +240,26 @@ module Contentful
240
240
  }
241
241
  end
242
242
  end
243
+
244
+ describe "users" do
245
+ describe "find" do
246
+ it "should fetch the user if under the space id" do
247
+ vcr('space/user') {
248
+ space = subject.find('space_id')
249
+ user = space.users.find('user_id')
250
+
251
+ expect(user).to be_a Contentful::Management::User
252
+ expect(user.first_name).to eq 'Bhushan'
253
+ expect(user.last_name).to eq 'Test'
254
+ expect(user.email).to eq 'bhushanlodha@gmail.com'
255
+ expect(user.activated).to eq true
256
+ expect(user.confirmed).to eq true
257
+ expect(user.sign_in_count).to eq 42
258
+ expect(user.avatar_url).to be_truthy
259
+ }
260
+ end
261
+ end
262
+ end
243
263
  end
244
264
  end
245
265
  end
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: contentful-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Piotr Protas
8
8
  - Tomasz Warkocki
9
9
  - Contentful GmbH (Andreas Tiefenthaler)
10
- autorequire:
10
+ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-05-08 00:00:00.000000000 Z
13
+ date: 2020-11-09 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: '3.0'
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: '3.0'
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: '11.0'
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: '11.0'
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: webmock
252
+ name: tins
233
253
  requirement: !ruby/object:Gem::Requirement
234
254
  requirements:
235
255
  - - "~>"
236
256
  - !ruby/object:Gem::Version
237
- version: '1'
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: '1'
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,8 @@ 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
362
+ - lib/contentful/management/organization_user_methods_factory.rb
348
363
  - lib/contentful/management/personal_access_token.rb
349
364
  - lib/contentful/management/preview_api_key.rb
350
365
  - lib/contentful/management/request.rb
@@ -370,14 +385,15 @@ files:
370
385
  - lib/contentful/management/space_association_methods_factory.rb
371
386
  - lib/contentful/management/space_environment_methods_factory.rb
372
387
  - lib/contentful/management/space_membership.rb
388
+ - lib/contentful/management/space_periodic_usage.rb
373
389
  - lib/contentful/management/space_preview_api_key_methods_factory.rb
374
390
  - lib/contentful/management/space_role_methods_factory.rb
375
391
  - lib/contentful/management/space_space_membership_methods_factory.rb
392
+ - lib/contentful/management/space_user_methods_factory.rb
376
393
  - lib/contentful/management/space_webhook_methods_factory.rb
377
394
  - lib/contentful/management/support.rb
378
395
  - lib/contentful/management/ui_extension.rb
379
396
  - lib/contentful/management/upload.rb
380
- - lib/contentful/management/usage_period.rb
381
397
  - lib/contentful/management/user.rb
382
398
  - lib/contentful/management/validation.rb
383
399
  - lib/contentful/management/version.rb
@@ -419,9 +435,9 @@ files:
419
435
  - spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
420
436
  - spec/fixtures/vcr_cassettes/api_key/issue_189.yml
421
437
  - spec/fixtures/vcr_cassettes/api_key/preview.yml
422
- - spec/fixtures/vcr_cassettes/api_usage/all.yml
423
438
  - spec/fixtures/vcr_cassettes/array_page_1.yml
424
439
  - spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
440
+ - spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
425
441
  - spec/fixtures/vcr_cassettes/asset/all.yml
426
442
  - spec/fixtures/vcr_cassettes/asset/archive.yml
427
443
  - spec/fixtures/vcr_cassettes/asset/archive_published.yml
@@ -456,6 +472,7 @@ files:
456
472
  - spec/fixtures/vcr_cassettes/asset/update_file.yml
457
473
  - spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml
458
474
  - spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml
475
+ - spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml
459
476
  - spec/fixtures/vcr_cassettes/content_type/activate.yml
460
477
  - spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml
461
478
  - spec/fixtures/vcr_cassettes/content_type/activated_false.yml
@@ -551,6 +568,9 @@ files:
551
568
  - spec/fixtures/vcr_cassettes/entry/find.yml
552
569
  - spec/fixtures/vcr_cassettes/entry/find_not_found.yml
553
570
  - spec/fixtures/vcr_cassettes/entry/issue_160.yml
571
+ - spec/fixtures/vcr_cassettes/entry/issue_215_1.yml
572
+ - spec/fixtures/vcr_cassettes/entry/issue_215_2.yml
573
+ - spec/fixtures/vcr_cassettes/entry/issue_215_3.yml
554
574
  - spec/fixtures/vcr_cassettes/entry/issue_61_1.yml
555
575
  - spec/fixtures/vcr_cassettes/entry/issue_61_2.yml
556
576
  - spec/fixtures/vcr_cassettes/entry/issue_61_3.yml
@@ -631,6 +651,9 @@ files:
631
651
  - spec/fixtures/vcr_cassettes/locale/update_code.yml
632
652
  - spec/fixtures/vcr_cassettes/locale/update_name.yml
633
653
  - spec/fixtures/vcr_cassettes/organization/all.yml
654
+ - spec/fixtures/vcr_cassettes/organization/user.yml
655
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
656
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
634
657
  - spec/fixtures/vcr_cassettes/personal_access_token/all.yml
635
658
  - spec/fixtures/vcr_cassettes/personal_access_token/create.yml
636
659
  - spec/fixtures/vcr_cassettes/personal_access_token/find.yml
@@ -698,6 +721,7 @@ files:
698
721
  - spec/fixtures/vcr_cassettes/space/save_update_space.yml
699
722
  - spec/fixtures/vcr_cassettes/space/update.yml
700
723
  - spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml
724
+ - spec/fixtures/vcr_cassettes/space/user.yml
701
725
  - spec/fixtures/vcr_cassettes/space/webhook/all.yml
702
726
  - spec/fixtures/vcr_cassettes/space/webhook/create.yml
703
727
  - spec/fixtures/vcr_cassettes/space/webhook/find.yml
@@ -706,6 +730,8 @@ files:
706
730
  - spec/fixtures/vcr_cassettes/space_memberships/delete.yml
707
731
  - spec/fixtures/vcr_cassettes/space_memberships/find.yml
708
732
  - spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
733
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
734
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
709
735
  - spec/fixtures/vcr_cassettes/ui_extension/all.yml
710
736
  - spec/fixtures/vcr_cassettes/ui_extension/create.yml
711
737
  - spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
@@ -717,7 +743,6 @@ files:
717
743
  - spec/fixtures/vcr_cassettes/upload/destroy.yml
718
744
  - spec/fixtures/vcr_cassettes/upload/find.yml
719
745
  - spec/fixtures/vcr_cassettes/upload/find_not_found.yml
720
- - spec/fixtures/vcr_cassettes/usage_period/all.yml
721
746
  - spec/fixtures/vcr_cassettes/user/find.yml
722
747
  - spec/fixtures/vcr_cassettes/webhook/all.yml
723
748
  - spec/fixtures/vcr_cassettes/webhook/create.yml
@@ -736,7 +761,6 @@ files:
736
761
  - spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
737
762
  - spec/fixtures/vcr_cassettes/webhook_health/find.yml
738
763
  - spec/lib/contentful/management/api_key_spec.rb
739
- - spec/lib/contentful/management/api_usage_spec.rb
740
764
  - spec/lib/contentful/management/array_spec.rb
741
765
  - spec/lib/contentful/management/asset_spec.rb
742
766
  - spec/lib/contentful/management/client_spec.rb
@@ -746,15 +770,16 @@ files:
746
770
  - spec/lib/contentful/management/environment_spec.rb
747
771
  - spec/lib/contentful/management/error_class_spec.rb
748
772
  - spec/lib/contentful/management/locale_spec.rb
773
+ - spec/lib/contentful/management/organization_periodic_usage_spec.rb
749
774
  - spec/lib/contentful/management/organization_spec.rb
750
775
  - spec/lib/contentful/management/personal_access_token_spec.rb
751
776
  - spec/lib/contentful/management/role_spec.rb
752
777
  - spec/lib/contentful/management/snapshot_spec.rb
753
778
  - spec/lib/contentful/management/space_membership_spec.rb
779
+ - spec/lib/contentful/management/space_periodic_usage_spec.rb
754
780
  - spec/lib/contentful/management/space_spec.rb
755
781
  - spec/lib/contentful/management/ui_extension_spec.rb
756
782
  - spec/lib/contentful/management/upload_spec.rb
757
- - spec/lib/contentful/management/usage_period_spec.rb
758
783
  - spec/lib/contentful/management/user_spec.rb
759
784
  - spec/lib/contentful/management/webhook_calls_spec.rb
760
785
  - spec/lib/contentful/management/webhook_health_spec.rb
@@ -766,7 +791,7 @@ homepage: https://github.com/contentful/contentful-management.rb
766
791
  licenses:
767
792
  - MIT
768
793
  metadata: {}
769
- post_install_message:
794
+ post_install_message:
770
795
  rdoc_options: []
771
796
  require_paths:
772
797
  - lib
@@ -782,7 +807,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
782
807
  version: '0'
783
808
  requirements: []
784
809
  rubygems_version: 3.0.3
785
- signing_key:
810
+ signing_key:
786
811
  specification_version: 4
787
812
  summary: contentful management api
788
813
  test_files:
@@ -819,9 +844,9 @@ test_files:
819
844
  - spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
820
845
  - spec/fixtures/vcr_cassettes/api_key/issue_189.yml
821
846
  - spec/fixtures/vcr_cassettes/api_key/preview.yml
822
- - spec/fixtures/vcr_cassettes/api_usage/all.yml
823
847
  - spec/fixtures/vcr_cassettes/array_page_1.yml
824
848
  - spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
849
+ - spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
825
850
  - spec/fixtures/vcr_cassettes/asset/all.yml
826
851
  - spec/fixtures/vcr_cassettes/asset/archive.yml
827
852
  - spec/fixtures/vcr_cassettes/asset/archive_published.yml
@@ -856,6 +881,7 @@ test_files:
856
881
  - spec/fixtures/vcr_cassettes/asset/update_file.yml
857
882
  - spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml
858
883
  - spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml
884
+ - spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml
859
885
  - spec/fixtures/vcr_cassettes/content_type/activate.yml
860
886
  - spec/fixtures/vcr_cassettes/content_type/activate_with_invalid_version.yml
861
887
  - spec/fixtures/vcr_cassettes/content_type/activated_false.yml
@@ -951,6 +977,9 @@ test_files:
951
977
  - spec/fixtures/vcr_cassettes/entry/find.yml
952
978
  - spec/fixtures/vcr_cassettes/entry/find_not_found.yml
953
979
  - spec/fixtures/vcr_cassettes/entry/issue_160.yml
980
+ - spec/fixtures/vcr_cassettes/entry/issue_215_1.yml
981
+ - spec/fixtures/vcr_cassettes/entry/issue_215_2.yml
982
+ - spec/fixtures/vcr_cassettes/entry/issue_215_3.yml
954
983
  - spec/fixtures/vcr_cassettes/entry/issue_61_1.yml
955
984
  - spec/fixtures/vcr_cassettes/entry/issue_61_2.yml
956
985
  - spec/fixtures/vcr_cassettes/entry/issue_61_3.yml
@@ -1031,6 +1060,9 @@ test_files:
1031
1060
  - spec/fixtures/vcr_cassettes/locale/update_code.yml
1032
1061
  - spec/fixtures/vcr_cassettes/locale/update_name.yml
1033
1062
  - spec/fixtures/vcr_cassettes/organization/all.yml
1063
+ - spec/fixtures/vcr_cassettes/organization/user.yml
1064
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
1065
+ - spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
1034
1066
  - spec/fixtures/vcr_cassettes/personal_access_token/all.yml
1035
1067
  - spec/fixtures/vcr_cassettes/personal_access_token/create.yml
1036
1068
  - spec/fixtures/vcr_cassettes/personal_access_token/find.yml
@@ -1098,6 +1130,7 @@ test_files:
1098
1130
  - spec/fixtures/vcr_cassettes/space/save_update_space.yml
1099
1131
  - spec/fixtures/vcr_cassettes/space/update.yml
1100
1132
  - spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml
1133
+ - spec/fixtures/vcr_cassettes/space/user.yml
1101
1134
  - spec/fixtures/vcr_cassettes/space/webhook/all.yml
1102
1135
  - spec/fixtures/vcr_cassettes/space/webhook/create.yml
1103
1136
  - spec/fixtures/vcr_cassettes/space/webhook/find.yml
@@ -1106,6 +1139,8 @@ test_files:
1106
1139
  - spec/fixtures/vcr_cassettes/space_memberships/delete.yml
1107
1140
  - spec/fixtures/vcr_cassettes/space_memberships/find.yml
1108
1141
  - spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
1142
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
1143
+ - spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
1109
1144
  - spec/fixtures/vcr_cassettes/ui_extension/all.yml
1110
1145
  - spec/fixtures/vcr_cassettes/ui_extension/create.yml
1111
1146
  - spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
@@ -1117,7 +1152,6 @@ test_files:
1117
1152
  - spec/fixtures/vcr_cassettes/upload/destroy.yml
1118
1153
  - spec/fixtures/vcr_cassettes/upload/find.yml
1119
1154
  - spec/fixtures/vcr_cassettes/upload/find_not_found.yml
1120
- - spec/fixtures/vcr_cassettes/usage_period/all.yml
1121
1155
  - spec/fixtures/vcr_cassettes/user/find.yml
1122
1156
  - spec/fixtures/vcr_cassettes/webhook/all.yml
1123
1157
  - spec/fixtures/vcr_cassettes/webhook/create.yml
@@ -1136,7 +1170,6 @@ test_files:
1136
1170
  - spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
1137
1171
  - spec/fixtures/vcr_cassettes/webhook_health/find.yml
1138
1172
  - spec/lib/contentful/management/api_key_spec.rb
1139
- - spec/lib/contentful/management/api_usage_spec.rb
1140
1173
  - spec/lib/contentful/management/array_spec.rb
1141
1174
  - spec/lib/contentful/management/asset_spec.rb
1142
1175
  - spec/lib/contentful/management/client_spec.rb
@@ -1146,15 +1179,16 @@ test_files:
1146
1179
  - spec/lib/contentful/management/environment_spec.rb
1147
1180
  - spec/lib/contentful/management/error_class_spec.rb
1148
1181
  - spec/lib/contentful/management/locale_spec.rb
1182
+ - spec/lib/contentful/management/organization_periodic_usage_spec.rb
1149
1183
  - spec/lib/contentful/management/organization_spec.rb
1150
1184
  - spec/lib/contentful/management/personal_access_token_spec.rb
1151
1185
  - spec/lib/contentful/management/role_spec.rb
1152
1186
  - spec/lib/contentful/management/snapshot_spec.rb
1153
1187
  - spec/lib/contentful/management/space_membership_spec.rb
1188
+ - spec/lib/contentful/management/space_periodic_usage_spec.rb
1154
1189
  - spec/lib/contentful/management/space_spec.rb
1155
1190
  - spec/lib/contentful/management/ui_extension_spec.rb
1156
1191
  - spec/lib/contentful/management/upload_spec.rb
1157
- - spec/lib/contentful/management/usage_period_spec.rb
1158
1192
  - spec/lib/contentful/management/user_spec.rb
1159
1193
  - spec/lib/contentful/management/webhook_calls_spec.rb
1160
1194
  - spec/lib/contentful/management/webhook_health_spec.rb