otg-microformat 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 == 'http://schema.org/Product' }
86
+ @scopes.select { |x| x.type =~ /\/product$/i }
85
87
  end
86
88
  end
87
89
 
@@ -1,3 +1,3 @@
1
1
  module Microformat
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
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.1
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: -164261226516133318
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: -164261226516133318
117
+ hash: 640169864049438702
118
118
  requirements: []
119
119
  rubyforge_project:
120
120
  rubygems_version: 1.8.25