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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09e1026bba3015274f30b068a935e90dd8297c03
4
- data.tar.gz: cd4157d671e118ed122dce2e54ea39bc5d404e94
3
+ metadata.gz: 6227d8558099bebeb657934debc897fab6c3c14a
4
+ data.tar.gz: a330025f850142e19df0d6b27f8921713fcccad2
5
5
  SHA512:
6
- metadata.gz: 7dc34d2e95dbe926398b609fcf621ecf9f9ed0ae70a1156b021d52e0a7ef24b77730944005a26a800ebc5e70a34dfdb4990c6a826a252056ce0a4b5dc603daab
7
- data.tar.gz: e8f428c62928beb75842215194a7d687ec03e476507d49ae8e6fb55fc787cb873876a864de322106d171b3e446a285a2148f4da3f87106a2fa236154fe290147
6
+ metadata.gz: c1e7f820dcfd61e727e41bc0d2f670b20ba19893ec75a70a37185d9cf657f52dd6d98cccf09790964edb23ca962a1e715f37a9a4a647badbb5818f45b7e31aae
7
+ data.tar.gz: 8c18dbe60bc099cfd3a8a455a9b2c7060e9c9b1d18e879fc1b33ab1349bd4772ac680b63cc23c12a0bc1a86631ca2d91b010933f2761e09c5f3b636f1209dc49
data/README.md CHANGED
@@ -34,9 +34,9 @@ Not Implemented:
34
34
 
35
35
  ## Current Version
36
36
 
37
- 4.0.5
37
+ 4.0.6
38
38
 
39
- ![Version 4.0.5](https://img.shields.io/badge/VERSION-4.0.5-green.svg)
39
+ ![Version 4.0.6](https://img.shields.io/badge/VERSION-4.0.6-green.svg)
40
40
 
41
41
 
42
42
  ## Requirements
@@ -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? and not parsed_property.empty?
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
@@ -1,3 +1,3 @@
1
1
  module Microformats
2
- VERSION = "4.0.5"
2
+ VERSION = "4.0.6"
3
3
  end
@@ -0,0 +1,5 @@
1
+ <article class="h-entry">
2
+ <data class="p-content" value="">
3
+ This should not be the value of the content attribute
4
+ </data>
5
+ </article>
@@ -0,0 +1,19 @@
1
+ {
2
+ "items": [
3
+ {
4
+ "type": [
5
+ "h-entry"
6
+ ],
7
+ "properties": {
8
+ "content": [""],
9
+ "name": [
10
+ "This should not be the value of the content attribute"
11
+ ]
12
+ }
13
+ }
14
+ ],
15
+ "rels": {
16
+ },
17
+ "rel-urls": {
18
+ }
19
+ }
@@ -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.5
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