openactive-dataset_site 6.0.0 → 6.0.1

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: dfb043291daab358f768329f6311fbb0b57a6c4319d0942c046c3aad08d4cdc0
4
- data.tar.gz: 166637b71a34034a6b78de8aa5a27e7a3814a528f9a2ea10718007c60192d19b
3
+ metadata.gz: 0d3e2a2d08572b7e27b405a0dc905409cac23c891bdf9f5abc3ac699bdba48d3
4
+ data.tar.gz: 967b8743bb67803f64219d5547424a7b2b93c92edad7b19f4ec934a134f69988
5
5
  SHA512:
6
- metadata.gz: 121509a0550e74c56656f32da17a8d84bf885546504337abaa0dadb102c58dee6f5f5b586eee102bc2d2187778261172d04a3d31c94ba714907911b6cf820815
7
- data.tar.gz: d659df7dfb8242304c8653ad7f9ca61b693900767a251fbf336e2243190c8fe7d21c89abf04f48db84015b0ffbe66c1fd395ae79e3c924d38279e4d2ac9a5897
6
+ metadata.gz: a932ddad0242f2eb224fa6424258e0e42d99d48622b5f7e9d151d05142582cbe6dea0d995789c25c01904935292a341c9af771dbdb9f6c2671adcfc2b93bf4de
7
+ data.tar.gz: b188e7aeb892c75e5e7ab5ec27831a4cd0f7595cddfe45ac88aade37f323f01e9d2c12c2a0898918086b7c4e46f79d6d3736132236b70a108acc7d5ec326684d
@@ -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,
@@ -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 = "6.0.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
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: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenActive Community