fetcher-microdata 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,11 @@ module Fetcher
3
3
  class ArticleSmall < Fetcher::Microdata
4
4
 
5
5
  def initialize *args
6
- super *args
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
- super *args
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
- super *args
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
 
@@ -1,5 +1,5 @@
1
1
  module Fetcher
2
2
  class Microdata
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
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.2
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-19 00:00:00.000000000 Z
12
+ date: 2012-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: discoverer