otg-microformat 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/microformat.rb +3 -1
- data/lib/microformat/version.rb +1 -1
- metadata +3 -3
data/lib/microformat.rb
CHANGED
@@ -76,12 +76,14 @@ module Microformat
|
|
76
76
|
end
|
77
77
|
|
78
78
|
class ItemDocument
|
79
|
+
attr_reader :scopes
|
80
|
+
|
79
81
|
def initialize(scopes)
|
80
82
|
@scopes = scopes
|
81
83
|
end
|
82
84
|
|
83
85
|
def products
|
84
|
-
@scopes.select { |x| x.type
|
86
|
+
@scopes.select { |x| x.type =~ /\/product$/i }
|
85
87
|
end
|
86
88
|
end
|
87
89
|
|
data/lib/microformat/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: otg-microformat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
105
105
|
version: '0'
|
106
106
|
segments:
|
107
107
|
- 0
|
108
|
-
hash:
|
108
|
+
hash: 640169864049438702
|
109
109
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
110
110
|
none: false
|
111
111
|
requirements:
|
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
version: '0'
|
115
115
|
segments:
|
116
116
|
- 0
|
117
|
-
hash:
|
117
|
+
hash: 640169864049438702
|
118
118
|
requirements: []
|
119
119
|
rubyforge_project:
|
120
120
|
rubygems_version: 1.8.25
|