schema_dot_org 2.0 → 2.1

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: 643f2d209ee7cac02447c46cc8f5c14682163dd171db5d3c1b5fdf84382a3eab
4
- data.tar.gz: cab0857ac26be75638701893e328db0a93840a368b46df5e5e6a106ccb98f3be
3
+ metadata.gz: 663a21ded2eb0b843caa9f238b4fca6b46705355296b2e68f199e1288e5fe73e
4
+ data.tar.gz: 16ae086bf62fd2c3ff5c73bf24a16ec2654b7935e23a334a3b990a51d35d0a58
5
5
  SHA512:
6
- metadata.gz: 69e7822b9097e10d3a4d51053f32982fddde76ffcccd3f611474d08c6ef890dc31a16cd3bcf14d6420b592ff80fff756b8737f733a0e57c1ffcc0be925772025
7
- data.tar.gz: 65e88820be2cdedb39aee20ca85bc14e1866b64a2737323076bba3d18d39184cc37b192edfbc65ba5ba1b194de0f9339fece13fb1e7fdd7d72e755bf3442e800
6
+ metadata.gz: 8e76b02294c13dab79d20be1851b181c1147f40b24e7a84a1191b1e92e2d08956d977e6bac977e02838d04522bd6ab559d7a31693babe26296d5664dca16e2d5
7
+ data.tar.gz: '0748bf804827c3439e018a85b7f0b9741f7d238ab6ccbbeb364bc770ee09131a23cc421eeaa5a3ac5fe18e7ada157c119e5ccdbcbff86ef830471a308240bd5b'
data/.rspec CHANGED
@@ -1,3 +1,2 @@
1
- --format documentation
2
1
  --color
3
2
  --require spec_helper
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- schema_dot_org (2.0)
4
+ schema_dot_org (2.1)
5
5
  validated_object (~> 2.2)
6
6
 
7
7
  GEM
@@ -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),
@@ -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'
@@ -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.0'
10
+ spec.version = '2.1'
11
11
  spec.authors = ['Robb Shecter']
12
12
  spec.email = ['robb@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.0'
4
+ version: '2.1'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter