govuk_content_models 8.0.0 → 8.1.0

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.
@@ -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
@@ -4,4 +4,6 @@ rm -f Gemfile.lock
4
4
  bundle install --path "${HOME}/bundles/${JOB_NAME}"
5
5
  export GOVUK_APP_DOMAIN=dev.gov.uk
6
6
  bundle exec rake
7
- bundle exec rake publish_gem
7
+ if [[ -n "$PUBLISH_GEM" ]]; then
8
+ bundle exec rake publish_gem
9
+ fi
@@ -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
@@ -1,4 +1,4 @@
1
1
  module GovukContentModels
2
2
  # Changing this causes Jenkins to tag and release the gem into the wild
3
- VERSION = "8.0.0"
3
+ VERSION = "8.1.0"
4
4
  end
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.0.0
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-03 00:00:00.000000000 Z
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: 1977371837260361132
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: 1977371837260361132
469
+ hash: 484371821541707473
469
470
  requirements: []
470
471
  rubyforge_project:
471
472
  rubygems_version: 1.8.23