schema_dot_org 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeaaa5ba2b21c92d56fec94da4e9326270fa751320365461f092ca44e55c0a65
4
- data.tar.gz: 5747c59f5e1060866a115e7a5a02419091901817a5890e22c51e5efcb828c8bc
3
+ metadata.gz: 5b1a873ff196b5b941a06d1ebe22e3257cdcac6af80913d6500d5e83904d682c
4
+ data.tar.gz: b5fef9d53e234eb9ce43c3eb521cb12c23f25164b0aecf9ab1976236620fe2b7
5
5
  SHA512:
6
- metadata.gz: bf34451c2987395d35b62c946fed6ed937b0f938c29ee5dd8825b2892357e41f98965b337df3bd727d1622971260791d230790a4e66a567c6961b925a2bf238b
7
- data.tar.gz: 75a43fbd24fd903079598e0ad748d882856f6157002d6cd71631acf76823f5242fc8c07a6e59fc8abd40a3b01db4d500fe5dd81c79a0feda80de9ccf8ba452e4
6
+ metadata.gz: 852bfe4e5259d19ffc3ee9b88e83dae9ec894d7785cd75b64eb5d2a4186ecd2abef5e65db7b265e3acaf84bd7b95e84f16a9f153bb6287e615ae25c8b0404296
7
+ data.tar.gz: af3a67ac2b4d81100e6ef90786a3f3e41e305d960b59f8a3e49a5e421577a1c120200bad24e6ea805158f08eba3bd5ece8a455c4dbc9509f7098cfe22d3240ab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- schema_dot_org (1.0.0)
4
+ schema_dot_org (1.0.1)
5
5
  validated_object
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -22,7 +22,6 @@ include SchemaDotOrg
22
22
  org.email = 'say_hi@public.law'
23
23
  org.url = 'https://www.public.law'
24
24
  org.logo = 'https://www.public.law/favicon-196x196.png'
25
- org.same_as = 'https://www.facebook.com/PublicDotLaw'
26
25
  org.founding_date = Date.new(2009, 3, 6)
27
26
  org.founder = Person.new do |person|
28
27
  person.name = 'Robb Shecter'
@@ -48,7 +47,6 @@ SchemaDotOrg will validate your code, and if correct, will generate Schema.org J
48
47
  "email": "say_hi@public.law",
49
48
  "url": "https://www.public.law",
50
49
  "logo": "https://www.public.law/favicon-196x196.png",
51
- "same_as": "https://www.facebook.com/PublicDotLaw",
52
50
  "foundingDate": "2009-03-06",
53
51
  "founder": {
54
52
  "@type": "Person",
@@ -4,7 +4,7 @@ require 'schema_dot_org'
4
4
 
5
5
  module SchemaDotOrg
6
6
  class Organization < SchemaType
7
- attr_accessor :email, :founder, :founding_date, :founding_location, :logo, :name, :same_as, :url
7
+ attr_accessor :email, :founder, :founding_date, :founding_location, :logo, :name, :url
8
8
 
9
9
  validates :email, type: String
10
10
  validates :founder, type: Person
@@ -12,7 +12,6 @@ module SchemaDotOrg
12
12
  validates :founding_location, type: Place
13
13
  validates :logo, type: String
14
14
  validates :name, type: String
15
- validates :same_as, type: String
16
15
  validates :url, type: String
17
16
 
18
17
  def to_json_struct
@@ -22,7 +21,6 @@ module SchemaDotOrg
22
21
  "email" => email,
23
22
  "url" => url,
24
23
  "logo" => logo,
25
- "same_as" => same_as,
26
24
  "founder" => founder.to_json_struct,
27
25
  "foundingDate" => founding_date.to_s,
28
26
  "foundingLocation" => founding_location.to_json_struct
@@ -1,3 +1,3 @@
1
1
  module SchemaDotOrg
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
data/test-script.rb CHANGED
@@ -12,7 +12,6 @@ public_law = Organization.new do |org|
12
12
  org.email = 'say_hi@public.law'
13
13
  org.url = 'https://www.public.law'
14
14
  org.logo = 'https://www.public.law/favicon-196x196.png'
15
- org.same_as = 'https://www.facebook.com/PublicDotLaw'
16
15
  org.founder = Person.new do |person|
17
16
  person.name = 'Robb Shecter'
18
17
  end
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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robb Shecter