govuk_schemas 6.3.0 → 6.3.2

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: dc714bb9973c34b5ae69d39d1ca1e7aec9314b6acf1bc14ee956f85eda42b197
4
- data.tar.gz: b9f2967156966b2dfba7a04caf5d64dc61413087e1aa8be54fd44bce8262db71
3
+ metadata.gz: 40a443a7634d7f662e92936b9c98311e03bd0d7bb291f537d279313410040ae9
4
+ data.tar.gz: 6cca7e831f15cdbc665454969a2c187051a7bdb15749cbf666a29b22db8d0afe
5
5
  SHA512:
6
- metadata.gz: 79e852177f840817c1211206784912d21fcdec279dca8071c66a1e02394abe4a840f882d0c4b3c48798ba32ee702ef97397e1e7060fe3517df789d1eb4abb501
7
- data.tar.gz: 0a493726aaeba7ecb682ce27de6ad9758b9c5d2b59acf4edba391254db8f4182742b6955165d8a9c785de126b0b5faebc68302a7a6c465ef978cc73c5988a92e
6
+ metadata.gz: 89706179fd25bd750e69f31cec727726c8b1d61d9ad56927640636d3846c243b74e2a8b64eb363093a9df39df4f80a4330fa48a8f0cbf29277a6eeb3540cf5b7
7
+ data.tar.gz: 413e923352a70dcec9c9c2b0bb41d4946f0832d99d66608acb7264a6ada1ad554c03db86f12c38cdaa497686b20d950e3c84737de12e6c08927f2d876bdb1eaf
@@ -3,8 +3,26 @@ updates:
3
3
  - package-ecosystem: bundler
4
4
  directory: /
5
5
  schedule:
6
- interval: daily
7
- - package-ecosystem: "github-actions"
6
+ interval: weekly
7
+ day: tuesday
8
+ time: "07:00"
9
+ allow:
10
+ - dependency-type: direct
11
+ cooldown:
12
+ default-days: 3
13
+ open-pull-requests-limit: 25
14
+ groups:
15
+ test:
16
+ patterns:
17
+ - "climate_control"
18
+ - "rspec"
19
+
20
+ - package-ecosystem: github-actions
8
21
  directory: /
9
22
  schedule:
10
- interval: daily
23
+ interval: weekly
24
+ day: tuesday
25
+ time: "07:00"
26
+ cooldown:
27
+ default-days: 3
28
+ open-pull-requests-limit: 25
@@ -28,7 +28,7 @@ jobs:
28
28
  strategy:
29
29
  fail-fast: false
30
30
  matrix:
31
- ruby: [3.3, 3.4]
31
+ ruby: [3.3, 3.4, 4.0]
32
32
  runs-on: ubuntu-latest
33
33
  steps:
34
34
  - uses: actions/checkout@v6
@@ -40,7 +40,7 @@ jobs:
40
40
  repository: alphagov/publishing-api
41
41
  ref: main
42
42
  path: tmp/publishing-api
43
- - uses: ruby/setup-ruby@v1
43
+ - uses: ruby/setup-ruby@v1.306.0
44
44
  with:
45
45
  ruby-version: ${{ matrix.ruby }}
46
46
  bundler-cache: true
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.3.2
4
+
5
+ * Update dependencies
6
+
7
+ ## 6.3.1
8
+
9
+ * Update logic for identifying path definitions
10
+
3
11
  ## 6.3.0
4
12
 
5
13
  * Drop support for Ruby 3.2
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_development_dependency "pry-byebug"
26
26
  spec.add_development_dependency "rake", "~> 13.0"
27
27
  spec.add_development_dependency "rspec", "~> 3.4"
28
- spec.add_development_dependency "rubocop-govuk", "5.2.0"
28
+ spec.add_development_dependency "rubocop-govuk", "5.2.1"
29
29
 
30
30
  spec.required_ruby_version = ">= 3.3"
31
31
  end
@@ -70,6 +70,10 @@ module GovukSchemas
70
70
  # validate against the other schemas in `props['oneOf']`.
71
71
  generate_value(props["oneOf"].sample(random: @random))
72
72
  elsif props["allOf"]
73
+ if props["$ref"] == "#/definitions/absolute_path"
74
+ return generate_random_string(props["allOf"].first)
75
+ end
76
+
73
77
  props["allOf"].each_with_object({}) do |subschema, hash|
74
78
  val = generate_value(subschema)
75
79
  hash.merge(val)
@@ -1,4 +1,4 @@
1
1
  module GovukSchemas
2
2
  # @private
3
- VERSION = "6.3.0".freeze
3
+ VERSION = "6.3.2".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_schemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.0
4
+ version: 6.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -91,14 +91,14 @@ dependencies:
91
91
  requirements:
92
92
  - - '='
93
93
  - !ruby/object:Gem::Version
94
- version: 5.2.0
94
+ version: 5.2.1
95
95
  type: :development
96
96
  prerelease: false
97
97
  version_requirements: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - '='
100
100
  - !ruby/object:Gem::Version
101
- version: 5.2.0
101
+ version: 5.2.1
102
102
  description: Gem to generate test data based on GOV.UK content schemas
103
103
  email:
104
104
  - govuk-dev@digital.cabinet-office.gov.uk
@@ -153,7 +153,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  - !ruby/object:Gem::Version
154
154
  version: '0'
155
155
  requirements: []
156
- rubygems_version: 4.0.9
156
+ rubygems_version: 4.0.11
157
157
  specification_version: 4
158
158
  summary: Gem to generate test data based on GOV.UK content schemas
159
159
  test_files: []