cineworld_uk 4.1.0-x86_64-darwin

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.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.agents/setup +51 -0
  3. data/.github/workflows/test.yml +43 -0
  4. data/.gitignore +18 -0
  5. data/.ruby-version +1 -0
  6. data/CHANGELOG.md +225 -0
  7. data/COMM-LICENSE +22 -0
  8. data/Gemfile +4 -0
  9. data/LICENSE +617 -0
  10. data/README.md +225 -0
  11. data/Rakefile +59 -0
  12. data/cineworld_uk.gemspec +30 -0
  13. data/lib/cineworld_uk/cinema.rb +168 -0
  14. data/lib/cineworld_uk/internal/api_response.rb +116 -0
  15. data/lib/cineworld_uk/internal/guest_token.rb +73 -0
  16. data/lib/cineworld_uk/internal/parser/api/cinema_address.rb +81 -0
  17. data/lib/cineworld_uk/internal/parser/api/film.rb +48 -0
  18. data/lib/cineworld_uk/internal/parser/api/performance.rb +41 -0
  19. data/lib/cineworld_uk/internal/title_sanitizer.rb +68 -0
  20. data/lib/cineworld_uk/performance.rb +104 -0
  21. data/lib/cineworld_uk/version.rb +6 -0
  22. data/lib/cineworld_uk.rb +31 -0
  23. data/tasks/package.rake +84 -0
  24. data/test/fixtures/api/cinema-list.json +1 -0
  25. data/test/fixtures/api/dates-14.json +1 -0
  26. data/test/fixtures/api/performances-tomorrow-14.json +1 -0
  27. data/test/fixtures/api/vista-showtimes-brighton.json +1 -0
  28. data/test/lib/cineworld_uk/cinema_test.rb +249 -0
  29. data/test/lib/cineworld_uk/internal/api_response_test.rb +207 -0
  30. data/test/lib/cineworld_uk/internal/parser/api/cinema_address_test.rb +94 -0
  31. data/test/lib/cineworld_uk/internal/parser/api/film_test.rb +160 -0
  32. data/test/lib/cineworld_uk/internal/parser/api/performance_test.rb +62 -0
  33. data/test/lib/cineworld_uk/internal/title_sanitizer_test.rb +153 -0
  34. data/test/lib/cineworld_uk/performance_test.rb +183 -0
  35. data/test/lib/cineworld_uk/version_test.rb +7 -0
  36. data/test/live/integration_test.rb +51 -0
  37. data/test/package_test.rb +49 -0
  38. data/test/support/fixture_reader.rb +32 -0
  39. data/test/test_helper.rb +12 -0
  40. data/vendor/curl-impersonate/SOURCE +5 -0
  41. data/vendor/curl-impersonate/bin/curl-impersonate +0 -0
  42. data/vendor/curl-impersonate/licenses/LICENSE +21 -0
  43. data/vendor/curl-impersonate/licenses/LICENSE_BORINGSSL +238 -0
  44. data/vendor/curl-impersonate/licenses/LICENSE_BROTLI +19 -0
  45. data/vendor/curl-impersonate/licenses/LICENSE_CARES +24 -0
  46. data/vendor/curl-impersonate/licenses/LICENSE_CURL +22 -0
  47. data/vendor/curl-impersonate/licenses/LICENSE_NGHTTP2 +23 -0
  48. data/vendor/curl-impersonate/licenses/LICENSE_NGHTTP3 +22 -0
  49. data/vendor/curl-impersonate/licenses/LICENSE_NGTCP2 +22 -0
  50. data/vendor/curl-impersonate/licenses/LICENSE_ZLIB +22 -0
  51. data/vendor/curl-impersonate/licenses/LICENSE_ZSTD +30 -0
  52. metadata +233 -0
@@ -0,0 +1,23 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2012, 2014, 2015, 2016 Tatsuhiro Tsujikawa
4
+ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,22 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2019 nghttp3 contributors
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.
@@ -0,0 +1,22 @@
1
+ The MIT License
2
+
3
+ Copyright (c) 2016 ngtcp2 contributors
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.
@@ -0,0 +1,22 @@
1
+ Copyright notice:
2
+
3
+ (C) 1995-2022 Jean-loup Gailly and Mark Adler
4
+
5
+ This software is provided 'as-is', without any express or implied
6
+ warranty. In no event will the authors be held liable for any damages
7
+ arising from the use of this software.
8
+
9
+ Permission is granted to anyone to use this software for any purpose,
10
+ including commercial applications, and to alter it and redistribute it
11
+ freely, subject to the following restrictions:
12
+
13
+ 1. The origin of this software must not be misrepresented; you must not
14
+ claim that you wrote the original software. If you use this software
15
+ in a product, an acknowledgment in the product documentation would be
16
+ appreciated but is not required.
17
+ 2. Altered source versions must be plainly marked as such, and must not be
18
+ misrepresented as being the original software.
19
+ 3. This notice may not be removed or altered from any source distribution.
20
+
21
+ Jean-loup Gailly Mark Adler
22
+ jloup@gzip.org madler@alumni.caltech.edu
@@ -0,0 +1,30 @@
1
+ BSD License
2
+
3
+ For Zstandard software
4
+
5
+ Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
6
+
7
+ Redistribution and use in source and binary forms, with or without modification,
8
+ are permitted provided that the following conditions are met:
9
+
10
+ * Redistributions of source code must retain the above copyright notice, this
11
+ list of conditions and the following disclaimer.
12
+
13
+ * Redistributions in binary form must reproduce the above copyright notice,
14
+ this list of conditions and the following disclaimer in the documentation
15
+ and/or other materials provided with the distribution.
16
+
17
+ * Neither the name Facebook, nor Meta, nor the names of its contributors may
18
+ be used to endorse or promote products derived from this software without
19
+ specific prior written permission.
20
+
21
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
22
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
23
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
24
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
25
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
26
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
27
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
28
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
metadata ADDED
@@ -0,0 +1,233 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cineworld_uk
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.1.0
5
+ platform: x86_64-darwin
6
+ authors:
7
+ - Andy Croll
8
+ bindir: bin
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: bundler
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - ">="
17
+ - !ruby/object:Gem::Version
18
+ version: '2.0'
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - ">="
24
+ - !ruby/object:Gem::Version
25
+ version: '2.0'
26
+ - !ruby/object:Gem::Dependency
27
+ name: minitest-mock
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '0'
40
+ - !ruby/object:Gem::Dependency
41
+ name: minitest-reporters
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: rake
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ type: :development
62
+ prerelease: false
63
+ version_requirements: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ - !ruby/object:Gem::Dependency
69
+ name: simplecov
70
+ requirement: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "<"
73
+ - !ruby/object:Gem::Version
74
+ version: '1'
75
+ type: :development
76
+ prerelease: false
77
+ version_requirements: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "<"
80
+ - !ruby/object:Gem::Version
81
+ version: '1'
82
+ - !ruby/object:Gem::Dependency
83
+ name: webmock
84
+ requirement: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
89
+ type: :development
90
+ prerelease: false
91
+ version_requirements: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - ">="
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ - !ruby/object:Gem::Dependency
97
+ name: base64
98
+ requirement: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '0.3'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '0.3'
110
+ - !ruby/object:Gem::Dependency
111
+ name: cinebase
112
+ requirement: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '5.0'
117
+ type: :runtime
118
+ prerelease: false
119
+ version_requirements: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '5.0'
124
+ - !ruby/object:Gem::Dependency
125
+ name: nokogiri
126
+ requirement: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">="
129
+ - !ruby/object:Gem::Version
130
+ version: '1.11'
131
+ type: :runtime
132
+ prerelease: false
133
+ version_requirements: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - ">="
136
+ - !ruby/object:Gem::Version
137
+ version: '1.11'
138
+ description: Pull movie & cinema information from the Cineworld iOS API
139
+ email:
140
+ - andy@goodscary.com
141
+ executables: []
142
+ extensions: []
143
+ extra_rdoc_files: []
144
+ files:
145
+ - ".agents/setup"
146
+ - ".github/workflows/test.yml"
147
+ - ".gitignore"
148
+ - ".ruby-version"
149
+ - CHANGELOG.md
150
+ - COMM-LICENSE
151
+ - Gemfile
152
+ - LICENSE
153
+ - README.md
154
+ - Rakefile
155
+ - cineworld_uk.gemspec
156
+ - lib/cineworld_uk.rb
157
+ - lib/cineworld_uk/cinema.rb
158
+ - lib/cineworld_uk/internal/api_response.rb
159
+ - lib/cineworld_uk/internal/guest_token.rb
160
+ - lib/cineworld_uk/internal/parser/api/cinema_address.rb
161
+ - lib/cineworld_uk/internal/parser/api/film.rb
162
+ - lib/cineworld_uk/internal/parser/api/performance.rb
163
+ - lib/cineworld_uk/internal/title_sanitizer.rb
164
+ - lib/cineworld_uk/performance.rb
165
+ - lib/cineworld_uk/version.rb
166
+ - tasks/package.rake
167
+ - test/fixtures/api/cinema-list.json
168
+ - test/fixtures/api/dates-14.json
169
+ - test/fixtures/api/performances-tomorrow-14.json
170
+ - test/fixtures/api/vista-showtimes-brighton.json
171
+ - test/lib/cineworld_uk/cinema_test.rb
172
+ - test/lib/cineworld_uk/internal/api_response_test.rb
173
+ - test/lib/cineworld_uk/internal/parser/api/cinema_address_test.rb
174
+ - test/lib/cineworld_uk/internal/parser/api/film_test.rb
175
+ - test/lib/cineworld_uk/internal/parser/api/performance_test.rb
176
+ - test/lib/cineworld_uk/internal/title_sanitizer_test.rb
177
+ - test/lib/cineworld_uk/performance_test.rb
178
+ - test/lib/cineworld_uk/version_test.rb
179
+ - test/live/integration_test.rb
180
+ - test/package_test.rb
181
+ - test/support/fixture_reader.rb
182
+ - test/test_helper.rb
183
+ - vendor/curl-impersonate/SOURCE
184
+ - vendor/curl-impersonate/bin/curl-impersonate
185
+ - vendor/curl-impersonate/licenses/LICENSE
186
+ - vendor/curl-impersonate/licenses/LICENSE_BORINGSSL
187
+ - vendor/curl-impersonate/licenses/LICENSE_BROTLI
188
+ - vendor/curl-impersonate/licenses/LICENSE_CARES
189
+ - vendor/curl-impersonate/licenses/LICENSE_CURL
190
+ - vendor/curl-impersonate/licenses/LICENSE_NGHTTP2
191
+ - vendor/curl-impersonate/licenses/LICENSE_NGHTTP3
192
+ - vendor/curl-impersonate/licenses/LICENSE_NGTCP2
193
+ - vendor/curl-impersonate/licenses/LICENSE_ZLIB
194
+ - vendor/curl-impersonate/licenses/LICENSE_ZSTD
195
+ homepage: https://github.com/andycroll/cineworld_uk
196
+ licenses:
197
+ - AGPL
198
+ - MIT
199
+ metadata: {}
200
+ rdoc_options: []
201
+ require_paths:
202
+ - lib
203
+ required_ruby_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: '0'
208
+ required_rubygems_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: '0'
213
+ requirements: []
214
+ rubygems_version: 3.6.9
215
+ specification_version: 4
216
+ summary: It's a scraper, but a nice one
217
+ test_files:
218
+ - test/fixtures/api/cinema-list.json
219
+ - test/fixtures/api/dates-14.json
220
+ - test/fixtures/api/performances-tomorrow-14.json
221
+ - test/fixtures/api/vista-showtimes-brighton.json
222
+ - test/lib/cineworld_uk/cinema_test.rb
223
+ - test/lib/cineworld_uk/internal/api_response_test.rb
224
+ - test/lib/cineworld_uk/internal/parser/api/cinema_address_test.rb
225
+ - test/lib/cineworld_uk/internal/parser/api/film_test.rb
226
+ - test/lib/cineworld_uk/internal/parser/api/performance_test.rb
227
+ - test/lib/cineworld_uk/internal/title_sanitizer_test.rb
228
+ - test/lib/cineworld_uk/performance_test.rb
229
+ - test/lib/cineworld_uk/version_test.rb
230
+ - test/live/integration_test.rb
231
+ - test/package_test.rb
232
+ - test/support/fixture_reader.rb
233
+ - test/test_helper.rb