govuk_document_types 0.1.4 → 0.1.5

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
2
  SHA1:
3
- metadata.gz: 341f515aba3de2b96cc34b6e5cc607cbf7d6933a
4
- data.tar.gz: 73e20dd83fd9e8323ea1d05f6ed0402ee72b3c02
3
+ metadata.gz: 2db3d7d1d6a7c3adab93331ed8c258c66a957087
4
+ data.tar.gz: cd3d636494435645b78a9a0fd73783e216952d33
5
5
  SHA512:
6
- metadata.gz: d140e20e39e40a0f88c694c2e98a4718b2372f652079474af40343041244d85293258d092294bd5a798fcea90726d81fd64f15da4e74dd8e80b75a5474847917
7
- data.tar.gz: 7ec967069cb7675cb1eca439c8e50b1d1b79fd71f0f960bbf9b59e1bff9b0d68fedd4eb9b189ecd42fabc3c3a172ebd7131f2ecb658825f6f4131cd7312bf53a
6
+ metadata.gz: 61b658b442e3b405fee966043c8ae21e8be066fb70402080d8d03a9e4aa2392b56cda9769dd66620c2aba00964e3afcdf7a117d11985d5b3cf367ef922aa2190
7
+ data.tar.gz: 2f0ce0eebc900c0ffe2bde644073f308a91e7cfb5dc265520c34d3396f726ed3aec61dd894e6e92c85a6294e5a4af0c4613fb62b2d6ddb505651f07a9d559694
@@ -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
@@ -1,21 +1,19 @@
1
- The MIT License (MIT)
1
+ Copyright (C) 2017 Crown copyright (Government Digital Service)
2
2
 
3
- Copyright (c) 2017 Tijmen Brommet
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
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
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
- THE SOFTWARE.
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
- # GovukDocumentTypes
1
+ # GOV.UK document types
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/govuk_document_types`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ This gem contains the "document supertypes" for GOV.UK. Supertypes are groupings
4
+ of document types.
4
5
 
5
- TODO: Delete this and the text above, and describe your gem
6
+ https://docs.publishing.service.gov.uk/document-types.html
6
7
 
7
- ## Installation
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
- Add this line to your application's Gemfile:
11
+ ## How to add a supertype
10
12
 
11
- ```ruby
12
- gem 'govuk_document_types'
13
- ```
14
-
15
- And then execute:
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
- TODO: Write usage instructions here
19
+ ## How to update a supertype
26
20
 
27
- ## Development
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
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
- The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GovukDocumentTypes
2
- VERSION = "0.1.4".freeze
2
+ VERSION = "0.1.5".freeze
3
3
  end
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
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-03-17 00:00:00.000000000 Z
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.5.1
97
+ rubygems_version: 2.6.8
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Gem to share document type groupings