curzon_uk 1.0.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 +7 -0
- data/.github/workflows/ci.yml +47 -0
- data/.github/workflows/release.yml +73 -0
- data/.gitignore +19 -0
- data/.ruby-version +1 -0
- data/CHANGELOG.md +11 -0
- data/COMM-LICENSE +22 -0
- data/Gemfile +3 -0
- data/LICENSE +617 -0
- data/README.md +164 -0
- data/Rakefile +38 -0
- data/curzon_uk.gemspec +31 -0
- data/lib/curzon_uk/cinema.rb +109 -0
- data/lib/curzon_uk/internal/api_response.rb +35 -0
- data/lib/curzon_uk/internal/guest_token.rb +27 -0
- data/lib/curzon_uk/internal/parser/api/showtime.rb +62 -0
- data/lib/curzon_uk/internal/title_sanitizer.rb +32 -0
- data/lib/curzon_uk/performance.rb +82 -0
- data/lib/curzon_uk/version.rb +6 -0
- data/lib/curzon_uk.rb +30 -0
- data/test/fixtures/api/showtimes-SOH1.json +58 -0
- data/test/fixtures/api/sites.json +40 -0
- data/test/lib/curzon_uk/cinema_test.rb +84 -0
- data/test/lib/curzon_uk/internal/api_response_test.rb +52 -0
- data/test/lib/curzon_uk/internal/fixture_shape_test.rb +14 -0
- data/test/lib/curzon_uk/internal/guest_token_test.rb +91 -0
- data/test/lib/curzon_uk/internal/parser/api/showtime_test.rb +59 -0
- data/test/lib/curzon_uk/internal/title_sanitizer_test.rb +31 -0
- data/test/lib/curzon_uk/performance_test.rb +106 -0
- data/test/lib/curzon_uk/version_test.rb +7 -0
- data/test/live/api_shape_test.rb +19 -0
- data/test/live/integration_test.rb +27 -0
- data/test/live/live_helper.rb +11 -0
- data/test/package_test.rb +56 -0
- data/test/support/api_fixtures_helper.rb +17 -0
- data/test/support/api_shapes.rb +48 -0
- data/test/support/fake_api_response.rb +20 -0
- data/test/test_helper.rb +20 -0
- data/vendor/curl-impersonate/SOURCE +5 -0
- data/vendor/curl-impersonate/bin/curl-impersonate +0 -0
- data/vendor/curl-impersonate/licenses/LICENSE +21 -0
- data/vendor/curl-impersonate/licenses/LICENSE_BORINGSSL +238 -0
- data/vendor/curl-impersonate/licenses/LICENSE_BROTLI +19 -0
- data/vendor/curl-impersonate/licenses/LICENSE_CARES +24 -0
- data/vendor/curl-impersonate/licenses/LICENSE_CURL +22 -0
- data/vendor/curl-impersonate/licenses/LICENSE_LIBIDN2_GPL2 +339 -0
- data/vendor/curl-impersonate/licenses/LICENSE_LIBIDN2_GPL3 +35 -0
- data/vendor/curl-impersonate/licenses/LICENSE_LIBIDN2_LGPL3 +165 -0
- data/vendor/curl-impersonate/licenses/LICENSE_LIBIDN2_UNICODE +91 -0
- data/vendor/curl-impersonate/licenses/LICENSE_NGHTTP2 +23 -0
- data/vendor/curl-impersonate/licenses/LICENSE_NGHTTP3 +22 -0
- data/vendor/curl-impersonate/licenses/LICENSE_NGTCP2 +22 -0
- data/vendor/curl-impersonate/licenses/LICENSE_ZLIB +22 -0
- data/vendor/curl-impersonate/licenses/LICENSE_ZSTD +30 -0
- metadata +224 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 76908d42a26a329dbf40f517411aed2965323c2c706355ff333923d0e33a0d3f
|
|
4
|
+
data.tar.gz: 10524f3de64099ff4a96984c2187bc4ef5cba47260fd61e59360d57f84fb5df5
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: d7b36ea7982ab459712f7bf09d9ed0ab5b3e3164983c077aaccacd6ecef7101681e6648701016fd1976cd6e3e41a3b39e6b154b61fed1164dd831169e2db5e69
|
|
7
|
+
data.tar.gz: dddeace88d1597a6efbd2cac8800be39d83d0947f2f386dd1629031e94f116547cecf7e7c4761eaa6395838b3e28a6eb187f7749cfa57c395f7111236d3b458b
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [ main ]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [ main ]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
ruby-version: ['3.4', '4.0']
|
|
15
|
+
steps:
|
|
16
|
+
- uses: actions/checkout@v4
|
|
17
|
+
- uses: ruby/setup-ruby@v1
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
20
|
+
bundler-cache: true
|
|
21
|
+
- run: bundle exec rake test
|
|
22
|
+
|
|
23
|
+
package:
|
|
24
|
+
strategy:
|
|
25
|
+
matrix:
|
|
26
|
+
include:
|
|
27
|
+
- runner: ubuntu-latest
|
|
28
|
+
platform: x86_64-linux-gnu
|
|
29
|
+
- runner: ubuntu-24.04-arm
|
|
30
|
+
platform: aarch64-linux-gnu
|
|
31
|
+
- runner: macos-15
|
|
32
|
+
platform: arm64-darwin
|
|
33
|
+
- runner: macos-15-intel
|
|
34
|
+
platform: x86_64-darwin
|
|
35
|
+
runs-on: ${{ matrix.runner }}
|
|
36
|
+
steps:
|
|
37
|
+
- uses: actions/checkout@v4
|
|
38
|
+
- uses: ruby/setup-ruby@v1
|
|
39
|
+
with:
|
|
40
|
+
ruby-version: '4.0'
|
|
41
|
+
bundler-cache: true
|
|
42
|
+
- run: bundle exec rake 'package:native[${{ matrix.platform }}]'
|
|
43
|
+
- run: CURZON_PACKAGE="$(echo pkg/*.gem)" bundle exec ruby test/package_test.rb
|
|
44
|
+
- uses: actions/upload-artifact@v4
|
|
45
|
+
with:
|
|
46
|
+
name: gem-${{ matrix.platform }}
|
|
47
|
+
path: pkg/*.gem
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
name: Release Gem
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
|
|
6
|
+
jobs:
|
|
7
|
+
package:
|
|
8
|
+
strategy:
|
|
9
|
+
matrix:
|
|
10
|
+
include:
|
|
11
|
+
- runner: ubuntu-latest
|
|
12
|
+
platform: x86_64-linux-gnu
|
|
13
|
+
- runner: ubuntu-24.04-arm
|
|
14
|
+
platform: aarch64-linux-gnu
|
|
15
|
+
- runner: macos-15
|
|
16
|
+
platform: arm64-darwin
|
|
17
|
+
- runner: macos-15-intel
|
|
18
|
+
platform: x86_64-darwin
|
|
19
|
+
runs-on: ${{ matrix.runner }}
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v4
|
|
22
|
+
- uses: ruby/setup-ruby@v1
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: '4.0'
|
|
25
|
+
bundler-cache: true
|
|
26
|
+
- run: bundle exec rake 'package:native[${{ matrix.platform }}]'
|
|
27
|
+
- run: CURZON_PACKAGE="$(echo pkg/*.gem)" bundle exec ruby test/package_test.rb
|
|
28
|
+
- uses: actions/upload-artifact@v4
|
|
29
|
+
with:
|
|
30
|
+
name: gem-${{ matrix.platform }}
|
|
31
|
+
path: pkg/*.gem
|
|
32
|
+
|
|
33
|
+
release:
|
|
34
|
+
needs: package
|
|
35
|
+
runs-on: ubuntu-latest
|
|
36
|
+
permissions:
|
|
37
|
+
id-token: write
|
|
38
|
+
contents: write
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: ruby/setup-ruby@v1
|
|
42
|
+
with:
|
|
43
|
+
ruby-version: '4.0'
|
|
44
|
+
bundler-cache: true
|
|
45
|
+
- run: bundle exec rake test
|
|
46
|
+
- run: bundle exec rake build
|
|
47
|
+
- uses: actions/download-artifact@v4
|
|
48
|
+
with:
|
|
49
|
+
path: pkg
|
|
50
|
+
pattern: gem-*
|
|
51
|
+
merge-multiple: true
|
|
52
|
+
- uses: rubygems/configure-rubygems-credentials@v1.0.0
|
|
53
|
+
- name: Push the source and platform gems
|
|
54
|
+
run: |
|
|
55
|
+
for gem in pkg/*.gem; do
|
|
56
|
+
if output=$(gem push "$gem" 2>&1); then
|
|
57
|
+
echo "$output"
|
|
58
|
+
elif echo "$output" | grep -q "Repushing of gem versions is not allowed"; then
|
|
59
|
+
echo "Already published: $gem"
|
|
60
|
+
else
|
|
61
|
+
echo "$output"
|
|
62
|
+
exit 1
|
|
63
|
+
fi
|
|
64
|
+
done
|
|
65
|
+
- name: Tag the release
|
|
66
|
+
run: |
|
|
67
|
+
tag="v$(ruby -e 'print Gem::Specification.load(Dir["*.gemspec"].first).version')"
|
|
68
|
+
if git ls-remote --exit-code --tags origin "$tag" >/dev/null; then
|
|
69
|
+
echo "$tag already exists"
|
|
70
|
+
else
|
|
71
|
+
git tag "$tag"
|
|
72
|
+
git push origin "$tag"
|
|
73
|
+
fi
|
data/.gitignore
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
*.gem
|
|
2
|
+
*.rbc
|
|
3
|
+
.bundle
|
|
4
|
+
.config
|
|
5
|
+
.yardoc
|
|
6
|
+
Gemfile.lock
|
|
7
|
+
InstalledFiles
|
|
8
|
+
_yardoc
|
|
9
|
+
coverage
|
|
10
|
+
doc/
|
|
11
|
+
lib/bundler/man
|
|
12
|
+
pkg
|
|
13
|
+
rdoc
|
|
14
|
+
spec/reports
|
|
15
|
+
test/tmp
|
|
16
|
+
test/version_tmp
|
|
17
|
+
tmp
|
|
18
|
+
.DS_Storevendor/curl-impersonate
|
|
19
|
+
vendor/curl-impersonate
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4.0.7
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Change Log
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
|
+
|
|
5
|
+
## [1.0.0] - 2026-10-22
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
- `CurzonUk::Cinema.all` and `CurzonUk::Cinema.new(id)` for Curzon's cinemas, from the Vista API behind curzon.com.
|
|
9
|
+
- `CurzonUk::Performance.at(id, from:, to:)` with booking links, subtitles, variants, film years and festivals, following cinebase 5.4.
|
|
10
|
+
- `CurzonUk.token` and `CurzonUk.acquire_token!`, with platform gems that bundle curl-impersonate 2.2.3.
|
|
11
|
+
- Hand-written fixtures, a live shape test that checks real responses without storing them, and GitHub Actions CI and release workflows.
|
data/COMM-LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Copyright (c) 2026 Andy Croll
|
|
2
|
+
|
|
3
|
+
MIT License
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Gemfile
ADDED