fetcher-microdata 0.0.2 → 0.0.3
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.
@@ -3,7 +3,11 @@ module Fetcher
|
|
3
3
|
class ArticleSmall < Fetcher::Microdata
|
4
4
|
|
5
5
|
def initialize *args
|
6
|
-
|
6
|
+
if args.length == 2
|
7
|
+
super *args
|
8
|
+
else
|
9
|
+
raise ArgumentError, "Wrong number of arguments #{args.length} and 3 needed"
|
10
|
+
end
|
7
11
|
@_type = "http://schema.org/Article/Small"
|
8
12
|
end
|
9
13
|
|
@@ -3,7 +3,11 @@ module Fetcher
|
|
3
3
|
class PersonUser < Fetcher::Microdata
|
4
4
|
|
5
5
|
def initialize *args
|
6
|
-
|
6
|
+
if args.length == 1
|
7
|
+
super *args
|
8
|
+
else
|
9
|
+
raise ArgumentError, "Wrong number of arguments #{args.length} and 3 needed"
|
10
|
+
end
|
7
11
|
@_type = 'http://schema.org/Person/User'
|
8
12
|
end
|
9
13
|
|
@@ -3,7 +3,11 @@ module Fetcher
|
|
3
3
|
class Review < Fetcher::Microdata
|
4
4
|
|
5
5
|
def initialize *args
|
6
|
-
|
6
|
+
if args.length == 2
|
7
|
+
super *args
|
8
|
+
else
|
9
|
+
raise ArgumentError, "Wrong number of arguments #{args.length} and 3 needed"
|
10
|
+
end
|
7
11
|
@_type = "http://schema.org/Review"
|
8
12
|
end
|
9
13
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fetcher-microdata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: discoverer
|