govuk_content_item_loader 2.0.0 → 2.1.0
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 +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -0
- data/govuk_content_item_loader.gemspec +1 -1
- data/lib/govuk_content_item_loader/test_helpers.rb +10 -0
- data/lib/govuk_content_item_loader/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1be41cd01c785aed434eb244a0cdc2579c2cce361fe37d250eb2450b54200e9d
|
|
4
|
+
data.tar.gz: 5767159a9c587dcadc63fce6658172a5f903a0e0682b7c0cb214ff9b059b361f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f6eda0a6528c721ea3ad797a274cb509ea4a8fb37c3b7b89a10fca30d4294cfe2e5ecd11dd3d53357cdc8a3709c740656fc748d7dab85e572fc13886c81bbb0a
|
|
7
|
+
data.tar.gz: 74e84ced2858545e4416f9ae70e93d14f3af4f3a6f05d9d5471cc2635df7811ca3c9e27e73404332e15220b9a57f55821531ecb03a36c7f944f871f1b30da225
|
data/.github/workflows/ci.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.3.11
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
* Drop support for Ruby 3.2
|
|
6
|
+
|
|
7
|
+
## 2.0.1
|
|
8
|
+
|
|
9
|
+
* Add `stub_conditional_content_loader_isnt_available` test helper.
|
|
10
|
+
* Add `stub_conditional_content_loader_has_gone_item` test helper.
|
|
11
|
+
|
|
3
12
|
## 2.0.0
|
|
4
13
|
|
|
5
14
|
* BREAKING: replaces `stub_conditional_loader_returns_content_item` test helper with `stub_conditional_loader_returns_content_item_for_path` to match requests to a specific request path, for testing in frontend applications.
|
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
|
12
12
|
spec.homepage = "https://github.com/alphagov/govuk_content_item_loader"
|
|
13
13
|
spec.license = "MIT"
|
|
14
14
|
|
|
15
|
-
spec.required_ruby_version = ">= 3.
|
|
15
|
+
spec.required_ruby_version = ">= 3.3"
|
|
16
16
|
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
18
18
|
spec.bindir = "exe"
|
|
@@ -16,6 +16,16 @@ module GovukConditionalContentItemLoaderTestHelpers
|
|
|
16
16
|
stub_publishing_api_graphql_does_not_have_item(base_path)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def stub_conditional_content_loader_isnt_available
|
|
20
|
+
stub_content_store_isnt_available
|
|
21
|
+
stub_publishing_api_isnt_available
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def stub_conditional_content_loader_has_gone_item(base_path)
|
|
25
|
+
stub_content_store_has_gone_item(base_path)
|
|
26
|
+
stub_publishing_api_graphql_has_gone_item(base_path)
|
|
27
|
+
end
|
|
28
|
+
|
|
19
29
|
private
|
|
20
30
|
|
|
21
31
|
def content_item_for_base_path(base_path)
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_content_item_loader
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
203
203
|
requirements:
|
|
204
204
|
- - ">="
|
|
205
205
|
- !ruby/object:Gem::Version
|
|
206
|
-
version: '3.
|
|
206
|
+
version: '3.3'
|
|
207
207
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
requirements:
|
|
209
209
|
- - ">="
|