omelete 2.0.2 → 2.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.
@@ -19,16 +19,17 @@ module Omelete
19
19
  obs, kind, time, theater = nil, nil, nil, nil
20
20
  @page_doc.css("div[class='programacao_horarios']").each do |div|
21
21
  omelete_movie_id = div.css("p a")[0]["href"][/\d+/]
22
- div.css("table tr td").each_with_index do |td, i|
23
- obs = td.text if td.attribute("colspan")
24
- unless td.attribute("colspan")
25
- theater = td.text if i == 0
26
- kind = td.text if i == 1
27
- time = td.text if i == 2
22
+ obs = div.css("table tr td[colspan='3']").text
23
+ div.css("table tr[class='even']", "table tr[class='odd']").each do |tr|
24
+ tr.css("td").each_with_index do |td, i|
25
+ unless td.attribute("colspan")
26
+ theater = td.text if i == 0
27
+ kind = td.text if i == 1
28
+ time = td.text if i == 2
29
+ end
28
30
  end
31
+ showtimes << ShowtimeInfo.new(omelete_movie_id, obs, kind, time, theater)
29
32
  end
30
-
31
- showtimes << ShowtimeInfo.new(omelete_movie_id, obs, kind, time, theater)
32
33
  end
33
34
  showtimes
34
35
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Omelete
2
- VERSION = "2.0.2"
2
+ VERSION = "2.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omelete
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.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-10-04 00:00:00.000000000 Z
12
+ date: 2012-10-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri