google_movies47 0.1.8 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,8 +11,10 @@ module GoogleMovies47
11
11
  @language = language
12
12
  @language_parser = GoogleMovies47::LanguageParser.new(language)
13
13
  @genre_parser = GoogleMovies47::GenreParser.new(language)
14
- @theaters = Hash.new
15
- @movies = Hash.new
14
+ #@theaters = Hash.new
15
+ #@movies = Hash.new
16
+ @theaters = []
17
+ @movies = []
16
18
  end
17
19
 
18
20
  def parse_show_times(doc)
@@ -20,12 +22,10 @@ module GoogleMovies47
20
22
  "//div[@class='movie_results']/div[@class='theater' and .//h2/a]"
21
23
  )
22
24
 
23
- @theaters = []
24
25
  theater_elements.each do |t|
25
26
  theater_name = t.search(".//h2[@class='name']/a/text()").text
26
27
  theater_info = t.search(".//div[@class='info']/text()").text
27
28
  showtimes = []
28
- @movies = []
29
29
  movie_elements = t.search(".//div[@class='showtimes']//div[@class='movie']")
30
30
  x = 0
31
31
  movie_elements.each do |m|
@@ -1,3 +1,3 @@
1
1
  module GoogleMovies47
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_movies47
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8
4
+ version: 0.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: