blinkbox_films 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6b58c31c4a27f0b5f3a70f26d6abe023cb5b9b7c
4
- data.tar.gz: 80f1bf1a25df6676237227295ec73a795fa567ba
3
+ metadata.gz: ee968e82576c6b0bfaf44234d51aeeaf636e5cec
4
+ data.tar.gz: c2cc73c595fc34669f067e471b355d25ab865eea
5
5
  SHA512:
6
- metadata.gz: d9b610bddea333b49dd807d8c25d2f1a18044342ca9b39cc57e87a4d287c662a776bda2025a8a8d47eff87d8b8239b7fc1aa651be856c1ee914d77a73d9433c7
7
- data.tar.gz: 615e5098620b724d8008afe7c495c3b05abbf76a95525f0ac61d24ed6cf00436312e01024539bcc0c9facf9450d05241777edcb1a82d8f2fbb7b596b1eb6ef94
6
+ metadata.gz: 0034f1f4eb088c504c85c09f8d380ab70ace046f22394c09e0e0cf0dbbc996924d39fd03fee631cdb8ce26d55474df363d148f75cf294dfdee0352e90fbfc09a
7
+ data.tar.gz: 242d044a0d68cbb09b13c3d32a805e9edfa58414b89c490fcc68bdfa1f6c56c33810ef924b765afb234aee6c48dccedce862a6aacd04c76b6f6489c8c16ac9b3
@@ -29,7 +29,7 @@ module BlinkboxFilms
29
29
  end
30
30
 
31
31
  def response(query)
32
- HTTPClient.new.get('http://www.blinkbox.com/search', { 'Search' => query })
32
+ HTTPClient.new.get('https://www.talktalktvstore.co.uk/search', { 'Search' => query })
33
33
  end
34
34
 
35
35
  def film_fragments(page)
@@ -42,8 +42,8 @@ module BlinkboxFilms
42
42
 
43
43
  def film_url(fragment)
44
44
  u = URI.parse(extract_film_path_or_url(fragment))
45
- u.host ||= 'www.blinkbox.com'
46
- u.scheme ||= 'http'
45
+ u.host ||= 'www.talktalktvstore.co.uk'
46
+ u.scheme ||= 'https'
47
47
  u.to_s
48
48
  end
49
49
 
@@ -3,11 +3,11 @@ require 'blinkbox_films'
3
3
 
4
4
  describe 'A film page', :vcr do
5
5
  context 'A film' do
6
- subject { BlinkboxFilms::FilmPage.from_url('http://www.blinkbox.com/movies/the-dark-knight-(28710)').film }
6
+ subject { BlinkboxFilms::FilmPage.from_url('https://www.talktalktvstore.co.uk/movies/the-dark-knight-(28710)').film }
7
7
 
8
8
  it { expect(subject.title).to eq('The Dark Knight') }
9
- it { expect(subject.url).to eq('http://www.blinkbox.com/movies/the-dark-knight-(28710)') }
10
- it { expect(subject.image_url).to match(%r{http://cdn\d+.blinkboxmedia.com/i/contentasset3/000/028/710/gl0lloqf/v=317/w=215;h=306;rm=Crop;q=85/image.jpg}) }
9
+ it { expect(subject.url).to eq('https://www.talktalktvstore.co.uk/movies/the-dark-knight-(28710)') }
10
+ it { expect(subject.image_url).to eq('https://fa-i-p1.ttcdn.uk/i/contentasset3/000/028/710/gl0lloqf/v=319/w=215;h=306;rm=Crop;q=85/image.jpg') }
11
11
  it { expect(subject.release_year).to eq(2008) }
12
12
  it { expect(subject.certificate).to eq('12') }
13
13
  it { expect(subject.running_time_in_minutes).to eq(152) }
@@ -15,12 +15,12 @@ describe 'A film page', :vcr do
15
15
  it { expect(subject.buy_price).to eq('£6.99') }
16
16
  end
17
17
 
18
- context 'A TV show' do
19
- subject { BlinkboxFilms::FilmPage.from_url('http://www.blinkbox.com/tv/12-monkeys-(2313)/s01-(3555)').film }
18
+ context 'A single TV series' do
19
+ subject { BlinkboxFilms::FilmPage.from_url('https://www.talktalktvstore.co.uk/tv/12-monkeys-(2313)/s01-(3555)').film }
20
20
 
21
21
  it { expect(subject.title).to eq('12 Monkeys') }
22
- it { expect(subject.url).to eq('http://www.blinkbox.com/tv/12-monkeys-(2313)/s01-(3555)') }
23
- it { expect(subject.image_url).to match(%r{http://cdn\d+.blinkboxmedia.com/i/tvseries/000/002/313/yzr3t1rw/v=317/w=215;h=306;rm=Crop;q=85/image.jpg}) }
22
+ it { expect(subject.url).to eq('https://www.talktalktvstore.co.uk/tv/12-monkeys-(2313)/s01-(3555)') }
23
+ it { expect(subject.image_url).to eq('https://fa-i-p1.ttcdn.uk/i/tvseries/000/002/313/yzr3t1rw/v=319/w=215;h=306;rm=Crop;q=85/image.jpg') }
24
24
  it { expect(subject.release_year).to eq(2015) }
25
25
  it { expect(subject.certificate).to eq('15') }
26
26
  it { expect(subject.running_time_in_minutes).to be_nil }
@@ -11,8 +11,8 @@ describe 'A search' do
11
11
 
12
12
  it { expect(subject).to_not be_empty }
13
13
  it { expect(subject.first.title).to eq('The Dark Knight') }
14
- it { expect(subject.first.url).to eq('http://www.blinkbox.com/movies/the-dark-knight-(28710)') }
15
- it { expect(subject.first.image_url).to eq('http://cdn2.blinkboxmedia.com/i/contentasset31/000/028/710/1gkiab4e/v=316/w=234;h=132;rm=Crop;q=85/image.jpg') }
14
+ it { expect(subject.first.url).to eq('https://www.talktalktvstore.co.uk/movies/the-dark-knight-(28710)') }
15
+ it { expect(subject.first.image_url).to eq('https://fa-i-p1.ttcdn.uk/i/contentasset31/000/028/710/1gkiab4e/v=319/w=234;h=132;rm=Crop;q=85/image.jpg') }
16
16
  it { expect(subject.first.certificate).to eq('12') }
17
17
  it { expect(subject.first.running_time_in_minutes).to eq(152) }
18
18
  end
@@ -21,7 +21,7 @@ describe 'A search' do
21
21
  before do
22
22
  VCR.turn_off!
23
23
 
24
- stub_request(:get, "http://www.blinkbox.com/search?Search=dark%20knight").
24
+ stub_request(:get, "https://www.talktalktvstore.co.uk/search?Search=dark%20knight").
25
25
  to_return(:body => '<html><body><h1>Not what you expected</h1></body></html>')
26
26
  end
27
27
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blinkbox_films
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Chippindale