vue_uk 1.1.0 → 1.2.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: 360458297b98535971b0dbef7be0dafeb437ee4da40426c7d8ef259515edc023
4
- data.tar.gz: 825f222789213c3be3d0c0e8abcb5f8ece8f0f26a9c7259146faa80ec01a8799
3
+ metadata.gz: 88bda243853ffd571e0ed3fe5a688f340ff3edd95586cf444a9ed2fc4ce05af1
4
+ data.tar.gz: d751d0add3165400fce6e0f19b5c5d3a2640294e907b2b82a8b742ee9eb2c83a
5
5
  SHA512:
6
- metadata.gz: faa8d4ee96a22fe8ff39b39a612254a0fdb6b88db1615016ac110beaba4ea6b487bc82d202e344162a874e76a61d77d9db313ad1df3556f6aa0d8479d43d7124
7
- data.tar.gz: 8fd92fbd799e6be26c30f6be0f3d89c588041cb4fe5b7cc539e024be88df3920939e4c1f5e74a853effbe2f56f8ae7b554beed44468e3996ed5504892bcb0f00
6
+ metadata.gz: b1aeb6c8e255951093f821ee9eb150bfee69adb819c3011680f8cfdbc16214b7d4c8768219ac93d0c5504c73cf8aec96e114feaeb853da410b10febff6365876
7
+ data.tar.gz: a353cf8054688f3dee3f85eae915d06f4e4f9991c15780004f9eec59c714a972b877550380126145903d7e6e2fa459e0aca9d0c90ea1a8d7111d38863cadfec0
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
@@ -44,6 +44,7 @@ module VueUk
44
44
  film_year: Cinebase::TitleSanitizer.film_year(title),
45
45
  language: attribute_names.find { |name| LANGUAGES.include?(name) },
46
46
  starting_at: starting_at,
47
+ title: title,
47
48
  variant: attribute_names.filter_map { |name| VARIANTS[name] }.uniq
48
49
  }
49
50
  end
@@ -23,6 +23,7 @@ module VueUk
23
23
  # @option options [Integer] :film_year (nil) year from the film's title
24
24
  # @option options [String] :language (nil) audio language, e.g. 'English'
25
25
  # @option options [Time] :starting_at listed start time of the performance
26
+ # @option options [String] :title (nil) raw film title, read for audience labels
26
27
 
27
28
  # Performances within an inclusive range of showing dates, from one request
28
29
  # for all of the cinema's advertised dates.
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for https://www.myvue.com
2
- # @version 1.1.0
2
+ # @version 1.2.0
3
3
  module VueUk
4
4
  # Gem version
5
- VERSION = '1.1.0'.freeze
5
+ VERSION = '1.2.0'.freeze
6
6
  end
@@ -10,6 +10,7 @@ class VueUk::Internal::Parser::Api::ShowtimeTest < Minitest::Test
10
10
  film_year: 1996,
11
11
  language: nil,
12
12
  starting_at: Time.utc(2026, 10, 24, 17, 30),
13
+ title: 'From Dusk Till Dawn (1996)',
13
14
  variant: []
14
15
  }
15
16
 
@@ -26,19 +27,27 @@ class VueUk::Internal::Parser::Api::ShowtimeTest < Minitest::Test
26
27
  assert_equal %w(autism_friendly kids), variant
27
28
  end
28
29
 
30
+ def test_performance_reads_audience_label_from_title
31
+ attributes = parse(title: 'Relaxed Screening: Zootropolis 2')
32
+ performance = VueUk::Performance.new(attributes.merge(cinema_id: '10051', cinema_name: 'Accrington'))
33
+
34
+ assert_equal 'Zootropolis 2', performance.film_name
35
+ assert_equal %w(relaxed), performance.variant
36
+ end
37
+
29
38
  def test_missing_booking_url
30
39
  assert_nil parse(booking_url: nil)[:booking_url]
31
40
  end
32
41
 
33
42
  private
34
43
 
35
- def parse(attributes: [], booking_url: '/book-tickets/summary/10051/HO1/1')
44
+ def parse(attributes: [], booking_url: '/book-tickets/summary/10051/HO1/1', title: 'From Dusk Till Dawn (1996)')
36
45
  session = {
37
46
  'bookingUrl' => booking_url,
38
47
  'showTimeWithTimeZone' => '2026-10-24T18:30:00+01:00',
39
48
  'attributes' => attributes.map { |name| { 'name' => name } }
40
49
  }
41
- film = { 'filmTitle' => 'From Dusk Till Dawn (1996)' }
50
+ film = { 'filmTitle' => title }
42
51
  VueUk::Internal::Parser::Api::Showtime.new(session, film: film).to_hash
43
52
  end
44
53
  end
data/vue_uk.gemspec CHANGED
@@ -26,5 +26,5 @@ Gem::Specification.new do |spec|
26
26
  spec.add_development_dependency 'simplecov', '< 1'
27
27
  spec.add_development_dependency 'webmock'
28
28
 
29
- spec.add_runtime_dependency 'cinebase', '~> 5.4'
29
+ spec.add_runtime_dependency 'cinebase', '~> 5.9'
30
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vue_uk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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.4'
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.4'
109
+ version: '5.9'
110
110
  description: Pull movie & cinema information from the Vue cinemas website API
111
111
  email:
112
112
  - andy@goodscary.com