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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/cinebase/performance.rb +1 -1
- data/lib/cinebase/title_sanitizer.rb +7 -4
- data/lib/cinebase/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ddfc1ea3e2cacacf74828b2e586840907802ca0685fadca5a57aec629144f1d1
|
|
4
|
+
data.tar.gz: dd598494811d3c2c5c62f4774045d84a30790665f17e097fbf14f55d670ee785
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
data/lib/cinebase/performance.rb
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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,
|
|
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
|
data/lib/cinebase/version.rb
CHANGED