cinebase 5.9.0 → 5.9.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: 7eff40769f29794d20f66b87e8d78a5295e6efb32acd0b59d7c2189456c1d98a
4
- data.tar.gz: fabfa47d703f1aa2b4d8c6a06773a6435a36c974fd8775367ad844b7fec6f254
3
+ metadata.gz: ddfc1ea3e2cacacf74828b2e586840907802ca0685fadca5a57aec629144f1d1
4
+ data.tar.gz: dd598494811d3c2c5c62f4774045d84a30790665f17e097fbf14f55d670ee785
5
5
  SHA512:
6
- metadata.gz: 429d9f452ab938b0c1e8e353c18efcc52c374698a9c38d27e60d09ef3001d0ae1226aff4015f28b60ed1c915e2af59389701fd1ecb515f7e30d689b54bcbe1ca
7
- data.tar.gz: b9c3e3a3834facd2f41448c3788c76a693d57081fa844266706415df4bfd4bbeb1a178aeb3e159da1d6b44d19bd6524d6d06094b383e686f6a05de750e46c983
6
+ metadata.gz: 31bd8500df420827e1fa3ec31f5d58ba89537f17cb6fec9f753f18a7e0188f1369ee4b0822aeb787873e0945eb53c00d0d33a465372df0a1fe677bb862639ad8
7
+ data.tar.gz: 41ef31ab861f2eec0ed0052b35b93a304e0bb5ae058909653df62d9b06cfdab5636aefc1eb948714926ca44ebb9265f934ae7297335267eb55c59d8b53a11092
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.9.1] - 2026-11-03
6
+ ### Fixed
7
+ - Titles with non-breaking spaces now match the common rules and audience labels.
8
+ - `COMMON_REMOVE` also strips presenter credits such as `Bar Trash Presents:`, an anniversary at the end of a title without brackets, `– Live On Stage` with an en dash, Q&A add-ons naming a `Dir.`, and bracketed Q&As.
9
+
5
10
  ## [5.9.0] - 2026-11-03
6
11
  ### Added
7
12
  - `Cinebase::Event` for opera, ballet, theatre and exhibition screenings. `Performance#event` names the series from the `film_name` prefix the title sanitizer gives, such as `Met Opera: `, and `Performance#film_name` leaves it out.
@@ -21,7 +21,7 @@ module Cinebase
21
21
  @film_year = options.fetch(:film_year, nil)
22
22
  @language = options.fetch(:language, nil)
23
23
  @time = options.fetch(:starting_at)
24
- @title = options.fetch(:title, nil)
24
+ @title = options.fetch(:title, nil)&.gsub(/[[:space:]]/, ' ')
25
25
  @variant = options.fetch(:variant, [])
26
26
  end
27
27
 
@@ -5,7 +5,7 @@ module Cinebase
5
5
  TitleSanitizer = Struct.new(:title) do
6
6
  def sanitized
7
7
  @sanitized ||= begin
8
- sanitized = title.dup
8
+ sanitized = title.gsub(/[[:space:]]/, ' ')
9
9
  remove.each do |pattern|
10
10
  sanitized.gsub! pattern, ''
11
11
  end
@@ -45,6 +45,7 @@ module Cinebase
45
45
  *Festival::PREFIXES, # festival prefix
46
46
  *Audience::PATTERNS, # audience label
47
47
  /\A(?:Opening|Closing|Centrepiece|Documentary)(?: Night)? Gala:\s*/i, # festival gala
48
+ /\A[^:]+?\s+presents:\s*/i, # presenter credit
48
49
  /\s+[23]d\b/i, # dimension
49
50
  /\s*\([23]D\)/i, # bracketed dimension
50
51
  /\((#{LANGUAGES.join('|')})\)/i, # language version
@@ -53,14 +54,16 @@ module Cinebase
53
54
  /\s*\(4K(?: Restoration)?\)/i, # bracketed 4K restoration
54
55
  /\s*\((?:20\d{2} )?Encore\)/i, # bracketed encore
55
56
  /\s*\(Recorded\)/i, # recorded, not live
56
- /\s+-\s+Live On Stage\z/i, # filmed stage show
57
+ /\s+[-–]\s+Live On Stage\z/i, # filmed stage show
57
58
  /\(Re-release\)/i, # re-release
58
59
  FILM_YEAR, # film year, see .film_year
59
- /\s*\+\s*(?:[\w-]+\s+)*Q(?:&|\+)A\z/i, # Q&A add-on
60
+ /\s*\+\s*(?:[\w.-]+\s+)*Q(?:&|\+)A\z/i, # Q&A add-on
61
+ /\s*\((?:with )?[^)]*Q(?:&|\+)A\)/i, # bracketed Q&A
60
62
  /\s*\+\s*Discussion\z/i, # discussion add-on
61
63
  /\s*\+\s*(?:ScreenTalk|Intro(?:duction)?|Short Film)\z/i, # talk or short add-on
62
64
  /\s*\((35|70)mm\)/i, # film gauge
63
- /\s+4K(?: Restoration)?\b/i, # 4K restoration
65
+ /\s+4K(?: Restoration)?\b/i, # 4K restoration
66
+ /\s*[-–]?\s*\d+(?:st|nd|rd|th) Anniversary\z/i, # trailing anniversary
64
67
  /:\s*Encore\z/i, # encore
65
68
  /\bsing-?a-?long\z/i, # singalong
66
69
  'amp;' # html ampersands
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Cinebase version
4
4
  module Cinebase
5
- VERSION = '5.9.0'
5
+ VERSION = '5.9.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.9.0
4
+ version: 5.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll