google_movies47 0.2.4 → 0.2.5

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.
@@ -19,7 +19,6 @@ module GoogleMovies47
19
19
  theater_elements = doc.xpath(
20
20
  "//div[@class='movie_results']/div[@class='theater' and .//h2/a]"
21
21
  )
22
- x = 0
23
22
  y = 0
24
23
  theater_elements.each do |t|
25
24
  theater_name = t.search(".//h2[@class='name']/a/text()").text
@@ -41,8 +40,7 @@ module GoogleMovies47
41
40
  times << time
42
41
  end
43
42
 
44
- showtimes[x] = { :name => movie_name, :language => movie_info[:language], :times => times } unless showtimes[x].nil?
45
- x = x + 1
43
+ showtimes << { :name => movie_name, :language => movie_info[:language], :times => times }
46
44
  end
47
45
 
48
46
  @theaters[y] = { :name => theater_name, :info => theater_info, :movies => showtimes }
@@ -1,3 +1,3 @@
1
1
  module GoogleMovies47
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: