contentful-management 2.11.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +36 -0
- data/README.md +30 -13
- data/contentful-management.gemspec +1 -1
- data/lib/contentful/management/asset.rb +2 -0
- 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_api_usage_methods_factory.rb → client_space_periodic_usage_methods_factory.rb} +4 -11
- data/lib/contentful/management/entry.rb +16 -12
- data/lib/contentful/management/field.rb +3 -1
- data/lib/contentful/management/organization.rb +18 -8
- data/lib/contentful/management/{api_usage.rb → organization_periodic_usage.rb} +13 -18
- data/lib/contentful/management/organization_user_methods_factory.rb +18 -0
- data/lib/contentful/management/resource.rb +3 -2
- data/lib/contentful/management/resource/metadata.rb +44 -0
- data/lib/contentful/management/resource_builder.rb +8 -6
- data/lib/contentful/management/space.rb +10 -0
- data/lib/contentful/management/{usage_period.rb → space_periodic_usage.rb} +12 -9
- data/lib/contentful/management/space_user_methods_factory.rb +19 -0
- data/lib/contentful/management/tag.rb +14 -0
- data/lib/contentful/management/user.rb +7 -1
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/asset/issue_219.yml +442 -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/entry/issue_219.yml +535 -0
- data/spec/fixtures/vcr_cassettes/organization/user.yml +238 -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/user.yml +254 -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 +31 -0
- data/spec/lib/contentful/management/entry_spec.rb +77 -0
- data/spec/lib/contentful/management/organization_periodic_usage_spec.rb +36 -0
- data/spec/lib/contentful/management/organization_spec.rb +20 -0
- data/spec/lib/contentful/management/space_periodic_usage_spec.rb +36 -0
- data/spec/lib/contentful/management/space_spec.rb +20 -0
- metadata +43 -21
- 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
@@ -457,6 +457,37 @@ module Contentful
|
|
457
457
|
end
|
458
458
|
|
459
459
|
describe 'issues' do
|
460
|
+
describe 'metadata and tags do not break entry fetching - #219' do
|
461
|
+
let(:space_id) { '2l3j7k267g9k' }
|
462
|
+
let(:space) { client.spaces.find(space_id) }
|
463
|
+
let(:environment) { space.environments.find('master') }
|
464
|
+
let(:asset_id) { '2lxYoWv3LWHe0yhO3w2Yid' }
|
465
|
+
|
466
|
+
it 'can load an entry with tags' do
|
467
|
+
vcr('asset/issue_219') {
|
468
|
+
expect {
|
469
|
+
entry = environment.assets.find(asset_id)
|
470
|
+
}.not_to raise_error
|
471
|
+
}
|
472
|
+
end
|
473
|
+
|
474
|
+
it 'hydrates tags' do
|
475
|
+
vcr('asset/issue_219') {
|
476
|
+
asset = environment.assets.find(asset_id)
|
477
|
+
expect(asset._metadata[:tags].first).to be_a Contentful::Management::Link
|
478
|
+
}
|
479
|
+
end
|
480
|
+
|
481
|
+
it 'loads tag links with their proper attributes' do
|
482
|
+
vcr('asset/issue_219') {
|
483
|
+
asset = environment.assets.find(asset_id)
|
484
|
+
tag = asset._metadata[:tags].first
|
485
|
+
expect(tag.id).to eq 'mobQa'
|
486
|
+
expect(tag.link_type).to eq 'Tag'
|
487
|
+
}
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
460
491
|
describe "Pagination on assets doesn't work without first calling limit - #143" do
|
461
492
|
it 'shouldnt break on next page without parameters on original query' do
|
462
493
|
vcr('asset/143_assets_next_page') do
|
@@ -866,6 +866,83 @@ 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 'metadata and tags do not break entry fetching - #219' do
|
874
|
+
let(:space_id) { '2l3j7k267g9k' }
|
875
|
+
let(:entry_id) { '2AtqG09C50s7kE66POudAV' }
|
876
|
+
|
877
|
+
it 'can load an entry with tags' do
|
878
|
+
vcr('entry/issue_219') {
|
879
|
+
expect {
|
880
|
+
entry = environment.entries.find(entry_id)
|
881
|
+
}.not_to raise_error
|
882
|
+
}
|
883
|
+
end
|
884
|
+
|
885
|
+
it 'hydrates tags' do
|
886
|
+
vcr('entry/issue_219') {
|
887
|
+
entry = environment.entries.find(entry_id)
|
888
|
+
expect(entry._metadata[:tags].first).to be_a Contentful::Management::Link
|
889
|
+
}
|
890
|
+
end
|
891
|
+
|
892
|
+
it 'loads tag links with their proper attributes' do
|
893
|
+
vcr('entry/issue_219') {
|
894
|
+
entry = environment.entries.find(entry_id)
|
895
|
+
tag = entry._metadata[:tags].first
|
896
|
+
expect(tag.id).to eq 'mobQa'
|
897
|
+
expect(tag.link_type).to eq 'Tag'
|
898
|
+
}
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
902
|
+
describe 'json fields do not get reset on save - #215' do
|
903
|
+
it 'can load a json array, modify it, save it, and retrieve it' do
|
904
|
+
vcr('entry/issue_215_1') {
|
905
|
+
entry = environment.entries.find('30QNJFxJQwLpdqZn8CHsHf')
|
906
|
+
expect(entry.json).to eq([1, 2, 3])
|
907
|
+
|
908
|
+
entry.json = entry.json.map { |e| e + 1 }
|
909
|
+
entry.save
|
910
|
+
|
911
|
+
entry.reload
|
912
|
+
|
913
|
+
expect(entry.json).to eq([2, 3, 4])
|
914
|
+
}
|
915
|
+
end
|
916
|
+
|
917
|
+
it 'can load a json object, modify it, save it, and retrieve it' do
|
918
|
+
vcr('entry/issue_215_2') {
|
919
|
+
entry = environment.entries.find('6kcaBzW7xgjVr825PmGCvP')
|
920
|
+
expect(entry.json).to eq({ "a" => 1 })
|
921
|
+
|
922
|
+
entry.json["a"] = 2
|
923
|
+
entry.save
|
924
|
+
|
925
|
+
entry.reload
|
926
|
+
|
927
|
+
expect(entry.json).to eq({ "a" => 2 })
|
928
|
+
}
|
929
|
+
end
|
930
|
+
|
931
|
+
it 'can load an empty json object, set it, save it, and retrieve it' do
|
932
|
+
vcr('entry/issue_215_3') {
|
933
|
+
entry = environment.entries.find('4aVBlJajh2rZb7ybW2tY2X')
|
934
|
+
expect(entry.json).to be_nil
|
935
|
+
|
936
|
+
entry.json = { "a" => 1 }
|
937
|
+
entry.save
|
938
|
+
|
939
|
+
entry.reload
|
940
|
+
|
941
|
+
expect(entry.json).to eq({ "a" => 1 })
|
942
|
+
}
|
943
|
+
end
|
944
|
+
end
|
945
|
+
|
869
946
|
describe 'can send query parameters when requesting through environment proxy - #160' do
|
870
947
|
it 'can filter by content type and set a limit different than 100' do
|
871
948
|
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:
|
4
|
+
version: 3.0.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:
|
13
|
+
date: 2021-03-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: http
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 12.3.3
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 12.3.3
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: public_suffix
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -307,12 +307,10 @@ files:
|
|
307
307
|
- examples/create_space.rb
|
308
308
|
- lib/contentful/management.rb
|
309
309
|
- lib/contentful/management/api_key.rb
|
310
|
-
- lib/contentful/management/api_usage.rb
|
311
310
|
- lib/contentful/management/array.rb
|
312
311
|
- lib/contentful/management/asset.rb
|
313
312
|
- lib/contentful/management/client.rb
|
314
313
|
- lib/contentful/management/client_api_key_methods_factory.rb
|
315
|
-
- lib/contentful/management/client_api_usage_methods_factory.rb
|
316
314
|
- lib/contentful/management/client_asset_methods_factory.rb
|
317
315
|
- lib/contentful/management/client_association_all_published_method_factory.rb
|
318
316
|
- lib/contentful/management/client_association_methods_factory.rb
|
@@ -322,15 +320,16 @@ files:
|
|
322
320
|
- lib/contentful/management/client_environment_methods_factory.rb
|
323
321
|
- lib/contentful/management/client_locale_methods_factory.rb
|
324
322
|
- lib/contentful/management/client_organization_methods_factory.rb
|
323
|
+
- lib/contentful/management/client_organization_periodic_usage_methods_factory.rb
|
325
324
|
- lib/contentful/management/client_personal_access_tokens_methods_factory.rb
|
326
325
|
- lib/contentful/management/client_preview_api_key_methods_factory.rb
|
327
326
|
- lib/contentful/management/client_role_methods_factory.rb
|
328
327
|
- lib/contentful/management/client_snapshot_methods_factory.rb
|
329
328
|
- lib/contentful/management/client_space_membership_methods_factory.rb
|
330
329
|
- lib/contentful/management/client_space_methods_factory.rb
|
330
|
+
- lib/contentful/management/client_space_periodic_usage_methods_factory.rb
|
331
331
|
- lib/contentful/management/client_ui_extension_methods_factory.rb
|
332
332
|
- lib/contentful/management/client_upload_methods_factory.rb
|
333
|
-
- lib/contentful/management/client_usage_period_methods_factory.rb
|
334
333
|
- lib/contentful/management/client_user_methods_factory.rb
|
335
334
|
- lib/contentful/management/client_webhook_call_methods_factory.rb
|
336
335
|
- lib/contentful/management/client_webhook_health_methods_factory.rb
|
@@ -359,6 +358,8 @@ files:
|
|
359
358
|
- lib/contentful/management/locale.rb
|
360
359
|
- lib/contentful/management/location.rb
|
361
360
|
- lib/contentful/management/organization.rb
|
361
|
+
- lib/contentful/management/organization_periodic_usage.rb
|
362
|
+
- lib/contentful/management/organization_user_methods_factory.rb
|
362
363
|
- lib/contentful/management/personal_access_token.rb
|
363
364
|
- lib/contentful/management/preview_api_key.rb
|
364
365
|
- lib/contentful/management/request.rb
|
@@ -371,6 +372,7 @@ files:
|
|
371
372
|
- lib/contentful/management/resource/environment_aware.rb
|
372
373
|
- lib/contentful/management/resource/field_aware.rb
|
373
374
|
- lib/contentful/management/resource/fields.rb
|
375
|
+
- lib/contentful/management/resource/metadata.rb
|
374
376
|
- lib/contentful/management/resource/publisher.rb
|
375
377
|
- lib/contentful/management/resource/refresher.rb
|
376
378
|
- lib/contentful/management/resource/system_properties.rb
|
@@ -384,14 +386,16 @@ files:
|
|
384
386
|
- lib/contentful/management/space_association_methods_factory.rb
|
385
387
|
- lib/contentful/management/space_environment_methods_factory.rb
|
386
388
|
- lib/contentful/management/space_membership.rb
|
389
|
+
- lib/contentful/management/space_periodic_usage.rb
|
387
390
|
- lib/contentful/management/space_preview_api_key_methods_factory.rb
|
388
391
|
- lib/contentful/management/space_role_methods_factory.rb
|
389
392
|
- lib/contentful/management/space_space_membership_methods_factory.rb
|
393
|
+
- lib/contentful/management/space_user_methods_factory.rb
|
390
394
|
- lib/contentful/management/space_webhook_methods_factory.rb
|
391
395
|
- lib/contentful/management/support.rb
|
396
|
+
- lib/contentful/management/tag.rb
|
392
397
|
- lib/contentful/management/ui_extension.rb
|
393
398
|
- lib/contentful/management/upload.rb
|
394
|
-
- lib/contentful/management/usage_period.rb
|
395
399
|
- lib/contentful/management/user.rb
|
396
400
|
- lib/contentful/management/validation.rb
|
397
401
|
- lib/contentful/management/version.rb
|
@@ -433,7 +437,6 @@ files:
|
|
433
437
|
- spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
|
434
438
|
- spec/fixtures/vcr_cassettes/api_key/issue_189.yml
|
435
439
|
- spec/fixtures/vcr_cassettes/api_key/preview.yml
|
436
|
-
- spec/fixtures/vcr_cassettes/api_usage/all.yml
|
437
440
|
- spec/fixtures/vcr_cassettes/array_page_1.yml
|
438
441
|
- spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
|
439
442
|
- spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
|
@@ -450,6 +453,7 @@ files:
|
|
450
453
|
- spec/fixtures/vcr_cassettes/asset/destroy_published.yml
|
451
454
|
- spec/fixtures/vcr_cassettes/asset/find.yml
|
452
455
|
- spec/fixtures/vcr_cassettes/asset/find_not_found.yml
|
456
|
+
- spec/fixtures/vcr_cassettes/asset/issue_219.yml
|
453
457
|
- spec/fixtures/vcr_cassettes/asset/limited_assets_next_page.yml
|
454
458
|
- spec/fixtures/vcr_cassettes/asset/locale.yml
|
455
459
|
- spec/fixtures/vcr_cassettes/asset/process.yml
|
@@ -567,6 +571,10 @@ files:
|
|
567
571
|
- spec/fixtures/vcr_cassettes/entry/find.yml
|
568
572
|
- spec/fixtures/vcr_cassettes/entry/find_not_found.yml
|
569
573
|
- spec/fixtures/vcr_cassettes/entry/issue_160.yml
|
574
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_1.yml
|
575
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_2.yml
|
576
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_3.yml
|
577
|
+
- spec/fixtures/vcr_cassettes/entry/issue_219.yml
|
570
578
|
- spec/fixtures/vcr_cassettes/entry/issue_61_1.yml
|
571
579
|
- spec/fixtures/vcr_cassettes/entry/issue_61_2.yml
|
572
580
|
- spec/fixtures/vcr_cassettes/entry/issue_61_3.yml
|
@@ -647,6 +655,9 @@ files:
|
|
647
655
|
- spec/fixtures/vcr_cassettes/locale/update_code.yml
|
648
656
|
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
649
657
|
- spec/fixtures/vcr_cassettes/organization/all.yml
|
658
|
+
- spec/fixtures/vcr_cassettes/organization/user.yml
|
659
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
|
660
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
|
650
661
|
- spec/fixtures/vcr_cassettes/personal_access_token/all.yml
|
651
662
|
- spec/fixtures/vcr_cassettes/personal_access_token/create.yml
|
652
663
|
- spec/fixtures/vcr_cassettes/personal_access_token/find.yml
|
@@ -714,6 +725,7 @@ files:
|
|
714
725
|
- spec/fixtures/vcr_cassettes/space/save_update_space.yml
|
715
726
|
- spec/fixtures/vcr_cassettes/space/update.yml
|
716
727
|
- spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml
|
728
|
+
- spec/fixtures/vcr_cassettes/space/user.yml
|
717
729
|
- spec/fixtures/vcr_cassettes/space/webhook/all.yml
|
718
730
|
- spec/fixtures/vcr_cassettes/space/webhook/create.yml
|
719
731
|
- spec/fixtures/vcr_cassettes/space/webhook/find.yml
|
@@ -722,6 +734,8 @@ files:
|
|
722
734
|
- spec/fixtures/vcr_cassettes/space_memberships/delete.yml
|
723
735
|
- spec/fixtures/vcr_cassettes/space_memberships/find.yml
|
724
736
|
- spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
|
737
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
|
738
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
|
725
739
|
- spec/fixtures/vcr_cassettes/ui_extension/all.yml
|
726
740
|
- spec/fixtures/vcr_cassettes/ui_extension/create.yml
|
727
741
|
- spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
|
@@ -733,7 +747,6 @@ files:
|
|
733
747
|
- spec/fixtures/vcr_cassettes/upload/destroy.yml
|
734
748
|
- spec/fixtures/vcr_cassettes/upload/find.yml
|
735
749
|
- spec/fixtures/vcr_cassettes/upload/find_not_found.yml
|
736
|
-
- spec/fixtures/vcr_cassettes/usage_period/all.yml
|
737
750
|
- spec/fixtures/vcr_cassettes/user/find.yml
|
738
751
|
- spec/fixtures/vcr_cassettes/webhook/all.yml
|
739
752
|
- spec/fixtures/vcr_cassettes/webhook/create.yml
|
@@ -752,7 +765,6 @@ files:
|
|
752
765
|
- spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
|
753
766
|
- spec/fixtures/vcr_cassettes/webhook_health/find.yml
|
754
767
|
- spec/lib/contentful/management/api_key_spec.rb
|
755
|
-
- spec/lib/contentful/management/api_usage_spec.rb
|
756
768
|
- spec/lib/contentful/management/array_spec.rb
|
757
769
|
- spec/lib/contentful/management/asset_spec.rb
|
758
770
|
- spec/lib/contentful/management/client_spec.rb
|
@@ -762,15 +774,16 @@ files:
|
|
762
774
|
- spec/lib/contentful/management/environment_spec.rb
|
763
775
|
- spec/lib/contentful/management/error_class_spec.rb
|
764
776
|
- spec/lib/contentful/management/locale_spec.rb
|
777
|
+
- spec/lib/contentful/management/organization_periodic_usage_spec.rb
|
765
778
|
- spec/lib/contentful/management/organization_spec.rb
|
766
779
|
- spec/lib/contentful/management/personal_access_token_spec.rb
|
767
780
|
- spec/lib/contentful/management/role_spec.rb
|
768
781
|
- spec/lib/contentful/management/snapshot_spec.rb
|
769
782
|
- spec/lib/contentful/management/space_membership_spec.rb
|
783
|
+
- spec/lib/contentful/management/space_periodic_usage_spec.rb
|
770
784
|
- spec/lib/contentful/management/space_spec.rb
|
771
785
|
- spec/lib/contentful/management/ui_extension_spec.rb
|
772
786
|
- spec/lib/contentful/management/upload_spec.rb
|
773
|
-
- spec/lib/contentful/management/usage_period_spec.rb
|
774
787
|
- spec/lib/contentful/management/user_spec.rb
|
775
788
|
- spec/lib/contentful/management/webhook_calls_spec.rb
|
776
789
|
- spec/lib/contentful/management/webhook_health_spec.rb
|
@@ -782,7 +795,7 @@ homepage: https://github.com/contentful/contentful-management.rb
|
|
782
795
|
licenses:
|
783
796
|
- MIT
|
784
797
|
metadata: {}
|
785
|
-
post_install_message:
|
798
|
+
post_install_message:
|
786
799
|
rdoc_options: []
|
787
800
|
require_paths:
|
788
801
|
- lib
|
@@ -798,7 +811,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
798
811
|
version: '0'
|
799
812
|
requirements: []
|
800
813
|
rubygems_version: 3.0.3
|
801
|
-
signing_key:
|
814
|
+
signing_key:
|
802
815
|
specification_version: 4
|
803
816
|
summary: contentful management api
|
804
817
|
test_files:
|
@@ -835,7 +848,6 @@ test_files:
|
|
835
848
|
- spec/fixtures/vcr_cassettes/api_key/find_for_space_not_found.yml
|
836
849
|
- spec/fixtures/vcr_cassettes/api_key/issue_189.yml
|
837
850
|
- spec/fixtures/vcr_cassettes/api_key/preview.yml
|
838
|
-
- spec/fixtures/vcr_cassettes/api_usage/all.yml
|
839
851
|
- spec/fixtures/vcr_cassettes/array_page_1.yml
|
840
852
|
- spec/fixtures/vcr_cassettes/asset/143_assets_next_page.yml
|
841
853
|
- spec/fixtures/vcr_cassettes/asset/196_environment_id.yml
|
@@ -852,6 +864,7 @@ test_files:
|
|
852
864
|
- spec/fixtures/vcr_cassettes/asset/destroy_published.yml
|
853
865
|
- spec/fixtures/vcr_cassettes/asset/find.yml
|
854
866
|
- spec/fixtures/vcr_cassettes/asset/find_not_found.yml
|
867
|
+
- spec/fixtures/vcr_cassettes/asset/issue_219.yml
|
855
868
|
- spec/fixtures/vcr_cassettes/asset/limited_assets_next_page.yml
|
856
869
|
- spec/fixtures/vcr_cassettes/asset/locale.yml
|
857
870
|
- spec/fixtures/vcr_cassettes/asset/process.yml
|
@@ -969,6 +982,10 @@ test_files:
|
|
969
982
|
- spec/fixtures/vcr_cassettes/entry/find.yml
|
970
983
|
- spec/fixtures/vcr_cassettes/entry/find_not_found.yml
|
971
984
|
- spec/fixtures/vcr_cassettes/entry/issue_160.yml
|
985
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_1.yml
|
986
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_2.yml
|
987
|
+
- spec/fixtures/vcr_cassettes/entry/issue_215_3.yml
|
988
|
+
- spec/fixtures/vcr_cassettes/entry/issue_219.yml
|
972
989
|
- spec/fixtures/vcr_cassettes/entry/issue_61_1.yml
|
973
990
|
- spec/fixtures/vcr_cassettes/entry/issue_61_2.yml
|
974
991
|
- spec/fixtures/vcr_cassettes/entry/issue_61_3.yml
|
@@ -1049,6 +1066,9 @@ test_files:
|
|
1049
1066
|
- spec/fixtures/vcr_cassettes/locale/update_code.yml
|
1050
1067
|
- spec/fixtures/vcr_cassettes/locale/update_name.yml
|
1051
1068
|
- spec/fixtures/vcr_cassettes/organization/all.yml
|
1069
|
+
- spec/fixtures/vcr_cassettes/organization/user.yml
|
1070
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/all.yml
|
1071
|
+
- spec/fixtures/vcr_cassettes/organization_periodic_usage/filters.yml
|
1052
1072
|
- spec/fixtures/vcr_cassettes/personal_access_token/all.yml
|
1053
1073
|
- spec/fixtures/vcr_cassettes/personal_access_token/create.yml
|
1054
1074
|
- spec/fixtures/vcr_cassettes/personal_access_token/find.yml
|
@@ -1116,6 +1136,7 @@ test_files:
|
|
1116
1136
|
- spec/fixtures/vcr_cassettes/space/save_update_space.yml
|
1117
1137
|
- spec/fixtures/vcr_cassettes/space/update.yml
|
1118
1138
|
- spec/fixtures/vcr_cassettes/space/update_with_the_same_data.yml
|
1139
|
+
- spec/fixtures/vcr_cassettes/space/user.yml
|
1119
1140
|
- spec/fixtures/vcr_cassettes/space/webhook/all.yml
|
1120
1141
|
- spec/fixtures/vcr_cassettes/space/webhook/create.yml
|
1121
1142
|
- spec/fixtures/vcr_cassettes/space/webhook/find.yml
|
@@ -1124,6 +1145,8 @@ test_files:
|
|
1124
1145
|
- spec/fixtures/vcr_cassettes/space_memberships/delete.yml
|
1125
1146
|
- spec/fixtures/vcr_cassettes/space_memberships/find.yml
|
1126
1147
|
- spec/fixtures/vcr_cassettes/space_memberships/find_2.yml
|
1148
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/all.yml
|
1149
|
+
- spec/fixtures/vcr_cassettes/space_periodic_usage/filters.yml
|
1127
1150
|
- spec/fixtures/vcr_cassettes/ui_extension/all.yml
|
1128
1151
|
- spec/fixtures/vcr_cassettes/ui_extension/create.yml
|
1129
1152
|
- spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
|
@@ -1135,7 +1158,6 @@ test_files:
|
|
1135
1158
|
- spec/fixtures/vcr_cassettes/upload/destroy.yml
|
1136
1159
|
- spec/fixtures/vcr_cassettes/upload/find.yml
|
1137
1160
|
- spec/fixtures/vcr_cassettes/upload/find_not_found.yml
|
1138
|
-
- spec/fixtures/vcr_cassettes/usage_period/all.yml
|
1139
1161
|
- spec/fixtures/vcr_cassettes/user/find.yml
|
1140
1162
|
- spec/fixtures/vcr_cassettes/webhook/all.yml
|
1141
1163
|
- spec/fixtures/vcr_cassettes/webhook/create.yml
|
@@ -1154,7 +1176,6 @@ test_files:
|
|
1154
1176
|
- spec/fixtures/vcr_cassettes/webhook_call/find_not_found.yml
|
1155
1177
|
- spec/fixtures/vcr_cassettes/webhook_health/find.yml
|
1156
1178
|
- spec/lib/contentful/management/api_key_spec.rb
|
1157
|
-
- spec/lib/contentful/management/api_usage_spec.rb
|
1158
1179
|
- spec/lib/contentful/management/array_spec.rb
|
1159
1180
|
- spec/lib/contentful/management/asset_spec.rb
|
1160
1181
|
- spec/lib/contentful/management/client_spec.rb
|
@@ -1164,15 +1185,16 @@ test_files:
|
|
1164
1185
|
- spec/lib/contentful/management/environment_spec.rb
|
1165
1186
|
- spec/lib/contentful/management/error_class_spec.rb
|
1166
1187
|
- spec/lib/contentful/management/locale_spec.rb
|
1188
|
+
- spec/lib/contentful/management/organization_periodic_usage_spec.rb
|
1167
1189
|
- spec/lib/contentful/management/organization_spec.rb
|
1168
1190
|
- spec/lib/contentful/management/personal_access_token_spec.rb
|
1169
1191
|
- spec/lib/contentful/management/role_spec.rb
|
1170
1192
|
- spec/lib/contentful/management/snapshot_spec.rb
|
1171
1193
|
- spec/lib/contentful/management/space_membership_spec.rb
|
1194
|
+
- spec/lib/contentful/management/space_periodic_usage_spec.rb
|
1172
1195
|
- spec/lib/contentful/management/space_spec.rb
|
1173
1196
|
- spec/lib/contentful/management/ui_extension_spec.rb
|
1174
1197
|
- spec/lib/contentful/management/upload_spec.rb
|
1175
|
-
- spec/lib/contentful/management/usage_period_spec.rb
|
1176
1198
|
- spec/lib/contentful/management/user_spec.rb
|
1177
1199
|
- spec/lib/contentful/management/webhook_calls_spec.rb
|
1178
1200
|
- spec/lib/contentful/management/webhook_health_spec.rb
|