lib/picturehouse_uk/internal/website.rb in picturehouse_uk-3.0.3 vs lib/picturehouse_uk/internal/website.rb in picturehouse_uk-3.0.4

- old
+ new

@@ -2,11 +2,11 @@ require 'openssl' module PicturehouseUk # @api private module Internal - # fetches pages from the picturehouse.co.uk website + # fetches pages from the picturehouse.com website class Website # get the cinema page with showings for passed id # @return [String] def cinema(id) get("cinema/#{id}") @@ -25,10 +25,12 @@ end private def get(path) - open("https://www.picturehouses.com/#{path}").read + # SSL verification doesn't work on picturehouses.com + open("https://www.picturehouses.com/#{path}", + ssl_verify_mode: OpenSSL::SSL::VERIFY_NONE).read end end end end