memo_tomato 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/lib/memo_tomato.rb CHANGED
@@ -13,4 +13,3 @@ require "memo_tomato/parser"
13
13
  require "memo_tomato/movie"
14
14
  require "memo_tomato/actor"
15
15
  require "memo_tomato/director"
16
- require "memo_tomato/genre"
@@ -42,12 +42,7 @@ module MemoTomato
42
42
  :name => director.name
43
43
  )
44
44
  end,
45
- :genres =>
46
- Array(movie.genres).collect do |genre|
47
- MemoTomato::Genre.new(
48
- :type => genre
49
- )
50
- end
45
+ :genres => Array(movie.genres)
51
46
  )
52
47
  end
53
48
  end
@@ -1,3 +1,3 @@
1
1
  module MemoTomato
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -9,7 +9,7 @@ describe MemoTomato::Parser::MovieInfo do
9
9
  movie = client.movie_info("770672122")
10
10
  movie.id.should == 770672122
11
11
  movie.directors.first.name.should == "Lee Unkrich"
12
- movie.genres.first.type.should == "Animation"
12
+ movie.genres.should =~ ["Animation", "Kids & Family", "Science Fiction & Fantasy", "Comedy"]
13
13
  movie.image.should == "http://content6.flixster.com/movie/11/13/43/11134356_det.jpg"
14
14
  end
15
15
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: memo_tomato
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -142,7 +142,6 @@ files:
142
142
  - lib/memo_tomato/actor.rb
143
143
  - lib/memo_tomato/client.rb
144
144
  - lib/memo_tomato/director.rb
145
- - lib/memo_tomato/genre.rb
146
145
  - lib/memo_tomato/movie.rb
147
146
  - lib/memo_tomato/node.rb
148
147
  - lib/memo_tomato/parser.rb
@@ -180,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
180
179
  version: '0'
181
180
  segments:
182
181
  - 0
183
- hash: 208243665
182
+ hash: -95792141
184
183
  required_rubygems_version: !ruby/object:Gem::Requirement
185
184
  none: false
186
185
  requirements:
@@ -189,7 +188,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
188
  version: '0'
190
189
  segments:
191
190
  - 0
192
- hash: 208243665
191
+ hash: -95792141
193
192
  requirements: []
194
193
  rubyforge_project: memo_tomato
195
194
  rubygems_version: 1.8.24
@@ -1,5 +0,0 @@
1
- module MemoTomato
2
- class Genre < Node
3
- attr_reader :type
4
- end
5
- end