govuk_content_models 8.0.0 → 8.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/artefact.rb +1 -1
- data/jenkins.sh +3 -1
- data/jenkins_branches.sh +20 -0
- data/lib/govuk_content_models/version.rb +1 -1
- metadata +5 -4
data/app/models/artefact.rb
CHANGED
@@ -18,7 +18,7 @@ class Artefact
|
|
18
18
|
|
19
19
|
include Taggable
|
20
20
|
stores_tags_for :sections, :writing_teams, :propositions,
|
21
|
-
:keywords, :legacy_sources, :specialist_sectors
|
21
|
+
:keywords, :legacy_sources, :specialist_sectors, :organisations
|
22
22
|
has_primary_tag_for :section
|
23
23
|
|
24
24
|
# NOTE: these fields are deprecated, and soon to be replaced with a
|
data/jenkins.sh
CHANGED
data/jenkins_branches.sh
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
#!/bin/bash
|
2
|
+
set -e
|
3
|
+
|
4
|
+
VENV_PATH="${HOME}/venv/${JOB_NAME}"
|
5
|
+
|
6
|
+
[ -x ${VENV_PATH}/bin/pip ] || virtualenv ${VENV_PATH}
|
7
|
+
. ${VENV_PATH}/bin/activate
|
8
|
+
|
9
|
+
pip install -q ghtools
|
10
|
+
|
11
|
+
REPO="alphagov/govuk_content_models"
|
12
|
+
gh-status "$REPO" "$GIT_COMMIT" pending -d "\"Build #${BUILD_NUMBER} is running on Jenkins\"" -u "$BUILD_URL" >/dev/null
|
13
|
+
|
14
|
+
if ./jenkins.sh; then
|
15
|
+
gh-status "$REPO" "$GIT_COMMIT" success -d "\"Build #${BUILD_NUMBER} succeeded on Jenkins\"" -u "$BUILD_URL" >/dev/null
|
16
|
+
exit 0
|
17
|
+
else
|
18
|
+
gh-status "$REPO" "$GIT_COMMIT" failure -d "\"Build #${BUILD_NUMBER} failed on Jenkins\"" -u "$BUILD_URL" >/dev/null
|
19
|
+
exit 1
|
20
|
+
fi
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_content_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.
|
4
|
+
version: 8.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-03-
|
12
|
+
date: 2014-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bson_ext
|
@@ -393,6 +393,7 @@ files:
|
|
393
393
|
- config/mongoid.yml
|
394
394
|
- govuk_content_models.gemspec
|
395
395
|
- jenkins.sh
|
396
|
+
- jenkins_branches.sh
|
396
397
|
- lib/fact_check_address.rb
|
397
398
|
- lib/govuk_content_models.rb
|
398
399
|
- lib/govuk_content_models/require_all.rb
|
@@ -456,7 +457,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
456
457
|
version: '0'
|
457
458
|
segments:
|
458
459
|
- 0
|
459
|
-
hash:
|
460
|
+
hash: 484371821541707473
|
460
461
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
461
462
|
none: false
|
462
463
|
requirements:
|
@@ -465,7 +466,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
465
466
|
version: '0'
|
466
467
|
segments:
|
467
468
|
- 0
|
468
|
-
hash:
|
469
|
+
hash: 484371821541707473
|
469
470
|
requirements: []
|
470
471
|
rubyforge_project:
|
471
472
|
rubygems_version: 1.8.23
|