contentful-management 3.11.0 → 3.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/codeql.yml +32 -0
- data/CHANGELOG.md +3 -0
- data/README.md +127 -1
- data/lib/contentful/management/client.rb +27 -0
- data/lib/contentful/management/client_taxonomy_concept_methods_factory.rb +34 -0
- data/lib/contentful/management/client_taxonomy_concept_scheme_methods_factory.rb +34 -0
- data/lib/contentful/management/content_type.rb +3 -0
- data/lib/contentful/management/resource/metadata.rb +8 -1
- data/lib/contentful/management/resource_builder.rb +5 -1
- data/lib/contentful/management/resource_requester.rb +11 -0
- data/lib/contentful/management/taxonomy_concept.rb +144 -0
- data/lib/contentful/management/taxonomy_concept_scheme.rb +108 -0
- data/lib/contentful/management/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/asset/update_with_concepts.yml +137 -0
- data/spec/fixtures/vcr_cassettes/content_type/update_with_metadata.yml +171 -0
- data/spec/fixtures/vcr_cassettes/entry/update_with_concepts.yml +182 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/all.yml +83 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/ancestors.yml +155 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/create.yml +77 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/create_with_id.yml +78 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/descendants.yml +153 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/destroy.yml +152 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/find.yml +79 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/total.yml +77 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept/update.yml +158 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/all.yml +80 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/create.yml +78 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/destroy.yml +150 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/find.yml +78 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/total.yml +77 -0
- data/spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/update.yml +155 -0
- data/spec/lib/contentful/management/asset_spec.rb +20 -0
- data/spec/lib/contentful/management/content_type_spec.rb +22 -0
- data/spec/lib/contentful/management/entry_spec.rb +22 -1
- data/spec/lib/contentful/management/taxonomy_concept_scheme_spec.rb +85 -0
- data/spec/lib/contentful/management/taxonomy_concept_spec.rb +116 -0
- metadata +46 -1
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: 3.
|
|
4
|
+
version: 3.12.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piotr Protas
|
|
@@ -281,6 +281,7 @@ extra_rdoc_files: []
|
|
|
281
281
|
files:
|
|
282
282
|
- ".circleci/config.yml"
|
|
283
283
|
- ".github/CODEOWNERS"
|
|
284
|
+
- ".github/workflows/codeql.yml"
|
|
284
285
|
- ".gitignore"
|
|
285
286
|
- ".reek"
|
|
286
287
|
- ".rspec"
|
|
@@ -324,6 +325,8 @@ files:
|
|
|
324
325
|
- lib/contentful/management/client_space_methods_factory.rb
|
|
325
326
|
- lib/contentful/management/client_space_periodic_usage_methods_factory.rb
|
|
326
327
|
- lib/contentful/management/client_tag_methods_factory.rb
|
|
328
|
+
- lib/contentful/management/client_taxonomy_concept_methods_factory.rb
|
|
329
|
+
- lib/contentful/management/client_taxonomy_concept_scheme_methods_factory.rb
|
|
327
330
|
- lib/contentful/management/client_ui_extension_methods_factory.rb
|
|
328
331
|
- lib/contentful/management/client_upload_methods_factory.rb
|
|
329
332
|
- lib/contentful/management/client_user_methods_factory.rb
|
|
@@ -391,6 +394,8 @@ files:
|
|
|
391
394
|
- lib/contentful/management/space_webhook_methods_factory.rb
|
|
392
395
|
- lib/contentful/management/support.rb
|
|
393
396
|
- lib/contentful/management/tag.rb
|
|
397
|
+
- lib/contentful/management/taxonomy_concept.rb
|
|
398
|
+
- lib/contentful/management/taxonomy_concept_scheme.rb
|
|
394
399
|
- lib/contentful/management/ui_extension.rb
|
|
395
400
|
- lib/contentful/management/upload.rb
|
|
396
401
|
- lib/contentful/management/user.rb
|
|
@@ -471,6 +476,7 @@ files:
|
|
|
471
476
|
- spec/fixtures/vcr_cassettes/asset/unpublish_already_unpublished.yml
|
|
472
477
|
- spec/fixtures/vcr_cassettes/asset/update_file.yml
|
|
473
478
|
- spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml
|
|
479
|
+
- spec/fixtures/vcr_cassettes/asset/update_with_concepts.yml
|
|
474
480
|
- spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml
|
|
475
481
|
- spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml
|
|
476
482
|
- spec/fixtures/vcr_cassettes/content_type/activate.yml
|
|
@@ -529,6 +535,7 @@ files:
|
|
|
529
535
|
- spec/fixtures/vcr_cassettes/content_type/update_remove_field.yml
|
|
530
536
|
- spec/fixtures/vcr_cassettes/content_type/update_with_deleted_true.yml
|
|
531
537
|
- spec/fixtures/vcr_cassettes/content_type/update_with_fields.yml
|
|
538
|
+
- spec/fixtures/vcr_cassettes/content_type/update_with_metadata.yml
|
|
532
539
|
- spec/fixtures/vcr_cassettes/content_type/update_with_one_new_field.yml
|
|
533
540
|
- spec/fixtures/vcr_cassettes/content_type/validation/in.yml
|
|
534
541
|
- spec/fixtures/vcr_cassettes/content_type/validation/in_add.yml
|
|
@@ -628,6 +635,7 @@ files:
|
|
|
628
635
|
- spec/fixtures/vcr_cassettes/entry/update.yml
|
|
629
636
|
- spec/fixtures/vcr_cassettes/entry/update_bool_field.yml
|
|
630
637
|
- spec/fixtures/vcr_cassettes/entry/update_unlocalized_field.yml
|
|
638
|
+
- spec/fixtures/vcr_cassettes/entry/update_with_concepts.yml
|
|
631
639
|
- spec/fixtures/vcr_cassettes/entry/update_with_custom_locale.yml
|
|
632
640
|
- spec/fixtures/vcr_cassettes/entry/updated_false.yml
|
|
633
641
|
- spec/fixtures/vcr_cassettes/entry/updated_true.yml
|
|
@@ -758,6 +766,21 @@ files:
|
|
|
758
766
|
- spec/fixtures/vcr_cassettes/tag/remove_tag_from_asset.yml
|
|
759
767
|
- spec/fixtures/vcr_cassettes/tag/remove_tag_from_entry.yml
|
|
760
768
|
- spec/fixtures/vcr_cassettes/tag/update.yml
|
|
769
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/all.yml
|
|
770
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/ancestors.yml
|
|
771
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/create.yml
|
|
772
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/create_with_id.yml
|
|
773
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/descendants.yml
|
|
774
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/destroy.yml
|
|
775
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/find.yml
|
|
776
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/total.yml
|
|
777
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/update.yml
|
|
778
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/all.yml
|
|
779
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/create.yml
|
|
780
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/destroy.yml
|
|
781
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/find.yml
|
|
782
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/total.yml
|
|
783
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/update.yml
|
|
761
784
|
- spec/fixtures/vcr_cassettes/ui_extension/all.yml
|
|
762
785
|
- spec/fixtures/vcr_cassettes/ui_extension/create.yml
|
|
763
786
|
- spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
|
|
@@ -805,6 +828,8 @@ files:
|
|
|
805
828
|
- spec/lib/contentful/management/space_periodic_usage_spec.rb
|
|
806
829
|
- spec/lib/contentful/management/space_spec.rb
|
|
807
830
|
- spec/lib/contentful/management/tag_spec.rb
|
|
831
|
+
- spec/lib/contentful/management/taxonomy_concept_scheme_spec.rb
|
|
832
|
+
- spec/lib/contentful/management/taxonomy_concept_spec.rb
|
|
808
833
|
- spec/lib/contentful/management/ui_extension_spec.rb
|
|
809
834
|
- spec/lib/contentful/management/upload_spec.rb
|
|
810
835
|
- spec/lib/contentful/management/user_spec.rb
|
|
@@ -906,6 +931,7 @@ test_files:
|
|
|
906
931
|
- spec/fixtures/vcr_cassettes/asset/unpublish_already_unpublished.yml
|
|
907
932
|
- spec/fixtures/vcr_cassettes/asset/update_file.yml
|
|
908
933
|
- spec/fixtures/vcr_cassettes/asset/update_to_specified_locale.yml
|
|
934
|
+
- spec/fixtures/vcr_cassettes/asset/update_with_concepts.yml
|
|
909
935
|
- spec/fixtures/vcr_cassettes/asset/update_with_default_locale_without_file.yml
|
|
910
936
|
- spec/fixtures/vcr_cassettes/content_type/196_retain_environment_id.yml
|
|
911
937
|
- spec/fixtures/vcr_cassettes/content_type/activate.yml
|
|
@@ -964,6 +990,7 @@ test_files:
|
|
|
964
990
|
- spec/fixtures/vcr_cassettes/content_type/update_remove_field.yml
|
|
965
991
|
- spec/fixtures/vcr_cassettes/content_type/update_with_deleted_true.yml
|
|
966
992
|
- spec/fixtures/vcr_cassettes/content_type/update_with_fields.yml
|
|
993
|
+
- spec/fixtures/vcr_cassettes/content_type/update_with_metadata.yml
|
|
967
994
|
- spec/fixtures/vcr_cassettes/content_type/update_with_one_new_field.yml
|
|
968
995
|
- spec/fixtures/vcr_cassettes/content_type/validation/in.yml
|
|
969
996
|
- spec/fixtures/vcr_cassettes/content_type/validation/in_add.yml
|
|
@@ -1063,6 +1090,7 @@ test_files:
|
|
|
1063
1090
|
- spec/fixtures/vcr_cassettes/entry/update.yml
|
|
1064
1091
|
- spec/fixtures/vcr_cassettes/entry/update_bool_field.yml
|
|
1065
1092
|
- spec/fixtures/vcr_cassettes/entry/update_unlocalized_field.yml
|
|
1093
|
+
- spec/fixtures/vcr_cassettes/entry/update_with_concepts.yml
|
|
1066
1094
|
- spec/fixtures/vcr_cassettes/entry/update_with_custom_locale.yml
|
|
1067
1095
|
- spec/fixtures/vcr_cassettes/entry/updated_false.yml
|
|
1068
1096
|
- spec/fixtures/vcr_cassettes/entry/updated_true.yml
|
|
@@ -1193,6 +1221,21 @@ test_files:
|
|
|
1193
1221
|
- spec/fixtures/vcr_cassettes/tag/remove_tag_from_asset.yml
|
|
1194
1222
|
- spec/fixtures/vcr_cassettes/tag/remove_tag_from_entry.yml
|
|
1195
1223
|
- spec/fixtures/vcr_cassettes/tag/update.yml
|
|
1224
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/all.yml
|
|
1225
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/ancestors.yml
|
|
1226
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/create.yml
|
|
1227
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/create_with_id.yml
|
|
1228
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/descendants.yml
|
|
1229
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/destroy.yml
|
|
1230
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/find.yml
|
|
1231
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/total.yml
|
|
1232
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept/update.yml
|
|
1233
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/all.yml
|
|
1234
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/create.yml
|
|
1235
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/destroy.yml
|
|
1236
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/find.yml
|
|
1237
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/total.yml
|
|
1238
|
+
- spec/fixtures/vcr_cassettes/taxonomy_concept_scheme/update.yml
|
|
1196
1239
|
- spec/fixtures/vcr_cassettes/ui_extension/all.yml
|
|
1197
1240
|
- spec/fixtures/vcr_cassettes/ui_extension/create.yml
|
|
1198
1241
|
- spec/fixtures/vcr_cassettes/ui_extension/create_parameters.yml
|
|
@@ -1240,6 +1283,8 @@ test_files:
|
|
|
1240
1283
|
- spec/lib/contentful/management/space_periodic_usage_spec.rb
|
|
1241
1284
|
- spec/lib/contentful/management/space_spec.rb
|
|
1242
1285
|
- spec/lib/contentful/management/tag_spec.rb
|
|
1286
|
+
- spec/lib/contentful/management/taxonomy_concept_scheme_spec.rb
|
|
1287
|
+
- spec/lib/contentful/management/taxonomy_concept_spec.rb
|
|
1243
1288
|
- spec/lib/contentful/management/ui_extension_spec.rb
|
|
1244
1289
|
- spec/lib/contentful/management/upload_spec.rb
|
|
1245
1290
|
- spec/lib/contentful/management/user_spec.rb
|