contentful-management 2.10.0 → 2.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a8e47f9397c8d3c6481770f27abc03ad28789d7c4a60f504a9ce9ebd862fa634
4
- data.tar.gz: 71e9d37e046d4c5027bbe2b596f2ddf94d6000d36bfad0c088dd6f7fbff63846
3
+ metadata.gz: f6053a222f0246ee05c699c0f53a7a0c56834aff0dfb109dbe8e2e00336cafb7
4
+ data.tar.gz: 7ea4cad8b0090a73e11d1ce14058d84ad8aa840d928335d12627f11441c8266d
5
5
  SHA512:
6
- metadata.gz: 232a59d47e991f9f01acbadc31136b877729f6c51efd198280fbb29311aea0bfb4b85f8ae3ac866d8a90b9aad68c3c2004fd04ebeded9dec1ab5f24c902bf865
7
- data.tar.gz: 5915e699b6f16935b5266ab0964b105d60728b8ecf1d6796e5c2e9d685475f32ae5e81b6c50220b9828f7403f30a5db2b5caadd8d63568480cf2c2e225721f79
6
+ metadata.gz: 3be70b623839233a8c98f4c8442fdb1e5d4b24a8d67852181597f90a8d5cb443b83bd6f8a27fa0a66e10a9b393d490d96cc777c02be54f2fcd99cec2685d0022
7
+ data.tar.gz: 98b4aaa70e1594f19d113893c26ab6d53c292e105591c21e51c21095a0c6f79896d396f0ca55bbab54cc9f52809595fb9c9311b2a1ec510bd4a9cda0130726df
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Master
4
4
 
5
+ ## 2.11.0
6
+ ### Added
7
+ * Added support for Rich Text specific validations. [#200](https://github.com/contentful/contentful-management.rb/pull/200)
8
+
9
+ ### Changed
10
+ * Updated maximum allowed version of the `http` gem. [#205](https://github.com/contentful/contentful-management.rb/issues/205)
11
+
5
12
  ## 2.10.0
6
13
  ### Added
7
14
  * Added support for query parameters on the Space endpoints. [#197](https://github.com/contentful/contentful-management.rb/pull/197)
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
18
  spec.require_paths = ['lib']
19
19
 
20
- spec.add_dependency 'http', '> 1.0', '< 3.0'
20
+ spec.add_dependency 'http', '> 1.0', '< 5.0'
21
21
  spec.add_dependency 'multi_json', '~> 1'
22
22
  spec.add_dependency 'json', '>= 1.8', '< 3.0'
23
23
 
@@ -33,6 +33,7 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency 'rubocop', '~> 0.49.1'
34
34
  spec.add_development_dependency 'listen', '~> 3.0'
35
35
  spec.add_development_dependency 'vcr', '~> 4.0'
36
- spec.add_development_dependency 'webmock', '~> 1', '>= 1.17.3'
36
+ spec.add_development_dependency 'webmock'
37
+ spec.add_development_dependency 'tins', '~> 1.6.0'
37
38
  spec.add_development_dependency 'simplecov'
38
39
  end
@@ -4,6 +4,9 @@ module Contentful
4
4
  module Management
5
5
  # A ContentType's validations schema
6
6
  class Validation
7
+ # Properties not specific to a field type validation
8
+ NON_TYPE_PROPERTIES = %i[validations message].freeze
9
+
7
10
  include Contentful::Management::Resource
8
11
 
9
12
  property :in, :array
@@ -19,6 +22,8 @@ module Contentful
19
22
  property :assetImageDimensions, :hash
20
23
  property :enabledNodeTypes, :array
21
24
  property :enabledMarks, :array
25
+ property :nodes, :hash
26
+ property :message, :string
22
27
 
23
28
  # @private
24
29
  def properties_to_hash
@@ -30,7 +35,7 @@ module Contentful
30
35
  # Returns type of validation
31
36
  # @return [Symbol]
32
37
  def type
33
- properties.keys.reject { |key| key == :validations }.each do |type|
38
+ properties.keys.reject { |key| NON_TYPE_PROPERTIES.include?(key) }.each do |type|
34
39
  value = send(Support.snakify(type))
35
40
  return type if !value.nil? && value
36
41
  end
@@ -3,6 +3,6 @@ module Contentful
3
3
  # Management Namespace
4
4
  module Management
5
5
  # Gem Version
6
- VERSION = '2.10.0'.freeze
6
+ VERSION = '2.11.0'.freeze
7
7
  end
8
8
  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.10.0
4
+ version: 2.11.0
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: 2019-06-12 00:00:00.000000000 Z
13
+ date: 2019-09-19 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
@@ -238,22 +238,30 @@ dependencies:
238
238
  name: webmock
239
239
  requirement: !ruby/object:Gem::Requirement
240
240
  requirements:
241
- - - "~>"
242
- - !ruby/object:Gem::Version
243
- version: '1'
244
241
  - - ">="
245
242
  - !ruby/object:Gem::Version
246
- version: 1.17.3
243
+ version: '0'
247
244
  type: :development
248
245
  prerelease: false
249
246
  version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ - !ruby/object:Gem::Dependency
252
+ name: tins
253
+ requirement: !ruby/object:Gem::Requirement
250
254
  requirements:
251
255
  - - "~>"
252
256
  - !ruby/object:Gem::Version
253
- version: '1'
254
- - - ">="
257
+ version: 1.6.0
258
+ type: :development
259
+ prerelease: false
260
+ version_requirements: !ruby/object:Gem::Requirement
261
+ requirements:
262
+ - - "~>"
255
263
  - !ruby/object:Gem::Version
256
- version: 1.17.3
264
+ version: 1.6.0
257
265
  - !ruby/object:Gem::Dependency
258
266
  name: simplecov
259
267
  requirement: !ruby/object:Gem::Requirement