microformats 4.0.5 → 4.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/microformats/format_parser.rb +1 -1
- data/lib/microformats/version.rb +1 -1
- data/spec/support/lib/edge_cases/blank_value.html +5 -0
- data/spec/support/lib/edge_cases/blank_value.js +19 -0
- data/vendor/tests/tests/microformats-v2/h-card/p-property.json +2 -2
- metadata +5 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6227d8558099bebeb657934debc897fab6c3c14a
|
4
|
+
data.tar.gz: a330025f850142e19df0d6b27f8921713fcccad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1e7f820dcfd61e727e41bc0d2f670b20ba19893ec75a70a37185d9cf657f52dd6d98cccf09790964edb23ca962a1e715f37a9a4a647badbb5818f45b7e31aae
|
7
|
+
data.tar.gz: 8c18dbe60bc099cfd3a8a455a9b2c7060e9c9b1d18e879fc1b33ab1349bd4772ac680b63cc23c12a0bc1a86631ca2d91b010933f2761e09c5f3b636f1209dc49
|
data/README.md
CHANGED
@@ -324,7 +324,7 @@ module Microformats
|
|
324
324
|
|
325
325
|
parsed_property = PropertyParser.new.parse(element, base: @base, element_type: element_type, backcompat: @mode_backcompat)
|
326
326
|
|
327
|
-
if not parsed_property.nil?
|
327
|
+
if not parsed_property.nil?
|
328
328
|
@properties[property_name] = [] if @properties[property_name].nil?
|
329
329
|
@properties[property_name] << parsed_property
|
330
330
|
end
|
data/lib/microformats/version.rb
CHANGED
@@ -6,10 +6,10 @@
|
|
6
6
|
"given-name": ["John"],
|
7
7
|
"additional-name": ["Peter"],
|
8
8
|
"family-name": ["Doe"],
|
9
|
-
"honorific-suffix": ["MSc", "PHD"],
|
9
|
+
"honorific-suffix": ["MSc", "", "", "PHD"],
|
10
10
|
"org": ["Madgex", "Mozilla"]
|
11
11
|
}
|
12
12
|
}],
|
13
13
|
"rels": {},
|
14
14
|
"rel-urls": {}
|
15
|
-
}
|
15
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: microformats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
@@ -187,6 +187,8 @@ files:
|
|
187
187
|
- spec/support/lib/edge_cases/blank_rel.js
|
188
188
|
- spec/support/lib/edge_cases/blank_src.html
|
189
189
|
- spec/support/lib/edge_cases/blank_src.js
|
190
|
+
- spec/support/lib/edge_cases/blank_value.html
|
191
|
+
- spec/support/lib/edge_cases/blank_value.js
|
190
192
|
- spec/support/lib/edge_cases/relative.html
|
191
193
|
- spec/support/lib/edge_cases/relative.js
|
192
194
|
- spec/support/lib/microformats/blank_href.html
|
@@ -547,6 +549,8 @@ test_files:
|
|
547
549
|
- spec/support/lib/edge_cases/blank_rel.js
|
548
550
|
- spec/support/lib/edge_cases/blank_src.html
|
549
551
|
- spec/support/lib/edge_cases/blank_src.js
|
552
|
+
- spec/support/lib/edge_cases/blank_value.html
|
553
|
+
- spec/support/lib/edge_cases/blank_value.js
|
550
554
|
- spec/support/lib/edge_cases/relative.html
|
551
555
|
- spec/support/lib/edge_cases/relative.js
|
552
556
|
- spec/support/lib/microformats/blank_href.html
|