cinebase 5.10.0 → 5.10.1

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: 1b67130fa05f03842aea737a21037d7edcde83150a79fc1b08a1103254dce774
4
- data.tar.gz: 28246516a82aaec038e6f8e5b04b08daec53982b14d6a247960ca0829dd76744
3
+ metadata.gz: 2db360e63882bc3450903c62e1eac18dcfe0e9035e95245a11c00d96039b4875
4
+ data.tar.gz: 92adad0b62500f92eab272d2c3c904d0ead4b0577227244b0624f7a326786f0c
5
5
  SHA512:
6
- metadata.gz: 56a50db84fc430e120ae9f041b0b9ecef45c2b720a2ebcd114357645c141d703e88f36f49df3969ce1521f5ef89976a64bc1704544fde9c86bf8291ad965470a
7
- data.tar.gz: ffecdc3674167e55deebb3d6d1befda86dd25a4ede4b2c8917f7f1c96dd3a4bacc4a2e471341120c0b5f1cca9a42344c5073dc370511b8b24967a9fadc2a7e21
6
+ metadata.gz: 6c164dc67593843ef61a22a31fcbaa7c9b33fe94b9840a242d261818157d3fdbc5ed94c6e03ba8ff952c866bcf7c8253b38fb290fb863de3de6b4c86a1da6632
7
+ data.tar.gz: c513227d811472f21e789a5e0d2ead0511bcceb950f9ed14498b322c2df2682c22a3edfec50820481f78a485f89c7e5f82460b08cc9b60c63dc6c10a10c225f4
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
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
+ ## [5.10.1] - 2026-11-03
6
+ ### Fixed
7
+ - A1Web and Boxoffice chains name festivals with `Performance.festival_names`, as they set the festival themselves.
8
+ - A sport event drops the `arts` variant that a chain tags its events genre with.
9
+
5
10
  ## [5.10.0] - 2026-11-03
6
11
  ### Added
7
12
  - Live sport is an `Event`: `Six Nations 2027 - England v France` gives the event Six Nations and the variant `sport`. The fixture keeps the competition in its film name. `Event#variant` is `arts` or `sport`.
@@ -71,7 +71,7 @@ module Cinebase
71
71
  {
72
72
  booking_url: showing.booking_url,
73
73
  dimension: [title, *showing.tags].any? { |text| text.match?(THREE_D) } ? '3d' : '2d',
74
- festival: Festival.from_title(title, year: showing.date.year),
74
+ festival: Festival.from_title(title, year: showing.date.year, names: festival_names),
75
75
  film_name: title_sanitizer.new(title).sanitized,
76
76
  film_year: TitleSanitizer.film_year(title),
77
77
  language: title[LANGUAGE, 1],
@@ -57,7 +57,7 @@ module Cinebase
57
57
  {
58
58
  booking_url: showtime.booking_url,
59
59
  dimension: showtime.dimension,
60
- festival: Festival.from_title(title, year: starting_at.year),
60
+ festival: Festival.from_title(title, year: starting_at.year, names: festival_names),
61
61
  film_name: title_sanitizer.new(title).sanitized,
62
62
  film_year: TitleSanitizer.film_year(title),
63
63
  language: showtime.language || title[/\((#{TitleSanitizer::LANGUAGES.join('|')})\)/i, 1],
@@ -63,9 +63,15 @@ module Cinebase
63
63
  Event.from_name(@film_name)
64
64
  end
65
65
 
66
+ # Chains list sport under their events genre, which they tag as arts
66
67
  def variant
67
68
  @variant = @variant.split(' ') if @variant.is_a?(String)
68
- (@variant + title_variants).map(&:downcase).sort.uniq
69
+ variants = (@variant + title_variants).map(&:downcase).sort.uniq
70
+ if event&.variant == 'sport'
71
+ variants - %w(arts)
72
+ else
73
+ variants
74
+ end
69
75
  end
70
76
 
71
77
  # English subtitles or open captions
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Cinebase version
4
4
  module Cinebase
5
- VERSION = '5.10.0'
5
+ VERSION = '5.10.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinebase
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.10.0
4
+ version: 5.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll