schema_dot_org 2.0 → 2.1
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/.rspec +0 -1
- data/Gemfile.lock +1 -1
- data/lib/schema_dot_org/organization.rb +3 -0
- data/lib/schema_dot_org.rb +0 -9
- data/schema_dot_org.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 663a21ded2eb0b843caa9f238b4fca6b46705355296b2e68f199e1288e5fe73e
|
|
4
|
+
data.tar.gz: 16ae086bf62fd2c3ff5c73bf24a16ec2654b7935e23a334a3b990a51d35d0a58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8e76b02294c13dab79d20be1851b181c1147f40b24e7a84a1191b1e92e2d08956d977e6bac977e02838d04522bd6ab559d7a31693babe26296d5664dca16e2d5
|
|
7
|
+
data.tar.gz: '0748bf804827c3439e018a85b7f0b9741f7d238ab6ccbbeb364bc770ee09131a23cc421eeaa5a3ac5fe18e7ada157c119e5ccdbcbff86ef830471a308240bd5b'
|
data/.rspec
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -10,6 +10,7 @@ require 'schema_dot_org/contact_point'
|
|
|
10
10
|
module SchemaDotOrg
|
|
11
11
|
class Organization < SchemaType
|
|
12
12
|
attr_accessor :email,
|
|
13
|
+
:telephone,
|
|
13
14
|
:founder,
|
|
14
15
|
:founding_date,
|
|
15
16
|
:founding_location,
|
|
@@ -20,6 +21,7 @@ module SchemaDotOrg
|
|
|
20
21
|
:contact_points
|
|
21
22
|
|
|
22
23
|
validates :email, type: String, allow_nil: true
|
|
24
|
+
validates :telephone, type: String, allow_nil: true
|
|
23
25
|
validates :founder, type: SchemaDotOrg::Person, allow_nil: true
|
|
24
26
|
validates :founding_date, type: Date, allow_nil: true
|
|
25
27
|
validates :founding_location, type: SchemaDotOrg::Place, allow_nil: true
|
|
@@ -33,6 +35,7 @@ module SchemaDotOrg
|
|
|
33
35
|
{
|
|
34
36
|
"name" => name,
|
|
35
37
|
"email" => email,
|
|
38
|
+
"telephone" => telephone,
|
|
36
39
|
"url" => url,
|
|
37
40
|
"logo" => logo,
|
|
38
41
|
"founder" => object_to_json_struct(founder),
|
data/lib/schema_dot_org.rb
CHANGED
|
@@ -14,12 +14,3 @@ require 'schema_dot_org/contact_point'
|
|
|
14
14
|
|
|
15
15
|
module SchemaDotOrg
|
|
16
16
|
end
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
require 'schema_dot_org/person'
|
|
20
|
-
require 'schema_dot_org/place'
|
|
21
|
-
|
|
22
|
-
require 'schema_dot_org/organization'
|
|
23
|
-
|
|
24
|
-
require 'schema_dot_org/search_action'
|
|
25
|
-
require 'schema_dot_org/web_site'
|
data/schema_dot_org.gemspec
CHANGED
|
@@ -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 = '>= 2.6'
|
|
9
9
|
spec.name = 'schema_dot_org'
|
|
10
|
-
spec.version = '2.
|
|
10
|
+
spec.version = '2.1'
|
|
11
11
|
spec.authors = ['Robb Shecter']
|
|
12
12
|
spec.email = ['robb@public.law']
|
|
13
13
|
|