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 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"
@@ -43,6 +43,7 @@ class HTMLSchema
43
43
  attribute :audio, :type => :media
44
44
  attribute :tag
45
45
  attribute :published_at, :type => :date
46
+ attribute :updated_at, :type => :date
46
47
 
47
48
  type :article do
48
49
  attribute :body
@@ -56,6 +56,7 @@ class HTMLSchema
56
56
 
57
57
  # dates
58
58
  attribute :published_at, :as => :datePublished, :type => :date
59
+ attribute :updated_at, :as => :datePublished, :type => :date
59
60
 
60
61
  type :blog, :as => :Blog
61
62
  type :book, :as => :Book
@@ -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
- prerelease:
5
- version: 0.2.0
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-07-11 00:00:00 Z
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.2
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