omelete 0.0.9 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -54,19 +54,19 @@ module Omelete
54
54
  showtimes = []
55
55
  mt = ""
56
56
  obs = ""
57
- @page.parser.xpath('//div[@id="content-left"]/div[@class="grid_8"]').children.each_with_index do |div_child|
58
- if div_child.node_name == "div"
59
- mt = div_child.search('h2').first.text.gsub("\n", "").strip if div_child.attribute("class").value == "programacao_cinema"
60
- if div_child.attribute("class").value == "programacao_horarios"
61
- div_child.search('tr').each do |tr_doc|
62
- unless tr_doc.content.include?("Sala")
63
- obs = div_child.search('td[@colspan="3"]').first.content if div_child.search('td[@colspan="3"]').first
64
- sat = ShowtimeAndTheater.new tr_doc
65
- showtimes << sat.create_showtime_with(mt,movie,obs)
66
- end
57
+ @page.parser.xpath('//div[@id="content-left"]/div[@class="grid_8"]/div').each do |div_child|
58
+ # if div_child.node_name == "div"
59
+ mt = div_child.search('h2').first.text.gsub("\n", "").strip if div_child.attribute("class").value == "programacao_cinema"
60
+ if div_child.attribute("class").value == "programacao_horarios"
61
+ div_child.search('tr').each do |tr_doc|
62
+ unless tr_doc.content.include?("Sala")
63
+ obs = div_child.search('td[@colspan="3"]').first.content if div_child.search('td[@colspan="3"]').first
64
+ sat = ShowtimeAndTheater.new tr_doc
65
+ showtimes << sat.create_showtime_with(mt,movie,obs)
67
66
  end
68
67
  end
69
68
  end
69
+ # end
70
70
  end
71
71
  showtimes
72
72
  end
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Omelete
2
- VERSION = "0.0.9"
2
+ VERSION = "1.0.0"
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: 0.0.9
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: