GitXplorerGitXplorer
a

picturehouse_uk

public
2 stars
1 forks
1 issues

Commits

List of commits on branch master.
Unverified
8a5d52e528dd51938bc1882488e52554c93c5fb2

Real classes not structs

aandycroll committed 9 years ago
Unverified
7651bcf4b0346536550cc20e5c9bd5477c51f3c2

Extract method for simplification

aandycroll committed 9 years ago
Unverified
6584ad4c6950ec629d93aa1f1df3548d5e51202e

Rubocop code improvements

aandycroll committed 9 years ago
Unverified
2d51d478174afdeed44efadb66c3c3edabe7f70e

Integration test is Performance too

aandycroll committed 9 years ago
Unverified
ac51adf5123f63f233c7c34beca6e21f04c232fd

License for commercial is AGPL

aandycroll committed 9 years ago
Unverified
44978593dc6d1f8fa73693ff60e437b8b441e0ef

Tidy up gemspec

aandycroll committed 9 years ago

README

The README file for this repository.

PicturehouseUk

A simple gem to parse the Picturehouse Cinemas UK website and spit out useful formatted info.

Gem Version Code Climate Test Coverage Build Status Inline docs

Installation

Add this line to your application's Gemfile:

gem 'picturehouse_uk'

And then execute:

$ bundle

Or install it yourself as:

$ gem install picturehouse_uk

Usage

Cinema

PicturehouseUK::Cinema.all
#=> [
      <PicturehouseUK::Cinema brand="Picturehouse" name="Duke's at Komedia" slug="dukes-at-komedia" chain_id="Dukes_At_Komedia" url="...">,
      <PicturehouseUK::Cinema brand="Picturehouse" name="Duke of York's" slug="duke-of-yorks" chain_id="Duke_Of_Yorks" url="...">,
      ...
    ]

PicturehouseUK::Cinema.find('Duke_Of_Yorks')
#=> <PicturehouseUK::Cinema brand="Picturehouse" name="Duke_Of_Yorks" slug="duke-of-yorks" address="..." chain_id="Duke_Of_Yorks" url="...">

cinema.brand
#=> 'Picturehouse'

cinema.chain_id
#=> 'Duke_Of_Yorks'

cinema.url
#=> "http://www.picturehouses.co.uk/cinema/Duke_Of_Yorks/"

cinema.films
#=> [<PicturehouseUK::Film name="Iron Man 3">, <PicturehouseUK::Film name="Star Trek: Into Darkness">]

cinema.screenings
#=> [<PicturehouseUK::Screening film="About Time" when="2013-09-09 11:00 UTC" varient="3d">, <PicturehouseUK::Screening film="Iron Man 3" when="2013-09-09 13:50 UTC" varient="kids">, <PicturehouseUK::Screening ..>, <PicturehouseUK::Screening ...>]

Running Tests

To redownload the test URLs run

ruby test/fixture_updater.rb

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request