govuk_schemas 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Jenkinsfile +2 -1
- data/README.md +1 -1
- data/lib/govuk_schemas.rb +1 -0
- data/lib/govuk_schemas/document_types.rb +11 -0
- data/lib/govuk_schemas/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b196457b3ec8a0f254c64d245c32f11448f60215
|
4
|
+
data.tar.gz: 0dff37d3dd84f07932c3297e8d6477a8d9bfe16a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6231f2bc473bbaf6ca90d67a2b960c7340b7dbf8c23b9b4140cb7b074c69cdbe83b4818a8fda1dba782cf2ecff7fc124dc42f4cfc10ec7b91fdb551902c30bd2
|
7
|
+
data.tar.gz: de370e426b29552afa89b8ebb41db9cd423136fe389af51404858648bd5bceb8fa516640c262a9f0542c41f066a3a6c2f71ee1f9ca6aa0edfeedd9225e565dd0
|
data/CHANGELOG.md
CHANGED
data/Jenkinsfile
CHANGED
data/README.md
CHANGED
data/lib/govuk_schemas.rb
CHANGED
@@ -0,0 +1,11 @@
|
|
1
|
+
module GovukSchemas
|
2
|
+
class DocumentTypes
|
3
|
+
# Return all of the document types on GOV.UK
|
4
|
+
def self.valid_document_types
|
5
|
+
@valid_document_types ||= begin
|
6
|
+
filename = "#{GovukSchemas::CONTENT_SCHEMA_DIR}/lib/govuk_content_schemas/allowed_document_types.yml"
|
7
|
+
YAML.load_file(filename)
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_schemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json-schema
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- bin/console
|
116
116
|
- govuk_schemas.gemspec
|
117
117
|
- lib/govuk_schemas.rb
|
118
|
+
- lib/govuk_schemas/document_types.rb
|
118
119
|
- lib/govuk_schemas/example.rb
|
119
120
|
- lib/govuk_schemas/random.rb
|
120
121
|
- lib/govuk_schemas/random_example.rb
|