govuk_document_types 0.1.3 → 0.1.4

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: 84a39f79544cda6c0ab1a464b8d1b3f0a475a005
4
- data.tar.gz: decac97a42a4080f866a953bad303874cec0f038
3
+ metadata.gz: 341f515aba3de2b96cc34b6e5cc607cbf7d6933a
4
+ data.tar.gz: 73e20dd83fd9e8323ea1d05f6ed0402ee72b3c02
5
5
  SHA512:
6
- metadata.gz: e261cde9bfce9856e619e4fbc94fc184c1de7eaa28069c4191c1b40a6406a68334be6bd5ffcbe8d36ad6dd19a6d4436637007881225e9a154856f3c4e440e71e
7
- data.tar.gz: 277470579d6d53604b6074e6ba5a0413c5b6efb950fd8073956be1e97266531e0d3691c1c43ca33ebe334d744c8b34b91df5d666785306872f7b9f35bb0a4ffb
6
+ metadata.gz: d140e20e39e40a0f88c694c2e98a4718b2372f652079474af40343041244d85293258d092294bd5a798fcea90726d81fd64f15da4e74dd8e80b75a5474847917
7
+ data.tar.gz: 7ec967069cb7675cb1eca439c8e50b1d1b79fd71f0f960bbf9b59e1bff9b0d68fedd4eb9b189ecd42fabc3c3a172ebd7131f2ecb658825f6f4131cd7312bf53a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.4
2
+
3
+ * Add "email" and "government" supertypes to help with the whitehall email migration to EmailAlertApi
4
+
1
5
  # 0.1.3
2
6
 
3
7
  * Remove `notice` from list of guidance document types
data/Jenkinsfile CHANGED
@@ -1,46 +1,6 @@
1
1
  #!/usr/bin/env groovy
2
2
 
3
- REPOSITORY = 'govuk_document_types'
4
-
5
3
  node {
6
4
  def govuk = load '/var/lib/jenkins/groovy_scripts/govuk_jenkinslib.groovy'
7
-
8
- try {
9
- stage('Checkout') {
10
- checkout scm
11
- }
12
-
13
- stage('Clean') {
14
- govuk.cleanupGit()
15
- govuk.mergeMasterBranch()
16
- }
17
-
18
- stage('Bundle') {
19
- echo 'Bundling'
20
- sh("bundle install --path ${JENKINS_HOME}/bundles/${JOB_NAME}")
21
- }
22
-
23
- stage('Linter') {
24
- govuk.rubyLinter()
25
- }
26
-
27
- stage('Tests') {
28
- govuk.setEnvar('RAILS_ENV', 'test')
29
- govuk.runTests('spec')
30
- }
31
-
32
- if(env.BRANCH_NAME == "master") {
33
- stage('Publish Gem') {
34
- govuk.publishGem(REPOSITORY, env.BRANCH_NAME)
35
- }
36
- }
37
-
38
- } catch (e) {
39
- currentBuild.result = 'FAILED'
40
- step([$class: 'Mailer',
41
- notifyEveryUnstableBuild: true,
42
- recipients: 'govuk-ci-notifications@digital.cabinet-office.gov.uk',
43
- sendToIndividuals: true])
44
- throw e
45
- }
5
+ govuk.buildProject()
46
6
  }
data/data/supertypes.yml CHANGED
@@ -50,3 +50,136 @@ user_journey_document_supertype:
50
50
  - taxon
51
51
  - topic
52
52
  - topical_event
53
+
54
+ email_document_supertype:
55
+ name: "Email document type"
56
+ description: "High level group for email subscriptions use to identify publications and announcement"
57
+ default: other
58
+ items:
59
+ - id: "publications"
60
+ document_types:
61
+ - closed_consultation
62
+ - consultation
63
+ - consultation_outcome
64
+ - corporate_report
65
+ - correspondence
66
+ - decision
67
+ - foi_release
68
+ - form
69
+ - guidance
70
+ - impact_assessment
71
+ - independent_report
72
+ - international_treaty
73
+ - map
74
+ - national_statistics
75
+ - notice
76
+ - official_statistics
77
+ - open_consultation
78
+ - policy_paper
79
+ - promotional
80
+ - regulation
81
+ - research
82
+ - statistical_data_set
83
+ - statutory_guidance
84
+ - transparency
85
+ - id: "announcements"
86
+ document_types:
87
+ - announcement
88
+ - fatality_notice
89
+ - government_response
90
+ - news_story
91
+ - oral_statement
92
+ - press_release
93
+ - speech
94
+ - written_statement
95
+
96
+ government_document_supertype:
97
+ name: "Government document type"
98
+ description: "Grouping for email subscriptions."
99
+ # we expect that everything should be mapped to a valid supertype.
100
+ default: other
101
+ items:
102
+ - id: consultations
103
+ document_types:
104
+ - consultation
105
+ - id: open-consultations
106
+ document_types:
107
+ - open_consultation
108
+ - id: closed-consultations
109
+ document_types:
110
+ - consultation_outcome
111
+ - closed_consultation
112
+ - id: policy-papers
113
+ document_types:
114
+ - policy_paper
115
+ - id: guidance
116
+ document_types:
117
+ - guidance
118
+ - statutory_guidance
119
+ - id: impact-assessments
120
+ document_types:
121
+ - impact_assessment
122
+ - id: independent-reports
123
+ document_types:
124
+ - independent_report
125
+ - id: correspondence
126
+ document_types:
127
+ - correspondence
128
+ - id: research-and-analysis
129
+ document_types:
130
+ - research
131
+ - id: statistics
132
+ document_types:
133
+ - official_statistics
134
+ - national_statistics
135
+ - statistical_data_set
136
+ - id: corporate-reports
137
+ document_types:
138
+ - corporate_report
139
+ - id: transparency-data
140
+ document_types:
141
+ - transparency
142
+ - id: foi-releases
143
+ document_types:
144
+ - foi_release
145
+ - id: forms
146
+ document_types:
147
+ - form
148
+ - id: maps
149
+ document_types:
150
+ - map
151
+ - id: international-treaties
152
+ document_types:
153
+ - international_treaty
154
+ - id: promotional-material
155
+ document_types:
156
+ - promotional
157
+ - id: notices
158
+ document_types:
159
+ - notice
160
+ - id: decisions
161
+ document_types:
162
+ - decision
163
+ - id: regulations
164
+ document_types:
165
+ - regulation
166
+ - id: press-releases
167
+ document_types:
168
+ - press_release
169
+ - id: news-stories
170
+ document_types:
171
+ - news_story
172
+ - announcement
173
+ - id: fatality-notices
174
+ document_types:
175
+ - fatality_notice
176
+ - id: speeches
177
+ document_types:
178
+ - speech
179
+ - id: statements
180
+ document_types:
181
+ - written_statement
182
+ - oral_statement
183
+ - id: government-responses
184
+ document_types:
185
+ - government_response
@@ -1,3 +1,3 @@
1
1
  module GovukDocumentTypes
2
- VERSION = "0.1.3".freeze
2
+ VERSION = "0.1.4".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.3
4
+ version: 0.1.4
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-08 00:00:00.000000000 Z
11
+ date: 2017-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake