curzon_uk 1.1.0-aarch64-linux-gnu → 1.2.0-aarch64-linux-gnu

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: 39d926f2720ab869f9c09f005732232b782704eaa06d6c2fcf684af9c3e5e87c
4
- data.tar.gz: 16ab60837bd2db74526aba9f329dbf2dc097a64a9e849bba2956dede760a3ff6
3
+ metadata.gz: 586063e54e6f8b92a1c49108a6173362f3e6d89568b1df3cd38241f5a69bba40
4
+ data.tar.gz: 5889b4d868dfd15f14739f3dc871c89c44460a1d73049231aed5221d931a03d5
5
5
  SHA512:
6
- metadata.gz: a1e363e3f0783aa30297e0d161dd4c20e397d4184bee6a44dd080c1e558704806f7d3915e1d489943c6cbe81b9eef23ab350f9f9e33c30324f631975721245ae
7
- data.tar.gz: 3107400d48985144185d2845368ac47cd28e8f605114a5283bc8b6f75845602957ef8e21a06105600087d49500533ac5551007149306c5e36865afa061d36289
6
+ metadata.gz: b08be01f9a54bb408b686468ad65d62911e967eb7832eaacd65158e52ef2b363668053c964962b5199be5513a1386abf9026e7fdcc66b4ba21f552dc25e4bcea
7
+ data.tar.gz: 49117bdc83a187e536893d42aa06712ddc36d7684c592f055afdf6804554a3894b96716096218d8a8cc1e6df1a4094e7d3403b2090d0027615917445cf22806f
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
+ ## [1.2.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
+
5
10
  ## [1.1.0] - 2026-10-31
6
11
 
7
12
  ### Added
data/curzon_uk.gemspec CHANGED
@@ -27,5 +27,5 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'simplecov', '< 1'
28
28
  spec.add_development_dependency 'webmock'
29
29
 
30
- spec.add_runtime_dependency 'cinebase', '~> 5.6'
30
+ spec.add_runtime_dependency 'cinebase', '~> 5.9'
31
31
  end
@@ -36,6 +36,7 @@ module CurzonUk
36
36
  film_name: TitleSanitizer.new(title).sanitized,
37
37
  film_year: Cinebase::TitleSanitizer.film_year(title),
38
38
  starting_at: starting_at,
39
+ title: title,
39
40
  variant: variant
40
41
  }
41
42
  end
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for https://www.curzon.com
2
- # @version 1.1.0
2
+ # @version 1.2.0
3
3
  module CurzonUk
4
4
  # Gem version
5
- VERSION = '1.1.0'.freeze
5
+ VERSION = '1.2.0'.freeze
6
6
  end
@@ -21,6 +21,7 @@ class CurzonUk::Internal::Parser::Api::ShowtimeTest < Minitest::Test
21
21
  film_name: 'Sense and Sensibility',
22
22
  film_year: 2026,
23
23
  starting_at: Time.utc(2026, 10, 24, 17, 30),
24
+ title: 'Sense and Sensibility (2026)',
24
25
  variant: []
25
26
  }
26
27
 
@@ -35,6 +35,19 @@ class CurzonUk::PerformanceTest < Minitest::Test
35
35
  assert_equal 'https://www.curzon.com/ticketing/seats/?showtimeId=SOH1-1001', performance.booking_url
36
36
  end
37
37
 
38
+ def test_at_reads_audience_from_title
39
+ @api_response.define_singleton_method(:showtimes) do |cinema_id, date|
40
+ super(cinema_id, date).tap do |data|
41
+ data.dig('relatedData', 'films', 0, 'title')['text'] = 'Kids Club: Wonka'
42
+ end
43
+ end
44
+ performance = performances_at('SOH1').first
45
+
46
+ assert_equal 'Kids Club: Wonka', performance.title
47
+ assert_equal 'Wonka', performance.film_name
48
+ assert_equal %w(kids), performance.variant
49
+ end
50
+
38
51
  def test_at_parses_3d_open_captions
39
52
  performance = performances_at('SOH1')[1]
40
53
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: curzon_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: aarch64-linux-gnu
6
6
  authors:
7
7
  - Andy Croll
@@ -113,14 +113,14 @@ dependencies:
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '5.6'
116
+ version: '5.9'
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '5.6'
123
+ version: '5.9'
124
124
  description: Pull movie & cinema information from the Curzon Vista API
125
125
  email:
126
126
  - andy@goodscary.com