html-schema 0.2.0 → 0.2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/html-schema/api.rb +1 -0
- data/lib/html-schema/microdata.rb +1 -0
- data/spec/schema_spec.rb +1 -0
- metadata +18 -4
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@ require 'rake/gempackagetask'
|
|
5
5
|
spec = Gem::Specification.new do |s|
|
6
6
|
s.name = "html-schema"
|
7
7
|
s.authors = ["Lance Pollard"]
|
8
|
-
s.version = "0.2.0"
|
8
|
+
s.version = "0.2.0.1"
|
9
9
|
s.description = "Unified Ruby API for HTML5 Microdata and Microformats"
|
10
10
|
s.summary = "Unified Ruby API for HTML5 Microdata and Microformats"
|
11
11
|
s.homepage = "http://github.com/viatropos/html-schema"
|
data/lib/html-schema/api.rb
CHANGED
data/spec/schema_spec.rb
CHANGED
@@ -78,6 +78,7 @@ describe HTMLSchema do
|
|
78
78
|
@article.description.to_hash.should == {:itemprop => "description", :class => "entry-summary"}
|
79
79
|
@article.body.to_hash.should == {:itemprop => "articleBody", :class => "entry-content"}
|
80
80
|
@article.published_at.to_hash.should == {:itemprop => "datePublished", :class => "published"}
|
81
|
+
@article.updated_at.to_hash.should == {:class => "updated"}
|
81
82
|
@article.author.to_hash.should == {:itemprop => "author", :class => "author"}
|
82
83
|
@article.url.to_hash.should == {:itemprop => "url", :class => "url"}
|
83
84
|
end
|
metadata
CHANGED
@@ -1,8 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: html-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
4
|
+
hash: 93
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 2
|
9
|
+
- 0
|
10
|
+
- 1
|
11
|
+
version: 0.2.0.1
|
6
12
|
platform: ruby
|
7
13
|
authors:
|
8
14
|
- Lance Pollard
|
@@ -10,7 +16,8 @@ autorequire:
|
|
10
16
|
bindir: bin
|
11
17
|
cert_chain: []
|
12
18
|
|
13
|
-
date: 2011-
|
19
|
+
date: 2011-08-06 00:00:00 -05:00
|
20
|
+
default_executable:
|
14
21
|
dependencies: []
|
15
22
|
|
16
23
|
description: Unified Ruby API for HTML5 Microdata and Microformats
|
@@ -40,6 +47,7 @@ files:
|
|
40
47
|
- lib/html-schema.rb
|
41
48
|
- spec/schema_spec.rb
|
42
49
|
- spec/spec_helper.rb
|
50
|
+
has_rdoc: true
|
43
51
|
homepage: http://github.com/viatropos/html-schema
|
44
52
|
licenses: []
|
45
53
|
|
@@ -53,17 +61,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
53
61
|
requirements:
|
54
62
|
- - ">="
|
55
63
|
- !ruby/object:Gem::Version
|
64
|
+
hash: 3
|
65
|
+
segments:
|
66
|
+
- 0
|
56
67
|
version: "0"
|
57
68
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
58
69
|
none: false
|
59
70
|
requirements:
|
60
71
|
- - ">="
|
61
72
|
- !ruby/object:Gem::Version
|
73
|
+
hash: 3
|
74
|
+
segments:
|
75
|
+
- 0
|
62
76
|
version: "0"
|
63
77
|
requirements: []
|
64
78
|
|
65
79
|
rubyforge_project: html-schema
|
66
|
-
rubygems_version: 1.7
|
80
|
+
rubygems_version: 1.3.7
|
67
81
|
signing_key:
|
68
82
|
specification_version: 3
|
69
83
|
summary: Unified Ruby API for HTML5 Microdata and Microformats
|