rio_uk 1.0.1 → 1.1.0

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: e5ef446c0ede3a7a5303a2b0b508cb852d3449e40e3f4b6a0a217dbe5ad3999c
4
- data.tar.gz: fe3e3af145fab3fa0024a09d8cb0b2c62983ece7af107083622366dee162f046
3
+ metadata.gz: ee16c0c022f2fa1ecf21cdd679ec226c97f34c068cc84a09c86fed03690a5022
4
+ data.tar.gz: ad086a55a3b0ae48ce3c8101525a857fbd7443a55589a142c3e0c82703d79777
5
5
  SHA512:
6
- metadata.gz: 95e1fb398ff5a15fd5ff0f9617ec71efc6f2b915e2937e0422d6b5edad900403ce55bdbe99b127e283d9cfbf9e6d4ba2afb7c723a98687b911b5b5cd8ac9eb1f
7
- data.tar.gz: 65d10f4992e8503f1ba5adf338b2f1cbd3e15a5998c0539618ecc0f599a5a208b9010d991783c30a69f127f9237e256a4c826815362b8f14ba86fe4e760ca848
6
+ metadata.gz: d2b27c8de08c32cc0f4d58c31dd18bd4dc15d7f8998237beb748cd47585de809ebdc64444be4cdf28f275bfd928835976df531cc9cdc73ee7180d8d09fa9ddbd
7
+ data.tar.gz: 78cab9f6b1276dca143d39922459f791b215048c5d91ca8f3d0207afd0cfdfa953bc0d964cf3c6590bc4235c3788992c84cab51ac103cab1d26465494907125e
data/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
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
+ ## [1.1.0] - 2026-11-03
6
+
7
+ ### Changed
8
+ - Uses cinebase 5.9: performances take the raw `title:`, so audience labels become variants, and series prefixes such as `Met Opera:` become the performance's `event`.
9
+
10
+ ### Fixed
11
+ - `THE DEVILS (4K Restoration)` reads "The Devils", not "The Devils (4K".
12
+
5
13
  ## [1.0.1] - 2026-11-02
6
14
 
7
15
  ### Changed
@@ -66,6 +66,7 @@ module RioUk
66
66
  film_name: film_name,
67
67
  film_year: film_year,
68
68
  starting_at: starting_at,
69
+ title: title,
69
70
  variant: variant(performance)
70
71
  }
71
72
  end
@@ -36,9 +36,9 @@ module RioUk
36
36
  @sanitized ||= begin
37
37
  listed = without_director(title.squeeze(' ').strip)
38
38
  event_cinema = listed[EVENT_CINEMA].to_s
39
- film = without_strand(listed.delete_prefix(event_cinema))
39
+ film = without_labels(without_strand(listed.delete_prefix(event_cinema)))
40
40
  film = titlecase(leading_capitals(film)) if capitals?(film)
41
- film = remove.reduce(event_cinema + film) { |text, pattern| text.gsub(pattern, '') }
41
+ film = without_labels(event_cinema + film)
42
42
  replace.reduce(film) { |text, (pattern, prefix)| text.gsub(pattern) { prefix + $1 } }.squeeze(' ').strip
43
43
  end
44
44
  end
@@ -59,6 +59,12 @@ module RioUk
59
59
  }.merge(COMMON_REPLACE)
60
60
  end
61
61
 
62
+ # Before the case check too, as a mixed case label such as
63
+ # '(4K Restoration)' would otherwise be cut in half with the extras
64
+ def without_labels(text)
65
+ remove.reduce(text) { |stripped, pattern| stripped.gsub(pattern, '') }
66
+ end
67
+
62
68
  def capitals?(text)
63
69
  word = text[FIRST_WORD]
64
70
  !word.nil? && !word.match?(/\p{Ll}/)
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for https://riocinema.org.uk
2
- # @version 1.0.1
2
+ # @version 1.1.0
3
3
  module RioUk
4
4
  # Gem version
5
- VERSION = '1.0.1'.freeze
5
+ VERSION = '1.1.0'.freeze
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rio_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Croll
@@ -99,14 +99,14 @@ dependencies:
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '5.8'
102
+ version: '5.9'
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '5.8'
109
+ version: '5.9'
110
110
  description: Pull movie & cinema information from the Rio Cinema website
111
111
  email:
112
112
  - andy@goodscary.com