cinebase 5.9.2 → 5.9.3

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: b3ac8fcd0aa75c6bd83bf57573243062934e29facf62f47ef5a8e8da84cd500b
4
- data.tar.gz: 5e7989a03538de4200833f2aa3eab1ed0bebfc27f46e95b6526f5711f937f9ac
3
+ metadata.gz: ffabe8bcfcbe9896be6fbb27f3a067729e6d3e7444bcf32452908a392cd93e6d
4
+ data.tar.gz: b823bdaff6ed9cfe85e92890514c72b157af85250bfd4e704d2a4190476dc4ba
5
5
  SHA512:
6
- metadata.gz: 87be5f35f85ae4262cf552343e51546bf0f39bca4dbac73cf05e73bb3c7f327e740d06f3dd34749ca30f1768c51c0411e90530705a46e0f68f9d4a9fa1864911
7
- data.tar.gz: e210368f288ea23eb89e424043503818a4ee7437afee72399ad98f0b84ab1c358976b78e5ba3ada7cdf2274c4c6f1edf705d0759fdb11df235fe68dd3d7309a3
6
+ metadata.gz: 4e5cb3d6be63d00e6c0f177e93f815f729b3ef046f08205600dd6db389917d75e638e50f9c9f1225674f728ecd36abf4b45a0355d9e16370d335ccc2d63228d8
7
+ data.tar.gz: '0792164a88db56abcb6eef6eb4d1c3e223921ad2d47a332417c688442db6b29397d60d7e327b65f6549981c2c3e8d17eb2848ee1d0854a7cb58a936bb8d7e155'
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.3] - 2026-11-03
6
+ ### Added
7
+ - Festivals named in full, such as `UK Jewish Film Festival:` and `Women and the World International Film Festival:`, in brackets after the film, such as `Coward (French Film Festival)`, or with the year next to the name, such as `FFF26:`.
8
+ - `Dog Friendly:` without a hyphen marks a dog-friendly screening, and `(Preview)` or `[Preview]` a preview.
9
+
5
10
  ## [5.9.2] - 2026-11-03
6
11
  ### Changed
7
12
  - Festivals take their full name, so chains agree: `CFF` is Cambridge Film Festival, `FFF` and `French Film Fest UK` are French Film Festival, `IFF` is Into Film Festival, `JFF` and `UKJFF` are UK Jewish Film Festival, `LPFF` is London Palestine Film Festival, `RFF` is Romanian Film Festival and `SLA` is Scotland Loves Anime.
@@ -9,12 +9,13 @@ module Cinebase
9
9
  LABELS = {
10
10
  'kids' => [/\A(?:Toddler (?:Club|Kino)|Kids'? Club)\s*:\s*/i],
11
11
  'relaxed' => [/\ARelaxed(?: Screening)?\s*:\s*/i, /#{SEPARATOR}(?:Sensory|Autism) Friendly Screening\z/i],
12
- 'dog_friendly' => [/\ADog-Friendly(?: Screening)?\s*[:\-–]\s*/i],
12
+ 'dog_friendly' => [/\ADog[- ]Friendly(?: Screening)?\s*[:\-–]\s*/i],
13
13
  'baby' => [/\s*\(Parent (?:&|and) Baby(?: Only Show)?\)/i],
14
14
  'members' => [/#{SEPARATOR}(?:Unlimited|MyOmnipass Member) Screening\z/i],
15
15
  'subtitled' => [/\([^)]*\bsubtitles\)/i],
16
16
  'preview' => [
17
17
  /\s*[-–]\s*(?:Special )?Preview\z/i,
18
+ /\s*[(\[]Preview[)\]]/i,
18
19
  /\s*[:\-–]\s*Preview and Q(?:&|\+)A\z/i,
19
20
  /\ASee It First\s*[-–:]\s*/i
20
21
  ]
@@ -6,9 +6,10 @@ module Cinebase
6
6
  # An annual festival edition a film is screened in
7
7
  class Festival
8
8
  NAMES = [
9
- 'CFF', 'Cinecity', 'FFF', 'French Film Fest UK', 'IFF', 'Into Film Festival', 'JFF', 'LDNDOCS',
10
- 'London Palestine Film Festival', 'LPFF', 'NFF', 'Queer East', 'RFF', 'SLA', 'UKJFF',
11
- 'Women and the World Festival'
9
+ 'CFF', 'Cinecity', 'FFF', 'French Film Fest UK', 'French Film Festival', 'IFF', 'Into Film Festival',
10
+ 'JFF', 'LDNDOCS', 'London Palestine Film Festival', 'LPFF', 'NFF', 'Queer East', 'RFF', 'SLA',
11
+ 'UK Jewish Film Festival', 'UKJFF', 'Women and the World', 'Women and the World Festival',
12
+ 'Women and the World International Film Festival'
12
13
  ].freeze
13
14
 
14
15
  # Full names for short forms, so every chain names a festival alike
@@ -21,23 +22,28 @@ module Cinebase
21
22
  'LPFF' => 'London Palestine Film Festival',
22
23
  'RFF' => 'Romanian Film Festival',
23
24
  'SLA' => 'Scotland Loves Anime',
24
- 'UKJFF' => 'UK Jewish Film Festival'
25
+ 'UKJFF' => 'UK Jewish Film Festival',
26
+ 'Women and the World' => 'Women and the World Festival',
27
+ 'Women and the World International Film Festival' => 'Women and the World Festival'
25
28
  }.freeze
26
29
 
27
- NAME_PATTERN = NAMES.map { |name| Regexp.escape(name) }.join('|')
30
+ NAME_PATTERN = NAMES.sort_by { |name| -name.length }.map { |name| Regexp.escape(name) }.join('|')
28
31
 
29
32
  # Title prefixes naming a festival: the name, then the year when given
30
33
  PREFIXES = [
31
34
  /\A(Cine-Excess) (20\d{2}): /,
32
35
  /\A(Cinemagic) (\d{4}) -/,
33
36
  /\A(Horror Season) (20\d{2}) /,
34
- /\A(#{NAME_PATTERN})(?: ((?:20)?\d{2}))?(?:\s*[:–-]\s*|\s+(?=Shorts:))/
37
+ /\A(#{NAME_PATTERN})(?: ?((?:20)?\d{2}))?(?:\s*[:–-]\s*|\s+(?=Shorts:))/
35
38
  ].freeze
36
39
 
37
40
  # A festival named after the film, such as "Party USA - NFF UK Premier"
38
41
  SUFFIX = /\s+[-–]\s+(#{NAME_PATTERN})\b(?: ((?:20)?\d{2})\b)?.*\z/
39
42
 
40
- PATTERNS = [*PREFIXES, SUFFIX].freeze
43
+ # A festival in brackets after the film, such as "Coward (French Film Festival)"
44
+ BRACKETED = /\s*\((#{NAME_PATTERN})(?: ((?:20)?\d{2}))?\)/
45
+
46
+ PATTERNS =[*PREFIXES, SUFFIX, BRACKETED].freeze
41
47
 
42
48
  CENTURY = 2000
43
49
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  # Cinebase version
4
4
  module Cinebase
5
- VERSION = '5.9.2'
5
+ VERSION = '5.9.3'
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.2
4
+ version: 5.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll