openactive-dataset_site 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dfb043291daab358f768329f6311fbb0b57a6c4319d0942c046c3aad08d4cdc0
4
- data.tar.gz: 166637b71a34034a6b78de8aa5a27e7a3814a528f9a2ea10718007c60192d19b
3
+ metadata.gz: dcec1c1660055adf1bebf78c1c053384875e7bdb908c60c6d6acc5b6dc1dec19
4
+ data.tar.gz: 0403306a9b923e6932adf4d4e33bfa8c42ed7c1c704536a902f21d24c0e460c3
5
5
  SHA512:
6
- metadata.gz: 121509a0550e74c56656f32da17a8d84bf885546504337abaa0dadb102c58dee6f5f5b586eee102bc2d2187778261172d04a3d31c94ba714907911b6cf820815
7
- data.tar.gz: d659df7dfb8242304c8653ad7f9ca61b693900767a251fbf336e2243190c8fe7d21c89abf04f48db84015b0ffbe66c1fd395ae79e3c924d38279e4d2ac9a5897
6
+ metadata.gz: ad23349806cc2c429b86bc5d62d5f501f794d99090493cfad091aa3f2bf03dfbb11f58c19e5f2164682943ac2569bc25e69166deb9ab77576b88f04133a3cd75
7
+ data.tar.gz: a16e05635a6ea76f852ec5625581b691c267e5b07f876a6065032e53f57e41b86c39806f45a6db6a19b3b1bf736453a0abc1ffd7225c5408b52eefccbc549fc1
@@ -48,7 +48,7 @@ jobs:
48
48
  body: |
49
49
  Update to the latest version of the [Dataset Site Template](https://github.com/openactive/dataset-site-template)
50
50
 
51
- **Reviewer note:** Major version numbers of this library should match those of the `dataset-site-template` on which this library depends. Any updates to the dataset site template files or assets should always be a major version update in both libraries. Hence this PR, once merged, should be released with a major version bump to match its contents.
51
+ **Reviewer note:** Major version numbers of this library should match those of the `dataset-site-template` on which this library depends. Any updates to the dataset site template files or assets should always be a major version update in both libraries. Hence this PR, once merged, should be released with a major version bump to match its contents. Therefore, the major version number in the file `lib/openactive/dataset_site/version.rb` should be bumped in this branch before the PR is merged.
52
52
 
53
53
  labels: |
54
54
  automated pr
data/README.md CHANGED
@@ -58,7 +58,7 @@ settings = OpenActive::DatasetSite::Settings.new(
58
58
  organisation_email: "info@better.org.uk",
59
59
  platform_name: "AcmeBooker",
60
60
  platform_url: "https://acmebooker.example.com/",
61
- platform_software_version: "2.0",
61
+ platform_software_version: "2.0.1",
62
62
  background_image_url: "https://data.better.org.uk/images/bg.jpg",
63
63
  date_first_published: "2019-10-28",
64
64
  open_booking_api_base_url: "https://reference-implementation.openactive.io/api/openbooking",
@@ -202,6 +202,7 @@ dataset = OpenActive::Models::Dataset.new(
202
202
  OpenActive::Models::BookingService.new(
203
203
  name: "SimpleWeb Booking",
204
204
  url: "https://www.example.com/",
205
+ software_version: "2.0.0",
205
206
  has_credential: "https://certificates.reference-implementation.openactive.io/examples/all-features/controlled/",
206
207
  )
207
208
  )
@@ -27,6 +27,7 @@ settings = OpenActive::DatasetSite::Settings.new(
27
27
  date_first_published: "2019-11-05",
28
28
  platform_name: "AcmeBooker",
29
29
  platform_url: "https://acmebooker.example.com/",
30
+ platform_software_version: "2.0.1",
30
31
  open_booking_api_base_url: "https://reference-implementation.openactive.io/api/openbooking",
31
32
  open_booking_api_authentication_authority_url: "https://auth.reference-implementation.openactive.io",
32
33
  open_booking_api_documentation_url: "https://permalink.openactive.io/dataset-site/open-booking-api-documentation",
@@ -14,7 +14,6 @@ settings = OpenActive::DatasetSite::Settings.new(
14
14
  open_data_feed_base_url: "http://example.com/feed/",
15
15
  dataset_site_url: "http://example.com/dataset/",
16
16
  dataset_discussion_url: "https://github.com/simpleweb/sw-oa-php-test-site",
17
- dataset_documentation_url: "https://permalink.openactive.io/dataset-site/open-data-documentation",
18
17
  dataset_languages: ["en-GB"],
19
18
  organisation_name: "Simpleweb",
20
19
  organisation_url: "https://www.simpleweb.co.uk/",
@@ -26,7 +25,6 @@ settings = OpenActive::DatasetSite::Settings.new(
26
25
  background_image_url: "https://simpleweb.co.uk/wp-content/uploads/2017/06/IMG_8994-500x500-c-default.jpg",
27
26
  date_first_published: "2019-11-05",
28
27
  open_booking_api_base_url: "https://reference-implementation.openactive.io/api/openbooking",
29
- open_booking_api_documentation_url: "https://permalink.openactive.io/dataset-site/open-booking-api-documentation",
30
28
  open_booking_api_registration_url: "https://example.com/api-landing-page",
31
29
  test_suite_certificate_url: "https://certificates.reference-implementation.openactive.io/examples/all-features/controlled/",
32
30
  data_feed_types: feed_types,
@@ -83,6 +83,7 @@ dataset = OpenActive::Models::Dataset.new(
83
83
  OpenActive::Models::BookingService.new(
84
84
  name: "SimpleWeb Booking",
85
85
  url: "https://www.example.com/",
86
+ software_version: "2.0.0",
86
87
  has_credential: "https://certificates.reference-implementation.openactive.io/examples/all-features/controlled/",
87
88
  ),
88
89
  )
@@ -83,6 +83,7 @@ dataset = OpenActive::Models::Dataset.new(
83
83
  OpenActive::Models::BookingService.new(
84
84
  name: "SimpleWeb Booking",
85
85
  url: "https://www.example.com/",
86
+ software_version: "2.0.0",
86
87
  has_credential: "https://certificates.reference-implementation.openactive.io/examples/all-features/controlled/",
87
88
  ),
88
89
  )
@@ -1,10 +1,10 @@
1
1
  <!DOCTYPE HTML>
2
2
  <!--
3
- OpenActive Dataset Site Template version 6, from https://unpkg.com/@openactive/dataset-site-template@6.0.0/dist/datasetsite-csp.mustache
3
+ OpenActive Dataset Site Template version 7, from https://unpkg.com/@openactive/dataset-site-template@7.0.0/dist/datasetsite-csp.mustache
4
4
 
5
- This HTML file must reference a self-hosted 'datasetsite.styles.v6.css' file, co-located with the rest
5
+ This HTML file must reference a self-hosted 'datasetsite.styles.v7.css' file, co-located with the rest
6
6
  of the static assets from the following archive:
7
- https://unpkg.com/@openactive/dataset-site-template@6.0.0/dist/datasetsite-csp.static.zip
7
+ https://unpkg.com/@openactive/dataset-site-template@7.0.0/dist/datasetsite-csp.static.zip
8
8
  -->
9
9
  <!--
10
10
  Design: Identity by HTML5 UP
@@ -47,11 +47,11 @@
47
47
  </script>
48
48
 
49
49
  <!--
50
- This stylesheet href must reference a self-hosted 'datasetsite.styles.v6.css' file in
50
+ This stylesheet href must reference a self-hosted 'datasetsite.styles.v7.css' file in
51
51
  the same directory as the other static assets sourced from the following archive:
52
- https://unpkg.com/@openactive/dataset-site-template@6.0.0/dist/datasetsite-csp.static.zip
52
+ https://unpkg.com/@openactive/dataset-site-template@7.0.0/dist/datasetsite-csp.static.zip
53
53
  -->
54
- <link rel="stylesheet" href="{{{staticAssetsPathUrl}}}/datasetsite.styles.v6.css" crossorigin="anonymous">
54
+ <link rel="stylesheet" href="{{{staticAssetsPathUrl}}}/datasetsite.styles.v7.css" crossorigin="anonymous">
55
55
 
56
56
  </head>
57
57
  <body id="booking" background="{{backgroundImage.url}}">
@@ -59,9 +59,9 @@
59
59
  <p></p>
60
60
  <p><large><strong>Error: Static Assets Not Found</strong><large></p>
61
61
  <p>This HTML page must reference self-hosted static assets located at the relative or absolute path configured by "staticAssetsPathUrl" in the mustache template source data.</p>
62
- <p>"staticAssetsPathUrl" is currently set to "{{staticAssetsPathUrl}}", and this page has failed to access this file: <pre>{{staticAssetsPathUrl}}/datasetsite.styles.v6.css</pre></p>
62
+ <p>"staticAssetsPathUrl" is currently set to "{{staticAssetsPathUrl}}", and this page has failed to access this file: <pre>{{staticAssetsPathUrl}}/datasetsite.styles.v7.css</pre></p>
63
63
  <p>Please ensure that the assets at this location exactly match those in
64
- <a href="https://unpkg.com/@openactive/dataset-site-template@6.0.0/dist/datasetsite-csp.static.zip">datasetsite-csp.static.zip version 6</a>.</p>
64
+ <a href="https://unpkg.com/@openactive/dataset-site-template@7.0.0/dist/datasetsite-csp.static.zip">datasetsite-csp.static.zip version 7</a>.</p>
65
65
  <p></p>
66
66
  <p>See the <a href="https://github.com/openactive/dataset-site-template">"CSP compatible template" documentation</a> for more information</p>
67
67
  <p></p>
@@ -196,7 +196,7 @@
196
196
  <!-- Footer -->
197
197
  <footer id="footer">
198
198
  <ul class="copyright">
199
- <li>{{#bookingService}}Platform: <a href="{{url}}">{{name}} {{softwareVersion}}</a>. {{/bookingService}}Design: <a href="http://html5up.net">HTML5 UP</a>.</li>
199
+ <li>{{#bookingService.name}}Platform: {{/bookingService.name}}{{#bookingService.url}}<a href="{{.}}">{{/bookingService.url}}{{bookingService.name}}{{#bookingService.softwareVersion}} {{.}}{{/bookingService.softwareVersion}}{{#bookingService.url}}</a>{{/bookingService.url}}{{#bookingService.name}}. {{/bookingService.name}}Design: <a href="http://html5up.net">HTML5 UP</a>.</li>
200
200
  </ul>
201
201
  </footer>
202
202
  </div>
@@ -1,6 +1,6 @@
1
1
  <!DOCTYPE HTML>
2
2
  <!--
3
- OpenActive Dataset Site Template version 6, from https://unpkg.com/@openactive/dataset-site-template@6.0.0/dist/datasetsite.mustache
3
+ OpenActive Dataset Site Template version 7, from https://unpkg.com/@openactive/dataset-site-template@7.0.0/dist/datasetsite.mustache
4
4
  -->
5
5
  <!--
6
6
  Design: Identity by HTML5 UP
@@ -1341,7 +1341,7 @@ body {
1341
1341
  <!-- Footer -->
1342
1342
  <footer id="footer">
1343
1343
  <ul class="copyright">
1344
- <li>{{#bookingService}}Platform: <a href="{{url}}">{{name}} {{softwareVersion}}</a>. {{/bookingService}}Design: <a href="http://html5up.net">HTML5 UP</a>.</li>
1344
+ <li>{{#bookingService.name}}Platform: {{/bookingService.name}}{{#bookingService.url}}<a href="{{.}}">{{/bookingService.url}}{{bookingService.name}}{{#bookingService.softwareVersion}} {{.}}{{/bookingService.softwareVersion}}{{#bookingService.url}}</a>{{/bookingService.url}}{{#bookingService.name}}. {{/bookingService.name}}Design: <a href="http://html5up.net">HTML5 UP</a>.</li>
1345
1345
  </ul>
1346
1346
  </footer>
1347
1347
  </div>
@@ -132,13 +132,17 @@ module OpenActive
132
132
  access_service = OpenActive::Models::WebAPI.new(
133
133
  name: 'Open Booking API',
134
134
  description: webapi_description,
135
- documentation: open_booking_api_documentation_url,
135
+ documentation: "https://permalink.openactive.io/dataset-site/open-booking-api-documentation",
136
136
  endpoint_url: open_booking_api_base_url,
137
137
  conforms_to: ["https://openactive.io/open-booking-api/EditorsDraft/"],
138
138
  endpoint_description: "https://www.openactive.io/open-booking-api/EditorsDraft/swagger.json",
139
139
  landing_page: open_booking_api_registration_url
140
140
  )
141
141
 
142
+ if (open_booking_api_documentation_url_val = open_booking_api_documentation_url)
143
+ access_service.documentation = open_booking_api_documentation_url_val
144
+ end
145
+
142
146
  if (open_booking_api_authentication_authority_url_val = open_booking_api_authentication_authority_url)
143
147
  access_service.authentication_authority = open_booking_api_authentication_authority_url_val
144
148
  end
@@ -159,7 +163,7 @@ module OpenActive
159
163
  keywords: keywords,
160
164
  license: "https://creativecommons.org/licenses/by/4.0/",
161
165
  discussion_url: dataset_discussion_url,
162
- documentation: dataset_documentation_url,
166
+ documentation: "https://permalink.openactive.io/dataset-site/open-data-documentation",
163
167
  in_language: dataset_languages,
164
168
  schema_version: "https://www.openactive.io/modelling-opportunity-data/2.0/",
165
169
  publisher: OpenActive::Models::Organization.new(
@@ -180,6 +184,10 @@ module OpenActive
180
184
  date_published: date_first_published,
181
185
  )
182
186
 
187
+ if (dataset_documentation_url_val = dataset_documentation_url)
188
+ dataset.documentation = dataset_documentation_url_val
189
+ end
190
+
183
191
  if (booking_service_val = booking_service)
184
192
  dataset.booking_service = booking_service_val
185
193
  end
@@ -1,5 +1,5 @@
1
1
  module OpenActive
2
2
  module DatasetSite
3
- VERSION = "6.0.0".freeze
3
+ VERSION = "7.0.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: openactive-dataset_site
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 7.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenActive Community
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-19 00:00:00.000000000 Z
11
+ date: 2022-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustache