govuk-content-schema-test-helpers 1.6.0 → 1.6.1

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
- SHA1:
3
- metadata.gz: f1ab374dae0252e823e3b3b4c8363fdd82ac7807
4
- data.tar.gz: e1c3b29c9355bbe5fd3f5fb28ccb496a8aa8ed22
2
+ SHA256:
3
+ metadata.gz: 53616c88d12f514452a2aad2e2448ebfc847d84e3adb3c96b4ef04ab77abcd9c
4
+ data.tar.gz: e06cb20368edd2c9a2e9729ab2cb68c21f86ac4cabd727210e56d5e0b0679c49
5
5
  SHA512:
6
- metadata.gz: 8c546a3b12ee0cfa1c8553a1109a38990633be54fcbe986cf1a86672cad1439f5c79dee92c8671c29b764afa3398d9972a7b66f7265c76d02592bba1030f8ea7
7
- data.tar.gz: 443e6d6b9c4f7ce783d17ebf7925e4b5dab0a7fba4b27b48b722c52dd83422a761e6471e6947b08900997d366d5556bdaf2410a4982984f66030dadab12b93c5
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.exists?(path)
40
- return legacy_path if File.exists?(legacy_path)
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.exists?(Util.govuk_content_schemas_path)
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
@@ -16,7 +16,7 @@ module GovukContentSchemaTestHelpers
16
16
  end
17
17
 
18
18
  def errors
19
- unless File.exists?(schema_path)
19
+ unless File.exist?(schema_path)
20
20
  raise ImproperlyConfiguredError, "Schema file not found at: #{schema_path}"
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module GovukContentSchemaTestHelpers
2
- VERSION = '1.6.0'
2
+ VERSION = '1.6.1'
3
3
  end
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.0
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: 2017-12-11 00:00:00.000000000 Z
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.6.13
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