schema_dot_org 2.5.2 → 2.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: acd0a2dabb408489cf628e16e4eaee549a84e62cd44493ee9e052707036ed059
4
- data.tar.gz: a39970f8606e31d91d3a0dc9bba358964d8b8ea368855a347d9466227bb4c0d2
3
+ metadata.gz: bde5d908bdde92fece2d3df7fe64b838440b1a7bf149c5281bdbdd102b08b9d2
4
+ data.tar.gz: 3e97785e3d3fef8a47270a92a4a93f26769b75f981aa1c794cc9deb54173f703
5
5
  SHA512:
6
- metadata.gz: 394de4b9c3cee09e40c831ee6654c14cf3b73d262c50927e2fb13b1c7e121c7b97f2f740895786ab00ab4ff1d7c01bfd132234bf48149420f81ac365c4749a79
7
- data.tar.gz: 0aa3cb2bc48156361491d51419659b4504ad8b1016440763ffb8756b4936ca2375fb3f68255c389424ff1534afd39e8336397a894bbb91aff612eb7184330336
6
+ metadata.gz: fe0071ed5320d2cbac78407f210ffa04db76caf676f4c8014690bf2f2cc56759226c0d69fd1f47cc3bfec53e4dc89092d91508c95188794a708725f22a64edf4
7
+ data.tar.gz: 6a0f71fcf103da41705feb6206ace08a34915173363093f243a10d106f3752fc80079ad40de284b6d199f8cdc864b745e4d9bffa6024c6b8d9e445ff67adb75c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- schema_dot_org (2.5.1)
4
+ schema_dot_org (2.5.3)
5
5
  validated_object (~> 2.3.4)
6
6
 
7
7
  GEM
@@ -12,21 +12,22 @@ module SchemaDotOrg
12
12
  # See https://schema.org/Organization
13
13
  #
14
14
  class Organization < SchemaType
15
- validated_attr :address, type: SchemaDotOrg::PostalAddress, allow_nil: true
16
- validated_attr :contact_points, type: Array, allow_nil: true
17
- validated_attr :email, type: String, allow_nil: true
18
- validated_attr :founder, type: SchemaDotOrg::Person, allow_nil: true
19
- validated_attr :founding_date, type: Date, allow_nil: true
20
- validated_attr :founding_location, type: SchemaDotOrg::Place, allow_nil: true
21
- validated_attr :legal_name, type: String, allow_nil: true
15
+ validated_attr :address, type: PostalAddress, allow_nil: true
16
+ validated_attr :contact_points, type: union(ContactPoint, [ContactPoint]), allow_nil: true
17
+ validated_attr :email, type: String, allow_nil: true
18
+ validated_attr :founder, type: Person, allow_nil: true
19
+ validated_attr :founding_date, type: Date, allow_nil: true
20
+ validated_attr :founding_location, type: Place, allow_nil: true
21
+ validated_attr :legal_name, type: String, allow_nil: true
22
+ validated_attr :same_as, type: union(String, [String]), allow_nil: true
23
+ validated_attr :slogan, type: String, allow_nil: true
24
+ validated_attr :telephone, type: String, allow_nil: true
25
+
26
+ ########################################
27
+ # Attributes that are required by Google
28
+ ########################################
22
29
  validated_attr :logo, type: String
23
30
  validated_attr :name, type: String
24
- validated_attr :same_as, type: Array, allow_nil: true
25
- validated_attr :slogan, type: String, allow_nil: true
26
- validated_attr :telephone, type: String, allow_nil: true
27
-
28
- # Google allows `url` to be a string:
29
- # https://developers.google.com/search/docs/appearance/structured-data/logo
30
31
  validated_attr :url, type: String
31
32
  end
32
33
  end
@@ -7,7 +7,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
7
  Gem::Specification.new do |spec|
8
8
  spec.required_ruby_version = '>= 3.1'
9
9
  spec.name = 'schema_dot_org'
10
- spec.version = '2.5.2'
10
+ spec.version = '2.5.3'
11
11
  spec.authors = ['Robert Shecter']
12
12
  spec.email = ['robert@public.law']
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_dot_org
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.2
4
+ version: 2.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Shecter