picturehouse_uk 6.2.0-aarch64-linux-gnu → 6.3.0-aarch64-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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/picturehouse_uk/internal/parser/api/showtime.rb +4 -1
- data/lib/picturehouse_uk/version.rb +2 -2
- data/picturehouse_uk.gemspec +1 -1
- data/test/lib/picturehouse_uk/internal/parser/api/showtime_test.rb +9 -2
- data/test/lib/picturehouse_uk/internal/title_sanitizer_test.rb +4 -1
- data/test/lib/picturehouse_uk/performance_test.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0c830bc7ae473854185ede559e9986fce0cf81b8878a82057c71aedb4d0d8da9
|
|
4
|
+
data.tar.gz: 46e8288fdf6718e7d2211351337a38c1642bb11fdfd81d76ed66100d605f2591
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b255058aba3a7b346dfec8e6a3d574c2b4d02fa8b6da103921cb47fa2adfbf884d973e2a55d281cfddfe9d8a690b485e7828212bb57028258336cbec5a3466fe
|
|
7
|
+
data.tar.gz: e08eafe3fb3c741d548d885ef262e2ea88b4b34de910870c69791776834b435c0515c3b50e70d2b21f7c04982dd6341fc1a1b15a2eef068696409942f58df282
|
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,
|
data/picturehouse_uk.gemspec
CHANGED
|
@@ -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: '
|
|
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: '
|
|
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.
|
|
4
|
+
version: 6.3.0
|
|
5
5
|
platform: aarch64-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.
|
|
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.
|
|
123
|
+
version: '5.10'
|
|
124
124
|
description: Pull movie & cinema information from the Picturehouse Vista API
|
|
125
125
|
email:
|
|
126
126
|
- andy@goodscary.com
|