govuk_document_types 0.1.4 → 0.1.5
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/CHANGELOG.md +5 -0
- data/LICENSE.txt +11 -13
- data/README.md +27 -28
- data/data/supertypes.yml +1 -2
- data/lib/govuk_document_types/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2db3d7d1d6a7c3adab93331ed8c258c66a957087
|
|
4
|
+
data.tar.gz: cd3d636494435645b78a9a0fd73783e216952d33
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 61b658b442e3b405fee966043c8ae21e8be066fb70402080d8d03a9e4aa2392b56cda9769dd66620c2aba00964e3afcdf7a117d11985d5b3cf367ef922aa2190
|
|
7
|
+
data.tar.gz: 2f0ce0eebc900c0ffe2bde644073f308a91e7cfb5dc265520c34d3396f726ed3aec61dd894e6e92c85a6294e5a4af0c4613fb62b2d6ddb505651f07a9d559694
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
# 0.1.5
|
|
2
|
+
|
|
3
|
+
* Add email_document_supertype > announcements > world_news_story to fix some
|
|
4
|
+
subscriber list matching problems between govuk-delivery and email-alert-api.
|
|
5
|
+
|
|
1
6
|
# 0.1.4
|
|
2
7
|
|
|
3
8
|
* Add "email" and "government" supertypes to help with the whitehall email migration to EmailAlertApi
|
data/LICENSE.txt
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (C) 2017 Crown copyright (Government Digital Service)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in
|
|
13
|
-
all copies or substantial portions of the Software.
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
14
12
|
|
|
15
13
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
14
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
15
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
16
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
17
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
-
|
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
|
+
SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,41 +1,40 @@
|
|
|
1
|
-
#
|
|
1
|
+
# GOV.UK document types
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This gem contains the "document supertypes" for GOV.UK. Supertypes are groupings
|
|
4
|
+
of document types.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
https://docs.publishing.service.gov.uk/document-types.html
|
|
6
7
|
|
|
7
|
-
|
|
8
|
+
This gem is only to be used in [publishing-api][publishing-api] and
|
|
9
|
+
[rummager][rummager]. **Don't use it in your project**.
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
## How to add a supertype
|
|
10
12
|
|
|
11
|
-
|
|
12
|
-
gem
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
$ bundle
|
|
18
|
-
|
|
19
|
-
Or install it yourself as:
|
|
20
|
-
|
|
21
|
-
$ gem install govuk_document_types
|
|
22
|
-
|
|
23
|
-
## Usage
|
|
13
|
+
1. Add it to [data/supertypes.yml](data/supertypes.yml) in this gem and release a new version
|
|
14
|
+
2. [Add the supertype][rummager-pr] in Rummager so that it can be indexed and searched with. Bump the gem in Rummager.
|
|
15
|
+
3. [Add the type to content-schemas][schemas-pr]
|
|
16
|
+
4. [Add the type to the content-store][content-store-pr]
|
|
17
|
+
5. Bump the gem version in [publishing-api][publishing-api]
|
|
24
18
|
|
|
25
|
-
|
|
19
|
+
## How to update a supertype
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
1. Update [data/supertypes.yml](data/supertypes.yml) in this gem and release a new version.
|
|
22
|
+
2. Bump the gem version in [rummager][rummager]. Rummager's nightly re-indexing will pick up your changes.
|
|
23
|
+
3. Bump the gem version in [publishing-api][publishing-api]. All documents have to be sent to the content-store again for your changes to be picked up.
|
|
28
24
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
|
32
|
-
|
|
33
|
-
## Contributing
|
|
34
|
-
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/govuk_document_types.
|
|
25
|
+
## Running the test suite
|
|
36
26
|
|
|
27
|
+
```
|
|
28
|
+
bundle exec rake
|
|
29
|
+
```
|
|
37
30
|
|
|
38
31
|
## License
|
|
39
32
|
|
|
40
|
-
|
|
33
|
+
[MIT License](LICENSE.txt)
|
|
34
|
+
|
|
35
|
+
[rummager-pr]: https://github.com/alphagov/rummager/pull/756
|
|
36
|
+
[schemas-pr]: https://github.com/alphagov/govuk-content-schemas/pull/551
|
|
37
|
+
[content-store-pr]: https://github.com/alphagov/content-store/pull/268
|
|
41
38
|
|
|
39
|
+
[publishing-api]: https://github.com/alphagov/publishing-api
|
|
40
|
+
[rummager]: https://github.com/alphagov/rummager
|
data/data/supertypes.yml
CHANGED
|
@@ -84,13 +84,13 @@ email_document_supertype:
|
|
|
84
84
|
- transparency
|
|
85
85
|
- id: "announcements"
|
|
86
86
|
document_types:
|
|
87
|
-
- announcement
|
|
88
87
|
- fatality_notice
|
|
89
88
|
- government_response
|
|
90
89
|
- news_story
|
|
91
90
|
- oral_statement
|
|
92
91
|
- press_release
|
|
93
92
|
- speech
|
|
93
|
+
- world_news_story
|
|
94
94
|
- written_statement
|
|
95
95
|
|
|
96
96
|
government_document_supertype:
|
|
@@ -169,7 +169,6 @@ government_document_supertype:
|
|
|
169
169
|
- id: news-stories
|
|
170
170
|
document_types:
|
|
171
171
|
- news_story
|
|
172
|
-
- announcement
|
|
173
172
|
- id: fatality-notices
|
|
174
173
|
document_types:
|
|
175
174
|
- fatality_notice
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_document_types
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.5
|
|
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: 2017-
|
|
11
|
+
date: 2017-08-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
version: '0'
|
|
95
95
|
requirements: []
|
|
96
96
|
rubyforge_project:
|
|
97
|
-
rubygems_version: 2.
|
|
97
|
+
rubygems_version: 2.6.8
|
|
98
98
|
signing_key:
|
|
99
99
|
specification_version: 4
|
|
100
100
|
summary: Gem to share document type groupings
|