picturehouse_uk 6.2.0-x86_64-linux-gnu → 6.3.0-x86_64-linux-gnu

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 566c6e648487c2f44b81dd55349e70c4e7d934c01ffe93c0ce4cc3f6697e1c84
4
- data.tar.gz: 49e1a7d000e3855aeb86fcb0e63f87bd6cfbf2c70dff6f0970cc988d9c28150a
3
+ metadata.gz: bda215337c74ec1ced567172541508dfae7db2641d00a16810732abf00dc346e
4
+ data.tar.gz: 5e8ea5598b1cf8c4a4c093775693e1f244379e79eabfa2923358e13b07612bc4
5
5
  SHA512:
6
- metadata.gz: fa622555dba96535f1885901b11ebc57ac1826b3e15f31e690c9c606e3d39f09282c53552bc5311393b35302642d1150e56bb155b67e8c8d9c33694f65ac0caa
7
- data.tar.gz: 0aea06e92680cf9d82e4d519781c8ccec954998c88338841c46fd363d4336a30135ce8365cb7199ad725fdcf6237ea5d057987efe06716478be916fc1e2c1e7b
6
+ metadata.gz: 428e4536247ad1057891a68d3dcc081918c3efb8c8a26977032433aac3c1708aa87caf8c2827b739a2270967cbea04bb8ffb543a2cf1b74d219f0e1148bfe9ea
7
+ data.tar.gz: 857ba977cd13bf773a4b5f17faa7dcefdddab8a1b3d898960a9eb7411d3626737730253c484fd5dcaf99a9e052e9bf3f3edef74fe84116186a5c9c018e6732f6
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
  All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [6.3.0] - 2026-11-03
6
+
7
+ ### Changed
8
+ - Uses cinebase 5.10. `NFF` titles name the Norwich Film Festival, which Cinema City hosts.
9
+ - `+ Mulled Wine and Carols` screenings are the plain film, with the `mulled_wine` variant.
10
+
5
11
  ## [6.2.0] - 2026-11-03
6
12
 
7
13
  ### Changed
@@ -25,6 +25,9 @@ module PicturehouseUk
25
25
  "Watch with Baby" => "baby"
26
26
  }.freeze
27
27
 
28
+ # Cinema City in Norwich hosts the Norwich Film Festival
29
+ FESTIVAL_NAMES = { "NFF" => "Norwich Film Festival" }.freeze
30
+
28
31
  # @param [Hash] data one showtime
29
32
  # @param [Hash{String => Hash}] films related films keyed by id
30
33
  # @param [Hash{String => Hash}] attributes related attributes keyed by id
@@ -39,7 +42,7 @@ module PicturehouseUk
39
42
  {
40
43
  booking_url: format(BOOKING_URL, @data.fetch("id")),
41
44
  dimension: @data["requires3dGlasses"] ? "3d" : "2d",
42
- festival: Cinebase::Festival.from_title(title, year: starting_at.year),
45
+ festival: Cinebase::Festival.from_title(title, year: starting_at.year, names: FESTIVAL_NAMES),
43
46
  film_name: TitleSanitizer.new(title).sanitized,
44
47
  film_year: Cinebase::TitleSanitizer.film_year(title),
45
48
  starting_at: starting_at,
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for https://www.picturehouses.com
2
- # @version 6.2.0
2
+ # @version 6.3.0
3
3
  module PicturehouseUk
4
4
  # Gem version
5
- VERSION = '6.2.0'.freeze
5
+ VERSION = '6.3.0'.freeze
6
6
  end
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency 'simplecov', '< 1'
26
26
  spec.add_development_dependency 'webmock'
27
27
 
28
- spec.add_runtime_dependency 'cinebase', '~> 5.9'
28
+ spec.add_runtime_dependency 'cinebase', '~> 5.10'
29
29
  end
@@ -3,7 +3,8 @@ require_relative '../../../../../test_helper'
3
3
  class PicturehouseUk::Internal::Parser::Api::ShowtimeTest < Minitest::Test
4
4
  FILMS = {
5
5
  'HO1' => { 'title' => { 'text' => 'Sense and Sensibility (2026)' } },
6
- 'HO2' => { 'title' => { 'text' => 'CFF: Rocket Girl' } }
6
+ 'HO2' => { 'title' => { 'text' => 'CFF: Rocket Girl' } },
7
+ 'HO3' => { 'title' => { 'text' => 'NFF 2026: Comedy Shorts' } }
7
8
  }.freeze
8
9
 
9
10
  ATTRIBUTES = {
@@ -39,10 +40,16 @@ class PicturehouseUk::Internal::Parser::Api::ShowtimeTest < Minitest::Test
39
40
  def test_festival
40
41
  showtime = parse(film_id: 'HO2')
41
42
 
42
- assert_equal Cinebase::Festival.new(name: 'CFF', year: 2026), showtime[:festival]
43
+ assert_equal Cinebase::Festival.new(name: 'Cambridge Film Festival', year: 2026), showtime[:festival]
43
44
  assert_equal 'Rocket Girl', showtime[:film_name]
44
45
  end
45
46
 
47
+ def test_nff_is_the_norwich_film_festival
48
+ showtime = parse(film_id: 'HO3')
49
+
50
+ assert_equal Cinebase::Festival.new(name: 'Norwich Film Festival', year: 2026), showtime[:festival]
51
+ end
52
+
46
53
  private
47
54
 
48
55
  def parse(attribute_ids: [], requires3d: false, film_id: 'HO1')
@@ -292,9 +292,12 @@ class PicturehouseUkInternalTitleSanitizerTest < Minitest::Test
292
292
  end
293
293
  end
294
294
 
295
+ def test_sanitized_removes_mulled_wine
296
+ assert_equal 'Elf', PicturehouseUk::Internal::TitleSanitizer.new('Elf + Mulled Wine and Carols').sanitized
297
+ end
298
+
295
299
  def test_sanitized_keeps_events_with_their_films
296
300
  [
297
- 'Elf + Mulled Wine and Carols',
298
301
  'Hocus Pocus + Pumpkin Party',
299
302
  'Rammstein - Live in Mexico City'
300
303
  ].each do |title|
@@ -76,7 +76,7 @@ class PicturehouseUk::PerformanceTest < Minitest::Test
76
76
  performance = performances_at(19)[4]
77
77
 
78
78
  assert_equal 'Made Up Matinee', performance.film_name
79
- assert_equal Cinebase::Festival.new(name: 'CFF', year: 2026), performance.festival
79
+ assert_equal Cinebase::Festival.new(name: 'Cambridge Film Festival', year: 2026), performance.festival
80
80
  assert_equal %w(arts subtitled), performance.variant
81
81
  end
82
82
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: picturehouse_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.3.0
5
5
  platform: x86_64-linux-gnu
6
6
  authors:
7
7
  - Andy Croll
@@ -113,14 +113,14 @@ dependencies:
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '5.9'
116
+ version: '5.10'
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '5.9'
123
+ version: '5.10'
124
124
  description: Pull movie & cinema information from the Picturehouse Vista API
125
125
  email:
126
126
  - andy@goodscary.com