govuk-content-schema-test-helpers 1.6.0 → 1.6.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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 53616c88d12f514452a2aad2e2448ebfc847d84e3adb3c96b4ef04ab77abcd9c
|
4
|
+
data.tar.gz: e06cb20368edd2c9a2e9729ab2cb68c21f86ac4cabd727210e56d5e0b0679c49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b6083fee6638ebb7d090d918d0fc2631297cb9498a986f91cbcc1b7e04b6d3a21ecd5bd6eb316ea4b4637e812587996a46a43bf0a8ab811c6b10501dd2cedb6
|
7
|
+
data.tar.gz: 7921eb483a01afea97f9f876efe695623a39b1b8a11de92ed2230c333b29ced90e7aeb28e05cbef8df960168c50ee06ffb64b6144877be40d4bf7332d1fe6f1a
|
@@ -36,8 +36,8 @@ module GovukContentSchemaTestHelpers
|
|
36
36
|
private
|
37
37
|
|
38
38
|
def check_an_example_file_exists(path, legacy_path)
|
39
|
-
return path if File.
|
40
|
-
return legacy_path if File.
|
39
|
+
return path if File.exist?(path)
|
40
|
+
return legacy_path if File.exist?(legacy_path)
|
41
41
|
|
42
42
|
raise ImproperlyConfiguredError, "Example file not found, checked: #{path} and #{legacy_path}."
|
43
43
|
end
|
@@ -11,7 +11,7 @@ module GovukContentSchemaTestHelpers
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def self.check_govuk_content_schemas_path!
|
14
|
-
if !File.
|
14
|
+
if !File.exist?(Util.govuk_content_schemas_path)
|
15
15
|
message = "Dependency govuk-content-schemas cannot be found at: #{govuk_content_schemas_path}."
|
16
16
|
message += " Clone it to that directory, or set GOVUK_CONTENT_SCHEMAS_PATH (see README.md for details)."
|
17
17
|
raise ImproperlyConfiguredError, message
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk-content-schema-test-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamie Cobbett
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: json-schema
|
@@ -106,7 +106,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.
|
109
|
+
rubygems_version: 2.7.3
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Test helpers for working with GOV.UK content schemas
|