Sha256: 738d5cd50bfa12f3e4041a101013fa6ce2febc57f178b0521efb698dbf5cbdef
Contents?: true
Size: 462 Bytes
Versions: 21
Compression:
Stored size: 462 Bytes
Contents
url = fetch(:url) { "https://www.meetup.com/parisrb" } response = HTTP.get(url) times = response.css(".groupHome-eventsList-upcomingEvents time") times = times.map(&:datetime).map { |time| Time.from_epoch(time.to_integer) } times.each do |time| if (1.day.from_now...(1.day.from_now + 1.hour)).include?(time) Sms.send("Event in one day {url}") elsif (2.hours.from_now...(1.hour.from_now)).include(time) Sms.send("Event in two hours {url}") end end
Version data entries
21 entries across 21 versions & 3 rubygems